src/luos.c
void Luos_Run(void)
{
    static node_state_t node_state = NODE_INIT;

    switch (node_state)
    {
        case NODE_INIT:
            Luos_Init();
#ifdef BOOTLOADER_CONFIG
            LuosBootloader_Init();
#else
            Luos_PackageInit();
#endif
            // go to run state after initialization
            node_state = NODE_RUN;
            break;
        case NODE_RUN:
            Luos_Loop();
#ifdef BOOTLOADER_CONFIG
            LuosBootloader_Loop();
#else
            Luos_PackageLoop();
#endif
            break;
        default:
            Luos_Loop();
            Luos_PackageLoop();
            break;
    }
}
/******************************************************************************
 * @brief Luos high level state machine
 * @param None
 * @return None
 ******************************************************************************/
@brief Luos high level state machine
@param None
@return None
@brief Luos high level state machine @param None @return None
void Luos_Run(void)
{
    static node_state_t node_state = NODE_INIT;
    switch (node_state)
    {
        case NODE_INIT:
            Luos_Init();
#ifdef BOOTLOADER_CONFIG
            LuosBootloader_Init();
#else
            Luos_PackageInit();
#endif
            node_state = NODE_RUN;
            break;
        case NODE_RUN:
            Luos_Loop();
#ifdef BOOTLOADER_CONFIG
            LuosBootloader_Loop();
#else
            Luos_PackageLoop();
#endif
            break;
        default:
            Luos_Loop();
            Luos_PackageLoop();
            break;
    }
}
void Luos_Run ( void ) { static node_state_t node_state = NODE_INIT ; switch ( node_state ) { case NODE_INIT : Luos_Init ( ) ; #ifdef BOOTLOADER_CONFIG LuosBootloader_Init ( ) ; #else Luos_PackageInit ( ) ; #endif node_state = NODE_RUN ; break ; case NODE_RUN : Luos_Loop ( ) ; #ifdef BOOTLOADER_CONFIG LuosBootloader_Loop ( ) ; #else Luos_PackageLoop ( ) ; #endif break ; default : Luos_Loop ( ) ; Luos_PackageLoop ( ) ; break ; } }
@brief Luos high level state machine
 @param None
 @return None
@brief Luos high level state machine @param None @return None
// go to run state after initialization