|
|||||||||||
Technical Support On-Line Manuals RL-ARM User's Guide (MDK v4) RL-RTX Overview Product Description Product Specification Technical Data Timing Specifications Advantages Your First RTX Application Theory of Operation Timer Tick Interrupt System Task Manager Task Management Idle Task System Resources Scheduling Options Pre-emptive Scheduling Round-Robin Scheduling Cooperative Multitasking Priority Inversion Stack Management User Timers Interrupt Functions Configuring RL-RTX Configuration Options Tasks Stack Size Stack Checking Run in Privileged Mode Hardware Timer Round-Robin Multitasking User Timers FIFO Queue Buffer Idle Task Error Function Create New RTX_Config.c Configuration Macros Alternate Tick Timer Low Power RTX Library Files Using RL-RTX Writing Programs Include Files Defining Tasks Multiple Instances External References Using a Mailbox SWI Functions SVC Functions Debugging System Info Task Info Event Viewer Usage Hints ARM7/ARM9 Version Cortex-M Version Create New RTX Application Function Reference Event Flag Management Routines Mailbox Management Routines Memory Allocation Routines Mutex Management Routines Semaphore Management Routines System Functions Task Management Routines Time Management Routines User Timer Management Routines RL-FlashFS RL-TCPnet RL-CAN RL-USB Example Programs Library Reference Appendix |
User TimersUser Timers are simple timer blocks that count down on every system timer tick. They are implemented as single shot timers. This means you cannot pause and restart these timers. However, you can create and kill the user timers dynamically at runtime. If you do not kill a user timer before it expires, the RTX kernel calls the user provided callback function, os_tmr_call(), and then deletes the timer when it expires. A timeout value is defined when the timer is created by the os_tmr_create() function. The RTX kernel calls the callback function with the argument info. The user provides this argument when creating the user timer. The RTX kernel stores the argument in the timer control block. When the timer expires, this argument is passed back to the user in the os_tmr_call() function. If the user kills the timer before the timeout value expires, the RTX kernel does not call the callback function. You can customize the callback function os_tmr_call() in the RTX_Config.c configuration file. Note
| ||||||||||
|
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.