1
0
mirror of https://github.com/hathach/tinyusb.git synced 2025-03-24 16:43:39 +00:00

Merge pull request from jgressmann/bugfix/samd21-systick

samd21: enable SysTick only if running w/o OS
This commit is contained in:
Ha Thach 2021-11-02 10:49:41 +07:00 committed by GitHub
commit b4a0f0b273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -75,7 +75,9 @@ void board_init(void)
// Update SystemCoreClock since it is hard coded with asf4 and not correct
// Init 1ms tick timer (samd SystemCoreClock may not correct)
SystemCoreClock = CONF_CPU_FREQUENCY;
#if CFG_TUSB_OS == OPT_OS_NONE
SysTick_Config(CONF_CPU_FREQUENCY / 1000);
#endif
// Led init
#ifdef LED_PIN