[iar] add CLOCKS_PER_SEC
https://www.iar.com/knowledge/learn/programming/using-c-standard-library-time-and-clock-functions/
This commit is contained in:
parent
2774343d97
commit
5e8871e1a2
@ -9,6 +9,8 @@ CPPDEFINES = []
|
||||
|
||||
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||
CPPDEFINES += ['__CLK_TCK=RT_TICK_PER_SECOND']
|
||||
elif rtconfig.PLATFORM == 'iar':
|
||||
CPPDEFINES += ['CLOCKS_PER_SEC=RT_TICK_PER_SECOND'] # forcly revert to 1 by IAR
|
||||
|
||||
src += Glob('*.c')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user