The present application relates to a kind of kernel driving method under embedded real-time
operating system, belong to embedded real-time
operating system field.The method of the present application uses
bus type driving framework to combine device tree mechanism, realizes the separation of driving code and hardware configuration information, to build kernel driving model;Wherein,
bus type driving framework divides the driving of a certain device into two independent parts:
bus driver and device driver;Device tree mechanism separates hardware configuration information from kernel code and driver program, and provides a standardized
hardware description language to maintain hardware information, so that developers quickly understand hardware
resource allocation;Through device tree mechanism, specific information of hardware device is dynamically transmitted to
operating system, without using conditional compilation or static configuration
hard coding.The present application realizes the
standardization of hardware description, the generalization of driving code, to greatly improve the portability,
maintainability and stability of embedded real-time operating
system driving.