diff --git a/.cproject b/.cproject
index 79226b1..de9f5e8 100644
--- a/.cproject
+++ b/.cproject
@@ -24,7 +24,11 @@
-
+
+
+
+
+
@@ -44,6 +48,7 @@
+
@@ -64,6 +72,9 @@
+
@@ -94,8 +106,10 @@
-
+
+
+
@@ -117,28 +131,28 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
+
-
-
-
+
+
-
-
-
-
+
+
-
-
+
@@ -189,8 +203,10 @@
-
+
+
+
@@ -218,4 +234,5 @@
+
\ No newline at end of file
diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml
index bc0f592..a75efe7 100644
--- a/.settings/language.settings.xml
+++ b/.settings/language.settings.xml
@@ -5,7 +5,7 @@
-
+
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..bb29a1d
--- /dev/null
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/=GBK
diff --git a/.settings/org.eclipse.core.runtime.prefs b/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
new file mode 100644
index 0000000..7003de5
--- /dev/null
+++ b/.vscode/c_cpp_properties.json
@@ -0,0 +1,28 @@
+{
+ "configurations": [
+ {
+ "name": "app",
+ "includePath": [
+ "./Core/Inc",
+ "./Drivers/STM32F4xx_HAL_Driver/Inc",
+ "./Drivers/STM32F4xx_HAL_Driver/Inc/Legacy",
+ "./Middlewares/Third_Party/FreeRTOS/Source/include",
+ "./Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS",
+ "./Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F",
+ "./Drivers/CMSIS/Device/ST/STM32F4xx/Include",
+ "./Drivers/CMSIS/Include",
+ "C:/ST/STM32CubeIDE_1.13.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/arm-none-eabi/include",
+ "./usrc/",
+ "./sdk",
+ "./"
+ ],
+ "defines": [
+ "DEBUG",
+ "USE_HAL_DRIVER",
+ "STM32F407xx"
+ ],
+ "intelliSenseMode": "${default}"
+ }
+ ],
+ "version": 4
+}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..45563fa
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,82 @@
+{
+ "files.associations": {
+ "*.hpp": "cpp",
+ "iostream": "cpp",
+ "list": "cpp",
+ "memory": "cpp",
+ "sstream": "cpp",
+ "*.tcc": "cpp",
+ "compare": "c",
+ "stdbool.h": "c",
+ "stdint.h": "c",
+ "chip.h": "c",
+ "atomic": "c",
+ "random": "c",
+ "delay.h": "c",
+ "main.h": "c",
+ "stm32f4xx_hal.h": "c",
+ "stm32f4xx_hal_conf.h": "c",
+ "marco.h": "c",
+ "stdio.h": "c",
+ "cstdint": "c",
+ "stm32f4xx_hal_rcc.h": "c",
+ "stm32f4xx_hal_def.h": "c",
+ "stm32_hal_legacy.h": "c",
+ "array": "cpp",
+ "bit": "cpp",
+ "cctype": "cpp",
+ "clocale": "cpp",
+ "cmath": "cpp",
+ "concepts": "cpp",
+ "cstddef": "cpp",
+ "cstdio": "cpp",
+ "cstdlib": "cpp",
+ "cwchar": "cpp",
+ "cwctype": "cpp",
+ "deque": "cpp",
+ "map": "cpp",
+ "set": "cpp",
+ "string": "cpp",
+ "unordered_map": "cpp",
+ "vector": "cpp",
+ "exception": "cpp",
+ "algorithm": "cpp",
+ "functional": "cpp",
+ "iterator": "cpp",
+ "memory_resource": "cpp",
+ "numeric": "cpp",
+ "string_view": "cpp",
+ "system_error": "cpp",
+ "tuple": "cpp",
+ "type_traits": "cpp",
+ "utility": "cpp",
+ "fstream": "cpp",
+ "initializer_list": "cpp",
+ "iosfwd": "cpp",
+ "istream": "cpp",
+ "limits": "cpp",
+ "new": "cpp",
+ "numbers": "cpp",
+ "ostream": "cpp",
+ "stdexcept": "cpp",
+ "streambuf": "cpp",
+ "typeinfo": "cpp",
+ "cstdarg": "cpp",
+ "cinttypes": "cpp",
+ "bsp_driver_sd.h": "c",
+ "cmsis_os.h": "c",
+ "freertos.h": "c",
+ "portable.h": "c",
+ "mutex": "cpp",
+ "condition_variable": "cpp",
+ "ctime": "cpp",
+ "ratio": "cpp",
+ "semaphore": "cpp",
+ "stop_token": "cpp",
+ "thread": "cpp",
+ "early_ticket.h": "c",
+ "chrono": "cpp"
+ },
+ "files.autoGuessEncoding": false,
+ "files.encoding": "gbk"
+}
\ No newline at end of file
diff --git a/Core/Src/main.c b/Core/Src/main.c
index 91ff082..bbc5244 100644
--- a/Core/Src/main.c
+++ b/Core/Src/main.c
@@ -195,7 +195,7 @@ void PeriphCommonClock_Config(void)
}
/* USER CODE BEGIN 4 */
-
+#if 0
/* USER CODE END 4 */
/**
@@ -218,7 +218,7 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
/* USER CODE END Callback 1 */
}
-
+#endif
/**
* @brief This function is executed in case of error occurrence.
* @retval None
diff --git a/sdk b/sdk
index ecff87c..dc6e71f 160000
--- a/sdk
+++ b/sdk
@@ -1 +1 @@
-Subproject commit ecff87c8d8d92f48420354d99a6102168e3caa38
+Subproject commit dc6e71f6aac60fe6e2a403f790c134bc299769dd
diff --git a/usrc/main.cpp b/usrc/main.cpp
new file mode 100644
index 0000000..574d8ab
--- /dev/null
+++ b/usrc/main.cpp
@@ -0,0 +1,34 @@
+#include
+#include
+
+#include "sdk/os/zos.hpp"
+#include "sdk\components\dwin\dwin_screen.hpp"
+#define TAG "main"
+using namespace iflytop;
+using namespace std;
+
+extern void umain();
+extern "C" {
+void StartDefaultTask(void const* argument) { umain(); }
+}
+
+void umain() {
+ /*******************************************************************************
+ * 系统初始化 *
+ *******************************************************************************/
+ chip_cfg_t chipcfg;
+ chipcfg.us_dleay_tim = &DELAY_US_TIMER;
+ chipcfg.tim_irq_scheduler_tim = &TIM_IRQ_SCHEDULER_TIMER;
+ chipcfg.huart = &DEBUG_UART;
+ chipcfg.debuglight = DEBUG_LIGHT_GPIO;
+
+ chip_init(&chipcfg);
+
+ zos_cfg_t zoscfg;
+ zos_init(&zoscfg);
+
+ while (true) {
+ OSDefaultSchduler::getInstance()->loop();
+ osDelay(1);
+ }
+}
diff --git a/usrc/project_configs.h b/usrc/project_configs.h
new file mode 100644
index 0000000..8a26c7a
--- /dev/null
+++ b/usrc/project_configs.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#define VERSION "v1.0.0"
+#define MANUFACTURER "http://www.iflytop.com/"
+#define PROJECT_NAME "ecom_monitor"
+#define DEBUG_UART huart1
+#define DEBUG_LIGHT_GPIO PA1
+
+#define DELAY_US_TIMER htim6 // 定时器无需配置使能即可
+#define TIM_IRQ_SCHEDULER_TIMER htim7 // 定时器无需配置使能即可
+#define IFLTYOP_ZTICKET_TIMER TIM11 //
+
+#define IFLYTOP_ENABLE_OS 1
+#define IFLYTOP_PREEMPTPRIORITY_DEFAULT 5
+
+/*********************************************************************************/
+
+#define VELOCITY_MAX_NUM 5000
+#define FLOW_RATE_MAX_NUM 10.0
\ No newline at end of file