summaryrefslogtreecommitdiffstatshomepage
path: root/teensy/usart.c
diff options
context:
space:
mode:
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;
+}