MNRS-BM-BSP/include/ehrenberg/devices/gpio.h

15 lines
242 B
C
Raw Permalink Normal View History

2024-01-13 23:06:01 +01:00
#ifndef _BSP_GPIO_H
#define _BSP_GPIO_H
#include <stdint.h>
2024-02-22 17:09:35 +01:00
#include "gen/Apb3Gpio.h"
2024-01-13 23:06:01 +01:00
2024-02-22 17:09:35 +01:00
#define gpio_t apb3gpio_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 */