mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
23 lines
720 B
C
23 lines
720 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <tactility/device.h>
|
|
#include <tactility/error.h>
|
|
#include <tactility/module.h>
|
|
|
|
/**
|
|
* Initialize the kernel with platform and device modules, and a device tree.
|
|
* @param platform_module The platform module to start. This module should not be constructed yet.
|
|
* @param device_module The device module to start. This module should not be constructed yet.
|
|
* @param devicetree_devices The list of generated devices from the devicetree.
|
|
* @return ERROR_NONE on success, otherwise an error code
|
|
*/
|
|
error_t kernel_init(struct Module* platform_module, struct Module* device_module, struct CompatibleDevice devicetree_devices[]);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|