aboutsummaryrefslogtreecommitdiff
path: root/teensy/usart.c
blob: a700e8e379e2a6289849b49646e672474fc0d395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "misc.h"
#include "mpconfig.h"
#include "qstr.h"
#include "obj.h"
#include "../stm/usart.h"

pyb_usart_t pyb_usart_global_debug = PYB_USART_NONE;

void usart_init(pyb_usart_t usart_id, uint32_t baudrate)
{
    (void)usart_id;
    (void)baudrate;
}

bool usart_rx_any(pyb_usart_t usart_id)
{
    (void)usart_id;
    return false;
}

int usart_rx_char(pyb_usart_t usart_id)
{
    (void)usart_id;
    return 0;
}

void usart_tx_str(pyb_usart_t usart_id, const char *str)
{
    (void)usart_id;
    (void)str;
}

void usart_tx_strn_cooked(pyb_usart_t usart_id, const char *str, int len)
{
  (void)usart_id;
  (void)str;
  (void)len;
}