From 0cbd186dc11f008c5dc095968a1545282c621f5c Mon Sep 17 00:00:00 2001 From: ThinkPad-T460P Date: Thu, 17 Dec 2020 18:22:19 +0800 Subject: [PATCH] V0.9.1 beta support voltage monitor support formatted log message made log system thread safe output more infomation of MCU and firmware --- .cproject | 97 +++++---- .gitignore | 1 + .settings/language.settings.xml | 4 +- .settings/org.eclipse.cdt.codan.core.prefs | 146 ++++++++++++- .settings/org.eclipse.cdt.core.prefs | 6 + .settings/stm32cubeide.project.prefs | 4 + Core/Inc/FreeRTOSConfig.h | 16 +- Core/Inc/adc.h | 22 +- Core/Inc/dma.h | 18 +- Core/Inc/gpio.h | 24 +-- Core/Inc/i2c.h | 22 +- Core/Inc/iwdg.h | 22 +- Core/Inc/navikit.h | 2 + Core/Inc/rtc.h | 22 +- Core/Inc/usart.h | 25 +-- Core/Src/adc.c | 6 +- Core/Src/dma.c | 14 +- Core/Src/freertos.c | 225 ++++++++++++--------- Core/Src/gpio.c | 7 +- Core/Src/i2c.c | 6 +- Core/Src/iwdg.c | 6 +- Core/Src/main.c | 2 +- Core/Src/navikit.c | 31 +-- Core/Src/rtc.c | 6 +- Core/Src/stm32f1xx_hal_msp.c | 8 - Core/Src/stm32f1xx_hal_timebase_tim.c | 5 +- Core/Src/usart.c | 15 +- Middlewares/Log/log.c | 32 +++ Middlewares/Log/log.h | 21 ++ Middlewares/Log/printf.c | 173 ++++++++++++++++ NaviKit_stm32 Debug.launch | 3 + NaviKit_stm32.ioc | 49 +++-- USB_DEVICE/Target/usbd_conf.h | 7 + 33 files changed, 729 insertions(+), 318 deletions(-) create mode 100644 .settings/stm32cubeide.project.prefs create mode 100644 Middlewares/Log/log.c create mode 100644 Middlewares/Log/log.h create mode 100644 Middlewares/Log/printf.c diff --git a/.cproject b/.cproject index 79cd334..44ac3bd 100644 --- a/.cproject +++ b/.cproject @@ -7,56 +7,59 @@ - - + + - - + + + + + + + + - - + + @@ -108,16 +119,18 @@ - + -