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

Function drv_thread_entry

bsp/bluetrum/libraries/hal_drivers/drv_common.c:40–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40static void drv_thread_entry(void *parameter)
41{
42 rt_uint8_t mq_msg = 0;
43 while (1) {
44 rt_mq_recv(drv_mq, &mq_msg, 1, RT_WAITING_FOREVER);
45 switch (mq_msg) {
46#ifdef BSP_USING_UART0
47 case MSG_UART0_IRQ:
48 uart0_irq_process();
49 break;
50#endif
51#ifdef BSP_USING_UART1
52 case MSG_UART1_IRQ:
53 uart1_irq_process();
54 break;
55#endif
56#ifdef BSP_USING_UART2
57 case MSG_UART2_IRQ:
58 uart2_irq_process();
59 break;
60#endif
61 default:
62 break;
63 }
64 }
65}
66
67static int drv_thread_init(void)
68{

Callers

nothing calls this directly

Calls 4

rt_mq_recvFunction · 0.85
uart0_irq_processFunction · 0.85
uart1_irq_processFunction · 0.85
uart2_irq_processFunction · 0.85

Tested by

no test coverage detected