|
GPS Device
|
Log subsystem implementation. More...
#include <stdarg.h>#include "log.h"#include "common.h"#include "err.h"#include "stm32f401re_gpio.h"#include "stm32f401re_usart.h"#include "stm32f401re_rtc.h"#include "modules.h"#include "init.h"
Go to the source code of this file.
Classes | |
| struct | internal_state_s |
| Internal state of the SysTick driver. More... | |
Functions | |
| static ERR_te | log_print_prologue (MODULES_te subsys, LOG_LEVEL_te log_level) |
| Prints the log message prologue: timestamp, severity, and subsystem name. | |
| ERR_te | log_init (LOG_HANDLE_ts *log_handle) |
| Initializes the log subsystem. | |
| ERR_te | log_deinit () |
| Deinitializes the log subsystem. | |
| ERR_te | log_print (MODULES_te subsys, LOG_LEVEL_te subsys_log_level, LOG_LEVEL_te log_level, char *msg,...) |
| Prints a formatted message to the serial terminal if the severity threshold is met. | |
| ERR_te | log_get_level_name (LOG_LEVEL_te log_level, char *str) |
| Converts a LOG_LEVEL_te value to its lowercase string name. | |
| ERR_te | log_level_to_int (char const *str, LOG_LEVEL_te *log_level) |
| Converts a log level name string to its LOG_LEVEL_te value. | |
| ERR_te | log_set_force_disable (bool bool_status) |
| Enables or disables forced suppression of all log output. | |
Variables | |
| const char * | modules_names [] |
| External array mapping MODULES_te values to their name strings. | |
| static struct internal_state_s | internal_state = { 0 } |
| Singleton instance of the log subsystem internal state. | |
Log subsystem implementation.
Definition in file log.c.
|
extern |
External array mapping MODULES_te values to their name strings.
External array mapping MODULES_te values to their name strings.
Indexed by MODULES_te values. Used by the log subsystem to prefix each log message with the originating subsystem name, and by the CLI to display module names.
The order and count of entries must remain in sync with MODULES_te.
Definition at line 24 of file modules.c.
|
static |