summaryrefslogtreecommitdiff
path: root/bsp/imxrt/libraries/drivers/drv_gpio.h
blob: 0ea8ead068ff54e8f1be221b33d39a8c5ccd7a3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (c) 2006-2023, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-4-30     misonyo     the first version.
 */

#ifndef DRV_GPIO_H__
#define DRV_GPIO_H__

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

#define GET_PIN(PORTx, PIN)      (32 * (PORTx - 1) + (PIN & 31))    /* PORTx:1,2,3,4,5 */

int rt_hw_pin_init(void);

#endif