\brief rtc alarm service thread entry * */
| 735 | * |
| 736 | */ |
| 737 | static 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 | |
| 754 | struct _alarm_flag |
| 755 | { |
nothing calls this directly
no test coverage detected