update freertos example

work with samd21 samd51 and nrf
This commit is contained in:
hathach
2020-03-10 23:16:09 +07:00
parent fd5c64d7b5
commit 65578dec44
16 changed files with 101 additions and 58 deletions
@@ -71,10 +71,8 @@ void board_init(void)
// Button
nrf_gpio_cfg_input(BUTTON_PIN, NRF_GPIO_PIN_PULLUP);
#if CFG_TUSB_OS == OPT_OS_NONE
// 1ms tick timer
SysTick_Config(SystemCoreClock/1000);
#endif
// UART
nrfx_uarte_config_t uart_cfg =
@@ -99,7 +97,6 @@ void board_init(void)
// 2 is highest for application
NVIC_SetPriority(USBD_IRQn, 2);
// USB power may already be ready at this time -> no event generated
// We need to invoke the handler based on the status initially
uint32_t usb_reg;