2020-12-10 11:02:26 +08:00
|
|
|
/*
|
2021-01-21 16:08:06 +08:00
|
|
|
* Copyright (c) 2020-2021, Bluetrum Development Team
|
2021-03-11 13:26:54 +08:00
|
|
|
*
|
2020-12-10 11:02:26 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2020-11-18 greedyhao first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DRV_COMMON_H__
|
|
|
|
#define DRV_COMMON_H__
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
#include <rthw.h>
|
|
|
|
#include <rtdevice.h>
|
|
|
|
|
2021-10-11 15:56:02 +08:00
|
|
|
#define GET_PIN(PORTx,PIN) (rt_uint8_t)__AB32_GET_PIN_##PORTx(PIN)
|
2021-03-14 18:47:54 +08:00
|
|
|
|
2021-08-08 16:31:00 +08:00
|
|
|
void uart0_irq_post(void);
|
|
|
|
void uart1_irq_post(void);
|
|
|
|
void uart2_irq_post(void);
|
|
|
|
|
2020-12-10 11:02:26 +08:00
|
|
|
#endif // DRV_COMMON_H__
|