drv_common.h 500 B

123456789101112131415161718192021222324
  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. #ifndef DRV_COMMON_H__
  11. #define DRV_COMMON_H__
  12. #include <rtthread.h>
  13. #include <rthw.h>
  14. #include <rtdevice.h>
  15. #define GET_PIN(PORTx,PIN) (rt_uint8_t)__AB32_GET_PIN_##PORTx(PIN)
  16. void uart0_irq_post(void);
  17. void uart1_irq_post(void);
  18. void uart2_irq_post(void);
  19. #endif // DRV_COMMON_H__