1 /*
2  * Copyright (c) 2006-2023, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author              Notes
8  * 2023-10-25     Raman Gopalan       Initial version
9  * 2023-11-06     Raman Gopalan       Abstraction for GPIO driver boilerplate
10  */
11 
12 #ifndef __DRV_GPIO_H__
13 #define __DRV_GPIO_H__
14 
15 #include <rtconfig.h>
16 
17 #ifdef RT_USING_PIN
18 
19 #ifndef BSP_BOARD_MIZAR32B
20 #define AVR32_BSP_GPIO_PMIN AVR32_PIN_PA03
21 #define AVR32_BSP_GPIO_PMAX AVR32_PIN_PB11
22 #else
23 #define AVR32_BSP_GPIO_PMIN AVR32_PIN_PA00
24 #define AVR32_BSP_GPIO_PMAX AVR32_PIN_PX11
25 #endif
26 
27 int rt_hw_gpio_init(void);
28 
29 #endif /* #ifdef RT_USING_PIN */
30 
31 #endif /* __DRV_GPIO_H__ */
32