mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-05 15:15:29 +00:00
[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:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user