Changeset 87 for ctrl/firmware/Main/SES/Core
- Timestamp:
- Feb 11, 2025, 1:59:45 PM (3 months ago)
- Location:
- ctrl/firmware/Main/SES/Core/Src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ctrl/firmware/Main/SES/Core/Src/main_task.cpp
r82 r87 9 9 #include "main_task.h" 10 10 #include "utils.h" 11 #include "rtc.h" 11 12 12 13 13 14 static const char* const TAG = "MAIN"; 14 15 15 static constexpr uint16_t delay_ms = 5000 ;16 static constexpr uint16_t delay_ms = 5000U; 16 17 17 18 static constexpr unsigned MAX_CHARS_IN_VOLUME_NAME = 12U; … … 49 50 while(1) 50 51 { 51 vTaskDelay(pdMS_TO_TICKS(delay_ms));52 53 52 //DHCP_run(); 54 53 //printThreadStackInfo(TAG); 54 RTC_TimeTypeDef sTime; 55 RTC_DateTypeDef sDate; 56 HAL_RTC_GetTime(&hrtc, &sTime, RTC_FORMAT_BIN); 57 HAL_RTC_GetDate(&hrtc, &sDate, RTC_FORMAT_BIN); 58 printf("%u:%u:%u\n", sTime.Hours, sTime.Minutes, sTime.Seconds); 59 60 vTaskDelay(pdMS_TO_TICKS(delay_ms)); 55 61 } 56 62 } -
ctrl/firmware/Main/SES/Core/Src/sysdata.c
r83 r87 13 13 sys_data.s.lb_parity_mode = MODBUS_UART_PARITY_EVEN; 14 14 sys_data.s.lb_stopbit_mode = 1; 15 16 //sys_data.s.fw_sub_revision 15 17 }
Note: See TracChangeset
for help on using the changeset viewer.