Choco OS  V.0.16.9.0
Join to the chocolate world
Bootloader

Mechanism for boot loading the system. More...

Functions

void oC_Boot_Main (void)
 main function of the system More...
 
oC_Boot_Level_t oC_Boot_GetCurrentBootLevel (void)
 returns current boot level More...
 
oC_Timestamp_t oC_Boot_GetStartupTimestamp (void)
 returns timestamp of startup
 
void oC_Boot_Restart (oC_Boot_Reason_t Reason, oC_User_t User)
 restarts the system More...
 
void oC_Boot_Shutdown (oC_Boot_Reason_t Reason, oC_User_t User)
 shutting down the system More...
 
oC_Boot_Reason_t oC_Boot_GetLastShutdownReason (void)
 returns reason of shutting down More...
 
oC_User_t oC_Boot_GetLastShutdownUser (void)
 returns id of user that shutdown the system last time More...
 

Detailed Description

Function Documentation

oC_Boot_Level_t oC_Boot_GetCurrentBootLevel ( void  )

Returns current level of system boot

Definition at line 131 of file oc_boot.c.

oC_Boot_Reason_t oC_Boot_GetLastShutdownReason ( void  )

The function returns reason of last shutting down the system

Returns
reason of last shutdown operation
oC_User_t oC_Boot_GetLastShutdownUser ( void  )

The function is for reading the user, that cause shutdown operation for last time.

Returns
user that caused shutdown operation
void oC_Boot_Main ( void  )

The function is the main function of the system. It is called after the system starts.

Definition at line 111 of file oc_boot.c.

void oC_Boot_Restart ( oC_Boot_Reason_t  Reason,
oC_User_t  User 
)

The function is for restarting the system

Parameters
ReasonThe parameter is for saving the reason why the system was restarted
UserThis holds user, that calls restarting the system

Definition at line 145 of file oc_boot.c.

void oC_Boot_Shutdown ( oC_Boot_Reason_t  Reason,
oC_User_t  User 
)

The function is for shutting down the system.

Parameters
ReasonThe parameter is for saving the reason why the system was turned off
UserThis holds user, that calls the function