| 38 | } |
| 39 | |
| 40 | static 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 | |
| 67 | static int drv_thread_init(void) |
| 68 | { |
nothing calls this directly
no test coverage detected