diff options
Diffstat (limited to 'lib/freertos/include/FreeRTOSConfig.h')
| -rw-r--r-- | lib/freertos/include/FreeRTOSConfig.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/freertos/include/FreeRTOSConfig.h b/lib/freertos/include/FreeRTOSConfig.h index f3e37f1..a9859c5 100644 --- a/lib/freertos/include/FreeRTOSConfig.h +++ b/lib/freertos/include/FreeRTOSConfig.h @@ -47,10 +47,12 @@ extern uint32_t SystemCoreClock; #endif +#include "system_stm32f4xx.h" + #define configUSE_PREEMPTION 1 #define configUSE_IDLE_HOOK 1 #define configUSE_TICK_HOOK 1 -#define configCPU_CLOCK_HZ (( unsigned long ) 72000000 ) +#define configCPU_CLOCK_HZ ( SystemCoreClock ) #define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) #define configMAX_PRIORITIES ( 5 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 130 ) @@ -119,9 +121,9 @@ extern uint32_t SystemCoreClock; /* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS standard names. */ -/* #define vPortSVCHandler SVC_Handler */ -/* #define xPortPendSVHandler PendSV_Handler */ -/* #define xPortSysTickHandler SysTick_Handler */ +#define vPortSVCHandler SVC_Handler +#define xPortPendSVHandler PendSV_Handler +#define xPortSysTickHandler SysTick_Handler #endif /* FREERTOS_CONFIG_H */ |
