2024-01-13 23:06:01 +01:00
|
|
|
#ifndef _BSP_GPIO_H
|
|
|
|
#define _BSP_GPIO_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2024-05-29 20:50:30 +02:00
|
|
|
#include "gen/GpioModule.h"
|
2024-01-13 23:06:01 +01:00
|
|
|
|
2024-05-29 20:50:30 +02:00
|
|
|
#define gpio_t gpiomodule_t
|
2024-01-13 23:06:01 +01:00
|
|
|
|
|
|
|
inline void gpio_init(gpio_t* reg) {
|
2024-02-22 17:09:35 +01:00
|
|
|
set_gpio_write(reg, 0);
|
|
|
|
set_gpio_writeEnable(reg, 0);
|
2024-01-13 23:06:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _BSP_GPIO_H */
|