Software timers are used to schedule the execution of a function at a set time in the future , or periodically with a fixed frequency . The function executed by the software timer is called the software timer’s callback function. Software timers are implemented by, and are under the control of, the FreeRTOS kernel. They do not require hardware support, and are not related to hardware timers or hardware counters. Note that, in line with the FreeRTOS philosophy of using innovative design to ensure maximum efficiency, software timers do not use any processing time unless a software timer callback function is actually executing . To include software timer functionality: Build the FreeRTOS source file FreeRTOS/Source/timers.c as part of your project. Set configUSE_TIMERS to 1 in FreeRTOSConfig.h. Software Timer Callback Functions void ATimerCallback( TimerHandle_t xTimer ); Software timer callback functions execute from start to finish, and exit in the normal way. They should be kept ...
留言
張貼留言