diff options
| author | Meco Man <[email protected]> | 2022-04-21 14:03:04 -0400 |
|---|---|---|
| committer | guo <[email protected]> | 2022-04-22 22:32:27 +0800 |
| commit | 5e8871e1a28ec55b5435536fe6ba09f000b03e15 (patch) | |
| tree | 5d435ee76202edbeafbbd7acd3ccedffc69ccf74 /components | |
| parent | 2774343d971df2ddd44e0b0cd720c4b13126eb70 (diff) | |
[iar] add CLOCKS_PER_SEC
https://www.iar.com/knowledge/learn/programming/using-c-standard-library-time-and-clock-functions/
Diffstat (limited to 'components')
| -rw-r--r-- | components/libc/compilers/common/SConscript | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/libc/compilers/common/SConscript b/components/libc/compilers/common/SConscript index 9c3229eb5d..cf57f2abc3 100644 --- a/components/libc/compilers/common/SConscript +++ b/components/libc/compilers/common/SConscript @@ -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') |
