Download 8051 RTOS
Transcript
Alarms The OSEK/VDX implementation defines the following system constants related to the system timer: • OSMAXALLOWEDVALUE This value determines the upper limit for the timer value unit. • OSTICKSPERBASE This value determines how many clock ticks constitute a timer unit. • OSMINCYCLE This value represents an absolute minimum for the possible expiring times of system alarms. You can set alarms which actions are meant to happen after OSMINCYCLE time units. • OSTICKDURATION The timer duration in nanoseconds. • OSTICKDURATIONINMSCS The timer tick duration in miliseconds. The values for these parameters depend on the RTOS implementation. You can look them up in Appendix A, Implementation Parameters. 8-5