From 9b4f0dfa1d4d50076d63449d181b9e9dcffb4e6e Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 18 Apr 2024 21:24:52 +0800 Subject: [PATCH] V3 --- sdk | 2 +- usrc/main.cpp | 5 ++++- usrc/project_configs.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sdk b/sdk index 5d37a6c..763ba8e 160000 --- a/sdk +++ b/sdk @@ -1 +1 @@ -Subproject commit 5d37a6c246816445a1da40f589c3de3b8cb177cc +Subproject commit 763ba8e256139f47d81e1947b89e895027148c33 diff --git a/usrc/main.cpp b/usrc/main.cpp index 42e86c8..8be3d1d 100644 --- a/usrc/main.cpp +++ b/usrc/main.cpp @@ -15,10 +15,10 @@ #include "sdk\components\tmc\ic\ztmc4361A.hpp" #include "sdk\components\tmc\ic\ztmc5130.hpp" // +#include "iwdg.h" #include "sdk\components\hardware\uart\zuart_dma_receiver.hpp" #include "serial485_to_analog.hpp" #include "temperature_sensor.hpp" -#include "iwdg.h" #define TAG "main" using namespace iflytop; using namespace std; @@ -82,6 +82,9 @@ static void initsubmodule() { m_temperature_sensor[4].initialize(&hadc1, ADC_CHANNEL_14); temperature_capture_thread.init("temperature_capture_thread", 1024, osPriorityAboveNormal); + for (int i = 0; i < 5; i++) { + m_temperature_sensor[i].loop(); + } temperature_capture_thread.start([]() { while (1) { for (int i = 0; i < 5; i++) { diff --git a/usrc/project_configs.h b/usrc/project_configs.h index e4d258f..b376f19 100644 --- a/usrc/project_configs.h +++ b/usrc/project_configs.h @@ -1,5 +1,5 @@ #pragma once -#define PC_VERSION "v2" +#define PC_VERSION "v3" #define PC_MANUFACTURER "http://www.iflytop.com/" #define PC_PROJECT_NAME "graphite_digester_temperature_sensors_board" #define PC_IFLYTOP_ENABLE_OS 1