blob: 17070cb63ed100e59a6b4f20ace77ef57b0be84b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
* Copyright (c) 2021 HPMicro
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Change Logs:
* Date Author Notes
* 2022-01-11 HPMICRO First version
* 2022-03-22 zhangjun add GET_PIN
*/
#ifndef DRV_GPIO_H
#define DRV_GPIO_H
#define __HPM_PORT(port) IOC_PAD_P##port##00
#define GET_PIN(PORTx,PIN) (__HPM_PORT(PORTx) + PIN)
int rt_hw_pin_init(void);
#endif /* DRV_GPIO_H */
|