You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
530 B
C

#include "utils.h"
/* current system status */
static SystemStatus cur_system_status = SYSTEM_STATUS_INIT;
/**
* System go to fault status.
*/
void system_go_to_fault_status(void){
cur_system_status = SYSTEM_STATUS_FAULT;
}
/**
* Set current system status.
*
* @param status system status
*/
void set_system_status(SystemStatus status){
cur_system_status = status;
}
/**
* Get current system status.
*
* @return current system status
*/
SystemStatus get_system_status(void){
return cur_system_status;
}