From 98463aa9f12923710e9e7d844a889ee57973cd26 Mon Sep 17 00:00:00 2001 From: Timothy Yin Date: Sat, 29 Mar 2025 16:55:09 +0800 Subject: [PATCH] feat: implement OneNet communication and ESP8266 integration break: switch to c8t6 --- .cproject | 174 +- .idea/workspace.xml | 99 +- .mxproject | 4 +- .osx.project | 0 CMakeLists.txt | 8 +- Core/Inc/MqttKit.h | 183 +++ Core/Inc/MqttKit/common.h | 17 + Core/Inc/OneNet.h | 15 + Core/Inc/esp8266.h | 18 + Core/Inc/stm32f1xx_it.h | 2 + Core/Src/MqttKit.c | 1399 +++++++++++++++++ Core/Src/OneNet.c | 236 +++ Core/Src/esp8266.c | 256 +++ Core/Src/gpio.c | 20 +- Core/Src/i2c.c | 1 - Core/Src/main.c | 140 +- Core/Src/stm32f1xx_it.c | 31 +- Core/Src/usart.c | 10 + ...tm32f103c6tx.s => startup_stm32f103c8tx.s} | 34 +- .../Include/{stm32f103x6.h => stm32f103xb.h} | 229 ++- IntelliChargingPile.ioc | 29 +- ...103C6TX_FLASH.ld => STM32F103C8TX_FLASH.ld | 10 +- 22 files changed, 2725 insertions(+), 190 deletions(-) create mode 100644 .osx.project create mode 100644 Core/Inc/MqttKit.h create mode 100644 Core/Inc/MqttKit/common.h create mode 100644 Core/Inc/OneNet.h create mode 100644 Core/Inc/esp8266.h create mode 100644 Core/Src/MqttKit.c create mode 100644 Core/Src/OneNet.c create mode 100644 Core/Src/esp8266.c rename Core/Startup/{startup_stm32f103c6tx.s => startup_stm32f103c8tx.s} (92%) rename Drivers/CMSIS/Device/ST/STM32F1xx/Include/{stm32f103x6.h => stm32f103xb.h} (98%) rename STM32F103C6TX_FLASH.ld => STM32F103C8TX_FLASH.ld (95%) diff --git a/.cproject b/.cproject index a8dc553..fad6e89 100644 --- a/.cproject +++ b/.cproject @@ -17,12 +17,12 @@ -