summaryrefslogtreecommitdiff
path: root/bsp/nxp/mcx/mcxa/libraries/drivers/drv_pin.h
blob: 14745d6581dafb99057e65bfc9afa895f245cb73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2006-2024, 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.
 * 2024-02-06     yandld       The first version for MCX
 */

#ifndef __DRV_PIN_H__
#define __DRV_PIN_H__

#include <rtthread.h>
#include <rtdevice.h>

#define GET_PINS(PORTx, PINx)      (32 * PORTx + PINx)
extern int rt_hw_pin_init(void);

#endif /* __DRV_PIN_H__ */