sync
This commit is contained in:
23
firmware/include/io.h
Normal file
23
firmware/include/io.h
Normal 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
|
||||
Reference in New Issue
Block a user