1 /*
2  * Copyright (c) 2006-2021, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2020-01-13     Lyons        first version
9  * 2021-06-23     RiceChen     add get pin API
10  */
11 
12 #ifndef __DRV_PIN_H__
13 #define __DRV_PIN_H__
14 
15 #include "board.h"
16 
17 #define GET_PIN(PORTx, PIN)      (32 * (PORTx - 1) + (PIN & 31))
18 
19 #endif //#ifndef __DRV_PIN_H__
20