diff options
| author | ErikChanHub <[email protected]> | 2023-07-13 14:49:35 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-13 14:49:35 +0800 |
| commit | 2f5e4ac27e90928183128ac0053044e67b931d8b (patch) | |
| tree | efd8159a4e990e8898599d5f7c44b644851c635d /include | |
| parent | 259431ace39221e57ab1861c1eae860dab3b032b (diff) | |
【dd2.0】Support the Core API for dd2.0 (#7791)
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 16 | ||||
| -rw-r--r-- | include/rtthread.h | 7 |
2 files changed, 16 insertions, 7 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index cf94da1e8b..d12c929d9a 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -318,6 +318,17 @@ typedef int (*init_fn_t)(void); /* board init routines will be called in board_init() function */ #define INIT_BOARD_EXPORT(fn) INIT_EXPORT(fn, "1") +/* init cpu, memory, interrupt-controller, bus... */ +#define INIT_CORE_EXPORT(fn) INIT_EXPORT(fn, "1.0") +/* init pci/pcie, usb platform driver... */ +#define INIT_FRAMEWORK_EXPORT(fn) INIT_EXPORT(fn, "1.1") +/* init platform, user code... */ +#define INIT_PLATFORM_EXPORT(fn) INIT_EXPORT(fn, "1.2") +/* init sys-timer, clk, pinctrl... */ +#define INIT_SUBSYS_EXPORT(fn) INIT_EXPORT(fn, "1.3") +/* init early drivers */ +#define INIT_DRIVER_EARLY_EXPORT(fn) INIT_EXPORT(fn, "1.4") + /* pre/device/component/env/app init routines will be called in init_thread */ /* components pre-initialization (pure software initialization) */ #define INIT_PREV_EXPORT(fn) INIT_EXPORT(fn, "2") @@ -330,6 +341,11 @@ typedef int (*init_fn_t)(void); /* application initialization (rtgui application etc ...) */ #define INIT_APP_EXPORT(fn) INIT_EXPORT(fn, "6") +/* init after mount fs */ +#define INIT_FS_EXPORT(fn) INIT_EXPORT(fn, "6.0") +/* init in secondary_cpu_c_start */ +#define INIT_SECONDARY_CPU_EXPORT(fn) INIT_EXPORT(fn, "7") + #if !defined(RT_USING_FINSH) /* define these to empty, even if not include finsh.h file */ #define FINSH_FUNCTION_EXPORT(name, desc) diff --git a/include/rtthread.h b/include/rtthread.h index fdb67a4d06..4c0de6a511 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -602,14 +602,7 @@ rt_ssize_t rt_device_write(rt_device_t dev, const void *buffer, rt_size_t size); rt_err_t rt_device_control(rt_device_t dev, int cmd, void *arg); -#ifdef RT_USING_DM -rt_err_t rt_device_bind_driver(rt_device_t device, rt_driver_t driver, void *node); -rt_device_t rt_device_create_since_driver(rt_driver_t drv,int device_id); -rt_err_t rt_device_probe_and_init(rt_device_t device); -rt_err_t rt_driver_match_with_id(const rt_driver_t drv,int device_id); -rt_err_t rt_driver_match_with_dtb(const rt_driver_t drv,void *from_node,int max_dev_num); -#endif /**@}*/ #endif |
