summaryrefslogtreecommitdiff
path: root/bsp/lpc55sxx/Libraries/drivers/drv_pin.h
blob: 331741a90708eedef95b81b282b7572ce229a8f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2006-2023, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-03-13     Liuguang     the first version.
 * 2018-03-19     Liuguang     add GPIO interrupt mode support.
 * 2019-07-15     Magicoe      The first version for LPC55S6x
 */

#ifndef __DRV_PIN_H__
#define __DRV_PIN_H__

#include <rtthread.h>
#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__ */