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-19 greedyhao first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DRV_GPIO_H__
|
|
|
|
#define DRV_GPIO_H__
|
|
|
|
|
|
|
|
#include "drv_common.h"
|
|
|
|
#include "board.h"
|
|
|
|
|
|
|
|
#define __AB32_PORT(port) GPIO##port
|
2021-03-14 18:47:54 +08:00
|
|
|
#define __AB32_GET_PIN_A(PIN) PIN
|
|
|
|
#define __AB32_GET_PIN_B(PIN) 8 + PIN
|
|
|
|
#define __AB32_GET_PIN_E(PIN) 13 + PIN
|
|
|
|
#define __AB32_GET_PIN_F(PIN) 21 + PIN
|
2020-12-10 11:02:26 +08:00
|
|
|
|
|
|
|
int rt_hw_pin_init(void);
|
|
|
|
|
|
|
|
#endif // DRV_GPIO_H__
|