Keil Logo

Hardware Timer

The following options can be configured:

  • OS_TIMER specifies the on-chip timer used as a time-base for the real-time system. It delivers a periodic interrupt that wakes up a time-keeping system task. The user can choose which timer serves this purpose:
    • ARM7/ARM9 library version
      Use 0 for Timer 0, or 1 for Timer 1, etc.
    • Cortex-M library version
      Use 0 for Core SysTick Timer, or 1 for alternate Peripheral Timer.
    #define OS_TIMER       1
  • OS_CLOCK specifies the input clock frequency for the selected timer.
    #define OS_CLOCK       15000000
  • OS_TICK specifies the timer tick interval in µsec. Recommended values are 1000 to 100000. The resulting interval is from 1 ms to 100 ms. Default configuration is for 10 ms.
    #define OS_TICK        10000
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.