Merge pull request #5264 from c1728p9/os_tick_check

Error if OS tickrate is changed
pull/4955/head
Jimmy Brisson 2017-10-13 09:26:41 -05:00 committed by GitHub
commit b9a48a4f4c
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@
#define OS_DYNAMIC_MEM_SIZE 0
#if defined(OS_TICK_FREQ) && (OS_TICK_FREQ != 1000)
#error "OS Tickrate must be 1000 for system timing"
#endif
#if defined (__CC_ARM) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
/* ARM toolchain uses up to 8 static mutexes, any further mutexes will be allocated on the heap. */
#define OS_MUTEX_OBJ_MEM 1