2024-05-30 18:32:23 +02:00
|
|
|
#ifndef _DEVICES_GPIO_H
|
|
|
|
#define _DEVICES_GPIO_H
|
2024-01-13 23:06:01 +01:00
|
|
|
|
|
|
|
#include <stdint.h>
|
2024-05-30 18:32:23 +02:00
|
|
|
#include "gen/gpio.h"
|
2024-01-13 23:06:01 +01:00
|
|
|
|
2024-06-10 10:13:07 +02:00
|
|
|
inline void gpio_init(volatile 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
|
|
|
}
|
|
|
|
|
2024-05-30 18:32:23 +02:00
|
|
|
#endif /* _DEVICES_GPIO_H */
|