stm32f103rb_hal_blink

Non-blocking, event triggered blink example using HAL library
Index Commits Files Refs README
app/src/logger.c (578B)
   1 /*
   2  * Copyright (c) 2023 Sebastian Bedin <sebabedin@gmail.com>.
   3  *
   4  * See file `LICENSE` for full details
   5  */
   6 
   7 #include <stdio.h>
   8 #include <stdint.h>
   9 #include <stdbool.h>
  10 #include <string.h>
  11 
  12 #include "main.h"
  13 
  14 #include "logger.h"
  15 
  16 #if 1 == LOGGER_CONFIG_ENABLE
  17 static char logger_msg_buffer_[LOGGER_CONFIG_MAXLEN];
  18 char* const logger_msg = logger_msg_buffer_;
  19 int logger_msg_len;
  20 #endif
  21 
  22 #if 1 == LOGGER_CONFIG_USE_SEMIHOSTING
  23 void logger_log_print_(char* const msg)
  24 {
  25     printf(msg);
  26     fflush(stdout);
  27 }
  28 #else
  29 void logger_log_print_(char* const msg)
  30 {
  31     return;
  32 }
  33 #endif