aboutsummaryrefslogtreecommitdiff
path: root/hal/hardware/peripheral_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'hal/hardware/peripheral_io.h')
-rw-r--r--hal/hardware/peripheral_io.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/hal/hardware/peripheral_io.h b/hal/hardware/peripheral_io.h
index 1de31ef..624e83b 100644
--- a/hal/hardware/peripheral_io.h
+++ b/hal/hardware/peripheral_io.h
@@ -213,6 +213,30 @@ typedef struct peripheral_registration_cb_t {
int (*register_led_sysfs)(const char* name, const char* sysfs_name);
/**
+ * Register a UART bus.
+ *
+ * Args:
+ * name: Friendly name of the bus.
+ * dev_name: Name of the device in sysfs.
+ *
+ * Returns:
+ * 0 on success, errno on error.
+ */
+ int (*register_uart_bus)(const char* name, const char* dev_name);
+
+ /**
+ * Set the pinmux for a given UART bus.
+ *
+ * Args:
+ * name: Friendly name of the UART bus.
+ * source: Name of the pinmuxing source.
+ *
+ * Returns:
+ * 0 on success, errno on error.
+ */
+ int (*set_uart_pin_mux)(const char* name, const char* source);
+
+ /**
* Register an I2C bus.
*
* Args: