diff --git a/src/STM32FreeRTOS.c b/src/STM32FreeRTOS.c index 660fe32..dbd85e8 100644 --- a/src/STM32FreeRTOS.c +++ b/src/STM32FreeRTOS.c @@ -11,7 +11,7 @@ * \param[in] millis milliseconds to delay */ static void delayMS(uint32_t millis) { - uint32_t iterations = millis * (SystemCoreClock/7000); + uint32_t iterations = millis * (F_CPU/7000); uint32_t i; for(i = 0; i < iterations; ++i) { __asm__("nop\n\t"); diff --git a/src/port.c b/src/port.c index 610ca7a..abe0add 100644 --- a/src/port.c +++ b/src/port.c @@ -3,7 +3,7 @@ * @author Frederic Pillon for STMicroelectronics. * @brief Include source of FreeRTOS portable layer file to match Arduino library format */ -#include "stm32_def.h" +#include #ifndef __CORTEX_M #pragma GCC error "no \"__CORTEX_M\" definition" diff --git a/src/portmacro.h b/src/portmacro.h index f3ff239..b2a221a 100644 --- a/src/portmacro.h +++ b/src/portmacro.h @@ -6,7 +6,7 @@ #ifndef _PORTMACRO_H_ #define _PORTMACRO_H_ -#include "stm32_def.h" +#include #ifndef __CORTEX_M #pragma GCC error "no \"__CORTEX_M\" definition"