mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
hide deprecated code; make USB snippet common for F0/F1/F3
This commit is contained in:
@@ -30,16 +30,6 @@
|
||||
// macro for static strings
|
||||
#define USEND(str) usart_send(str)
|
||||
|
||||
#ifdef EBUG
|
||||
#define x__(a) #a
|
||||
#define STR(a) x__(a)
|
||||
#define DBG(str) do{usart_send(__FILE__ " (L" STR(__LINE__) "): " str); \
|
||||
usart_putchar('\n'); usart_transmit(); }while(0)
|
||||
#else
|
||||
#define DBG(str)
|
||||
#endif
|
||||
|
||||
|
||||
#define usartrx() (usart_linerdy)
|
||||
#define usartovr() (usart_bufovr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user