HiveMind
src
os
freertos
platforms
stm32h7
include
freertos_platform_config.h
Go to the documentation of this file.
1
#ifndef __FREERTOS_PLATFORM_CONFIG_H_
2
#define __FREERTOS_PLATFORM_CONFIG_H_
3
4
#include <stdint.h>
5
extern
uint32_t
SystemCoreClock
;
6
7
/*
8
* The CMSIS-RTOS V2 FreeRTOS wrapper is dependent on the heap implementation used
9
* by the application thus the correct define need to be enabled below (only used if heap 1 or 5)
10
*/
11
#define USE_FreeRTOS_HEAP_3
12
13
/* Clock config that is platform dependent */
14
#define configCPU_CLOCK_HZ (SystemCoreClock)
15
#define configTICK_RATE_HZ ((TickType_t)1000)
16
17
/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS
18
standard names. */
19
#define vPortSVCHandler SVC_Handler
20
#define xPortPendSVHandler PendSV_Handler
21
#define xPortSysTickHandler SysTick_Handler
22
23
/* Runtime stats */
24
#ifdef RUNTIME_STATS
25
#define configUSE_STATS_FORMATTING_FUNCTIONS 1
26
#define configGENERATE_RUN_TIME_STATS 1
27
#define configRUN_TIME_COUNTER_TYPE uint64_t
28
29
/* Port macro for run time stats*/
30
extern
uint32_t Hal_getCPUCounter();
31
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() \
32
do { \
33
} while (0) // Already set via hal init
34
35
#define portGET_RUN_TIME_COUNTER_VALUE() Hal_getCPUCounter()
36
#endif // RUNTIME_STATS
37
38
#endif // __FREERTOS_PLATFORM_CONFIG_H_
SystemCoreClock
uint32_t SystemCoreClock
Generated by
1.8.17