summaryrefslogtreecommitdiff
path: root/bsp/tkm32F499/drivers/drv_gpio.h
blob: 1f52cacba51e99177847b78079377ec8c9f4b7e4 (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-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-10-02     spaceman           first version
 */
#ifndef DRV_GPIO_H__
#define DRV_GPIO_H__

#define __TKM32_PORT(port)  GPIO##port##_BASE

#define GET_PIN(PORTx,PIN) (rt_base_t)((16 * ( ((rt_base_t)__TKM32_PORT(PORTx) - (rt_base_t)GPIOA_BASE)/(0x0400UL) )) + PIN)



int rt_hw_pin_init(void);

#endif