summaryrefslogtreecommitdiffstatshomepage
path: root/teensy/usart.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2014-01-07 09:49:42 -0800
committerDave Hylands <dhylands@gmail.com>2014-01-08 00:29:44 -0800
commit9b7b947b015d733586a7de6159d533cbdb01ac18 (patch)
treee0ba05410d421322ade0faf8c31cecd80e746c17 /teensy/usart.c
parent6d6bc9efc17c0fd4f28f935280db6d8dee100d4f (diff)
downloadmicropython-9b7b947b015d733586a7de6159d533cbdb01ac18.tar.gz
micropython-9b7b947b015d733586a7de6159d533cbdb01ac18.zip
Updated teensy to use common code from stm directory.
Updated mconfigport.h to enable GC
Diffstat (limited to 'teensy/usart.c')
-rw-r--r--teensy/usart.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/teensy/usart.c b/teensy/usart.c
new file mode 100644
index 0000000000..419dac9527
--- /dev/null
+++ b/teensy/usart.c
@@ -0,0 +1,30 @@
+#include "misc.h"
+#include "../stm/usart.h"
+
+void usart_init(void) {
+}
+
+bool usart_is_enabled(void) {
+ return false;
+}
+
+bool usart_rx_any(void) {
+ return false;
+}
+
+int usart_rx_char(void) {
+ return 0;
+}
+
+void usart_tx_char(int c) {
+ (void)c;
+}
+
+void usart_tx_str(const char *str) {
+ (void)str;
+}
+
+void usart_tx_strn_cooked(const char *str, int len) {
+ (void)str;
+ (void)len;
+}