detect bus reset

This commit is contained in:
hathach
2019-11-27 14:49:19 +07:00
parent 302746d02c
commit bc21714c7e
2 changed files with 14 additions and 10 deletions

View File

@@ -45,12 +45,8 @@
#define UART_TX_PIN GPIO(GPIO_PORTA, 28)
#define UART_RX_PIN GPIO(GPIO_PORTA, 27)
//struct usart_async_descriptor _edbg_com;
//static uint8_t _edbg_com_buf[64];
struct _usart_sync_device _edbg_com;
//------------- IMPLEMENTATION -------------//
void board_init(void)
{
@@ -81,7 +77,6 @@ void board_init(void)
_usart_sync_set_mode(&_edbg_com, USART_MODE_ASYNCHRONOUS);
_usart_sync_enable(&_edbg_com);
#if CFG_TUSB_OS == OPT_OS_NONE
// 1ms tick timer (samd SystemCoreClock may not correct)
SysTick_Config(CONF_CPU_FREQUENCY / 1000);