|
|
@ -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++) { |
|
|
|