Ken Van Hoeylandt d2048e01b6
Tab5 power expander driver and devicetree parsing improvements (#507)
* **New Features**
  * PI4IOE5V6408 I2C I/O expander driver with public GPIO APIs
  * CLI tool to list devicetree dependencies

* **Device Tree Updates**
  * M5Stack Tab5 configured with two I2C IO expanders; PI4IOE5V6408 binding added

* **Build / Tooling**
  * Devicetree code generation integrated into build; generated artifacts and dynamic dependency resolution exposed

* **Refactor**
  * Kernel/run APIs updated to accept a null‑terminated devicetree modules array; many module symbols renamed

* **Documentation**
  * Added README and Apache‑2.0 license for new driver module
2026-02-17 22:59:30 +01:00

22 lines
633 B
C

#pragma once
#include <tactility/dts.h>
#include <tactility/error.h>
#include <tactility/module.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* Initialize the kernel with the provided modules from the device tree
* @param dts_modules List of modules from devicetree, null-terminated. Non-null parameter.
* @param dts_devices The list of generated devices from the devicetree. The array must be terminated with DTS_DEVICE_TERMINATOR. Non-null parameter.
* @return ERROR_NONE on success, otherwise an error code
*/
error_t kernel_init(struct Module* dts_modules[], struct DtsDevice dts_devices[]);
#ifdef __cplusplus
}
#endif