diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-10 22:02:47 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-10 22:02:47 +0000 |
commit | 724026ab402a13a2344ac6679a665394777ff0fa (patch) | |
tree | 718ea2cd836207a4275aff494b19a1d157639430 /teensy/usart.c | |
parent | b0b7518dd1fa45f59299d97b4b6f7b025c9abf7f (diff) | |
parent | 6f9c03676bdf66274c199d296e98e7027324d22e (diff) | |
download | micropython-724026ab402a13a2344ac6679a665394777ff0fa.tar.gz micropython-724026ab402a13a2344ac6679a665394777ff0fa.zip |
Merge pull request #271 from dhylands/teensy-2014-02-10
Updated teensy to work with latest on master
Diffstat (limited to 'teensy/usart.c')
-rw-r--r-- | teensy/usart.c | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/teensy/usart.c b/teensy/usart.c index 419dac9527..a700e8e379 100644 --- a/teensy/usart.c +++ b/teensy/usart.c @@ -1,30 +1,38 @@ #include "misc.h" +#include "mpconfig.h" +#include "qstr.h" +#include "obj.h" #include "../stm/usart.h" -void usart_init(void) { -} +pyb_usart_t pyb_usart_global_debug = PYB_USART_NONE; -bool usart_is_enabled(void) { - return false; +void usart_init(pyb_usart_t usart_id, uint32_t baudrate) +{ + (void)usart_id; + (void)baudrate; } -bool usart_rx_any(void) { +bool usart_rx_any(pyb_usart_t usart_id) +{ + (void)usart_id; return false; } -int usart_rx_char(void) { +int usart_rx_char(pyb_usart_t usart_id) +{ + (void)usart_id; return 0; } -void usart_tx_char(int c) { - (void)c; -} - -void usart_tx_str(const char *str) { +void usart_tx_str(pyb_usart_t usart_id, const char *str) +{ + (void)usart_id; (void)str; } -void usart_tx_strn_cooked(const char *str, int len) { - (void)str; - (void)len; +void usart_tx_strn_cooked(pyb_usart_t usart_id, const char *str, int len) +{ + (void)usart_id; + (void)str; + (void)len; } |