Skip to content

Commit b9a48a4

Browse files
Merge pull request #5264 from c1728p9/os_tick_check
Error if OS tickrate is changed
2 parents 6a74cdb + 209b9a9 commit b9a48a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rtos/TARGET_CORTEX/mbed_rtx_conf.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141

4242
#define OS_DYNAMIC_MEM_SIZE 0
4343

44+
#if defined(OS_TICK_FREQ) && (OS_TICK_FREQ != 1000)
45+
#error "OS Tickrate must be 1000 for system timing"
46+
#endif
47+
4448
#if defined (__CC_ARM) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
4549
/* ARM toolchain uses up to 8 static mutexes, any further mutexes will be allocated on the heap. */
4650
#define OS_MUTEX_OBJ_MEM 1

0 commit comments

Comments
 (0)