1 /* 2 * Copyright (c) 2006-2023, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2018-03-13 Liuguang the first version. 9 * 2018-03-19 Liuguang add GPIO interrupt mode support. 10 * 2019-07-15 Magicoe The first version for LPC55S6x 11 */ 12 13 #ifndef __DRV_PIN_H__ 14 #define __DRV_PIN_H__ 15 16 #include <rtthread.h> 17 #include <rtdevice.h> 18 19 #define GET_PINS(PORTx, PINx) (32 * PORTx + PINx + 1) /* PORTx:0,1, PINx:0,1...31 */ 20 21 extern int rt_hw_pin_init(void); 22 23 #endif /* __DRV_PIN_H__ */ 24