1 /* 2 * Copyright (c) 2020-2021, Bluetrum Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2020-11-18 greedyhao first version 9 */ 10 11 #ifndef DRV_COMMON_H__ 12 #define DRV_COMMON_H__ 13 14 #include <rtthread.h> 15 #include <rthw.h> 16 #include <rtdevice.h> 17 18 #define GET_PIN(PORTx,PIN) (rt_uint8_t)__AB32_GET_PIN_##PORTx(PIN) 19 20 void uart0_irq_post(void); 21 void uart1_irq_post(void); 22 void uart2_irq_post(void); 23 24 #endif // DRV_COMMON_H__ 25