2019-10-24 17:56:09 +08:00
|
|
|
/*
|
2023-01-06 16:40:35 +08:00
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
2019-10-24 17:56:09 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
2021-03-17 02:26:35 +08:00
|
|
|
* 2018-03-13 Liuguang the first version.
|
2019-10-24 17:56:09 +08:00
|
|
|
* 2018-03-19 Liuguang add GPIO interrupt mode support.
|
|
|
|
* 2019-07-15 Magicoe The first version for LPC55S6x
|
|
|
|
*/
|
2021-03-17 02:26:35 +08:00
|
|
|
|
2019-10-24 17:56:09 +08:00
|
|
|
#ifndef __DRV_PIN_H__
|
|
|
|
#define __DRV_PIN_H__
|
|
|
|
|
2021-03-17 02:26:35 +08:00
|
|
|
#include <rtthread.h>
|
2019-10-24 17:56:09 +08:00
|
|
|
#include <rtdevice.h>
|
|
|
|
|
|
|
|
#define GET_PINS(PORTx, PINx) (32 * PORTx + PINx + 1) /* PORTx:0,1, PINx:0,1...31 */
|
|
|
|
|
|
|
|
extern int rt_hw_pin_init(void);
|
|
|
|
|
|
|
|
#endif /* __DRV_PIN_H__ */
|