45 .p_system_tag =
"Log_System",
46 .file_log_level = INFO,
54static bool log_system_enabled =
false;
62static log_type_t global_max_output_level = VERBOSE_DEBUG;
220 p_config->file_log_level = level;
231 global_max_output_level = level;
240 log_system_enabled =
true;
249 log_system_enabled =
false;
274 else if (level == WARNING)
279 else if (level == INFO)
284 else if (level == DEBUG)
289 else if (level == VERBOSE_DEBUG)
308 if (log_system_enabled)
311 if (level <= global_max_output_level)
314 if (level <= p_config->file_log_level)
void usart_print_string(const char myString[])
Utility function to transmit a string.
void usart_print_byte(uint8_t byte)
Prints a byte out as its 3-digit ascii equivalent.
void usart_print_binary_byte(uint8_t byte)
Prints a byte out in 1s and 0s.
void init_usart(void)
Takes the defined BAUD and F_CPU, calculates the bit-clock multiplier, configures the hardware USART ...
void usart_print_hex_byte(uint8_t byte)
Prints a byte out in hexadecimal format.
void log_global_on(void)
Turns logging system on globally.
void init_log_system(void)
Initialisation routine - call this function once at startup before using other functions.
void log_global_off(void)
Turns logging system off globally.
Driver file providing logging functionality over USART, to print debug messages and values to a temin...
Driver file providing core USART communication between the target MCU and your PC.
Config object, to be instantiated in each file the log system is to be used, then pass it's address i...