fix: yet more wiznet bugs, reconnects, led status indicators

This commit is contained in:
2024-11-11 15:40:05 +06:00
parent 8fe50deeed
commit 5f9c966602
11 changed files with 208 additions and 63 deletions

View File

@@ -3,7 +3,20 @@
#include <stdint.h>
// Function prototype for initializing GPIO
// 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 init_gpio(void);
// LED status handling
void led_status_set(led_state_t state);
void led_status_process(void);
#endif // GPIO_H