Cortex M3-M7 can use DWT->CYCCNT (#15762)

Suggested by Alex Kenis at https://youtu.be/ZfyPcdhQnAA?t=502
This commit is contained in:
Scott Lahteine
2019-11-01 22:07:51 -05:00
committed by GitHub
parent ad28da7eb4
commit f0d952d33a
2 changed files with 6 additions and 5 deletions

View File

@ -49,7 +49,7 @@ uint16_t HAL_adc_result;
// ------------------------
// Needed for DELAY_NS() / DELAY_US() on CORTEX-M7
#if (defined(__arm__) || defined(__thumb__)) && __CORTEX_M == 7
#if (defined(__arm__) || defined(__thumb__)) && WITHIN(__CORTEX_M, 3, 7)
// HAL pre-initialization task
// Force the preinit function to run between the premain() and main() function
// of the STM32 arduino core