kernel: update documentation referencing old init levels
A couple references to the old PRIMARY and SECONDARY levels were left in place when everything moved to the new levels. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
parent
d1bca4e056
commit
5bb18ac719
2 changed files with 3 additions and 3 deletions
|
@ -248,7 +248,7 @@ Then when the particular instance is declared:
|
||||||
static struct my_driver_data_0;
|
static struct my_driver_data_0;
|
||||||
|
|
||||||
DEVICE_AND_API_INIT(my_driver_0, MY_DRIVER_0_NAME, my_driver_init,
|
DEVICE_AND_API_INIT(my_driver_0, MY_DRIVER_0_NAME, my_driver_init,
|
||||||
&my_driver_data_0, &my_driver_config_0, SECONDARY,
|
&my_driver_data_0, &my_driver_config_0, POST_KERNEL,
|
||||||
MY_DRIVER_0_PRIORITY, &my_driver_api_funcs);
|
MY_DRIVER_0_PRIORITY, &my_driver_api_funcs);
|
||||||
|
|
||||||
#endif /* CONFIG_MY_DRIVER_0 */
|
#endif /* CONFIG_MY_DRIVER_0 */
|
||||||
|
@ -274,7 +274,7 @@ executed. Any driver will specify one of five initialization levels:
|
||||||
|
|
||||||
``PRE_KERNEL_2``
|
``PRE_KERNEL_2``
|
||||||
Used for devices that rely on the initialization of devices initialized
|
Used for devices that rely on the initialization of devices initialized
|
||||||
as part of the PRIMARY level. These devices cannot use any kernel
|
as part of the ``PRE_KERNEL_1`` level. These devices cannot use any kernel
|
||||||
services during configuration, since the kernel services are not yet
|
services during configuration, since the kernel services are not yet
|
||||||
available. Init functions at this level run on the interrupt stack.
|
available. Init functions at this level run on the interrupt stack.
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ extern "C" {
|
||||||
* yet available.
|
* yet available.
|
||||||
* \n
|
* \n
|
||||||
* \li PRE_KERNEL_2: Used for devices that rely on the initialization of devices
|
* \li PRE_KERNEL_2: Used for devices that rely on the initialization of devices
|
||||||
* initialized as part of the PRIMARY level. These devices cannot use any
|
* initialized as part of the PRE_KERNEL_1 level. These devices cannot use any
|
||||||
* kernel services during configuration, since they are not yet available.
|
* kernel services during configuration, since they are not yet available.
|
||||||
* \n
|
* \n
|
||||||
* \li POST_KERNEL: Used for devices that require kernel services during
|
* \li POST_KERNEL: Used for devices that require kernel services during
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue