MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_alarmsvc_thread_init

Function rt_alarmsvc_thread_init

components/drivers/rtc/dev_alarm.c:737–752  ·  view source on GitHub ↗

\brief rtc alarm service thread entry * */

Source from the content-addressed store, hash-verified

735 *
736 */
737static void rt_alarmsvc_thread_init(void *param)
738{
739 rt_uint32_t recv;
740
741 _container.current = RT_NULL;
742
743 while (1)
744 {
745 if (rt_event_recv(&_container.event, 0xFFFF,
746 RT_EVENT_FLAG_OR | RT_EVENT_FLAG_CLEAR,
747 RT_WAITING_FOREVER, &recv) == RT_EOK)
748 {
749 alarm_update(recv);
750 }
751 }
752}
753
754struct _alarm_flag
755{

Callers

nothing calls this directly

Calls 2

rt_event_recvFunction · 0.85
alarm_updateFunction · 0.85

Tested by

no test coverage detected