This commit is contained in:
2026-03-07 08:51:50 +01:00
parent 4f3fbff258
commit f85143d7e5
60 changed files with 3245 additions and 1205 deletions

23
firmware/include/io.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef IO_H
#define IO_H
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
/**
* @brief Initializes the I/O subsystem, including GPIOs and any related hardware
* @return 0 on success, negative error code on failure
*/
int io_init(void);
/**
* @brief Sets the status of the I/O subsystem
* @param status The status to set
*/
void io_status(bool status);
/**
* @brief Sets the USB connection status indicator
* @param connected True if USB is connected, false otherwise
*/
void io_usb_status(bool connected);
#endif