Files
2024-11-12 00:55:52 +06:00

22 lines
408 B
C

#ifndef GPIO_H
#define GPIO_H
#include <stdint.h>
// Status states
typedef enum {
LED_STATE_OFF,
LED_STATE_ON, // ok
LED_STATE_WARNING, // slow blink
LED_STATE_ERROR, // fast blink
LED_STATE_BUSY // "breathing"
} led_state_t;
// Initialize GPIO
void gpio_init(void);
// LED status handling
void led_status_set(led_state_t state);
void led_status_process(void);
#endif // GPIO_H