2014-01-07 17:49:42 +00:00
|
|
|
#include "misc.h"
|
2014-01-15 06:23:56 +00:00
|
|
|
#include "mpconfig.h"
|
|
|
|
#include "qstr.h"
|
|
|
|
#include "obj.h"
|
2014-01-07 17:49:42 +00:00
|
|
|
#include "../stm/usart.h"
|
|
|
|
|
2014-01-15 06:23:56 +00:00
|
|
|
pyb_usart_t pyb_usart_global_debug = PYB_USART_NONE;
|
2014-01-07 17:49:42 +00:00
|
|
|
|
2014-01-15 06:23:56 +00:00
|
|
|
void usart_init(pyb_usart_t usart_id, uint32_t baudrate)
|
|
|
|
{
|
|
|
|
(void)usart_id;
|
|
|
|
(void)baudrate;
|
2014-01-07 17:49:42 +00:00
|
|
|
}
|
|
|
|
|
2014-01-15 06:23:56 +00:00
|
|
|
bool usart_rx_any(pyb_usart_t usart_id)
|
|
|
|
{
|
|
|
|
(void)usart_id;
|
2014-01-07 17:49:42 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2014-01-15 06:23:56 +00:00
|
|
|
int usart_rx_char(pyb_usart_t usart_id)
|
|
|
|
{
|
|
|
|
(void)usart_id;
|
2014-01-07 17:49:42 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-01-15 06:23:56 +00:00
|
|
|
void usart_tx_str(pyb_usart_t usart_id, const char *str)
|
|
|
|
{
|
|
|
|
(void)usart_id;
|
2014-01-07 17:49:42 +00:00
|
|
|
(void)str;
|
|
|
|
}
|
|
|
|
|
2014-01-15 06:23:56 +00:00
|
|
|
void usart_tx_strn_cooked(pyb_usart_t usart_id, const char *str, int len)
|
|
|
|
{
|
|
|
|
(void)usart_id;
|
|
|
|
(void)str;
|
|
|
|
(void)len;
|
2014-01-07 17:49:42 +00:00
|
|
|
}
|