Changeset 63 for ctrl/firmware/Main/SES/Core/Src
- Timestamp:
- Jan 15, 2025, 10:01:55 AM (24 hours ago)
- Location:
- ctrl/firmware/Main/SES/Core/Src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ctrl/firmware/Main/SES/Core/Src/keys_thread.cpp
r62 r63 3 3 #include "main.h" 4 4 #include "keys_thread.h" 5 #include "utils.h" 5 6 6 7 static const char* const TAG = "KEYS"; … … 35 36 //HAL_GPIO_WritePin(RX2_LED_GPIO_Port, RX2_LED_Pin, GPIO_PIN_SET); 36 37 37 // Calculating worse stack allocation 38 TX_THREAD* current_thread = tx_thread_identify(); 39 /*printf("%s: Stack size: %lu, used: %u, free: %u\n", TAG, current_thread->tx_thread_stack_size, 40 (uint8_t*)current_thread->tx_thread_stack_ptr - (uint8_t*)current_thread->tx_thread_stack_start, 41 (uint8_t*)current_thread->tx_thread_stack_end - (uint8_t*)current_thread->tx_thread_stack_ptr);*/ 42 43 /*if (HAL_GPIO_ReadPin(SD_DETECT_GPIO_Port, SD_DETECT_Pin) == GPIO_PIN_RESET) printf("SD card present\n"); 44 else if (HAL_GPIO_ReadPin(SD_DETECT_GPIO_Port, SD_DETECT_Pin) == GPIO_PIN_SET) printf("SD card not present\n");*/ 38 printThreadStackInfo(TAG); 45 39 } 46 40 } -
ctrl/firmware/Main/SES/Core/Src/main_thread.cpp
r62 r63 5 5 #include "fx_api.h" 6 6 #include "main_thread.h" 7 #include "utils.h" 7 8 8 9 9 10 static const char* const TAG = "MAIN"; 11 10 12 static constexpr uint16_t delay_ms = 5000; 11 13 static constexpr unsigned MAX_CHARS_IN_VOLUME_NAME = 12U; … … 68 70 tx_thread_sleep(delay_ms); 69 71 70 // Calculating worse stack allocation 71 TX_THREAD* current_thread = tx_thread_identify(); 72 /*printf("%s: Stack size: %lu, used: %u, free: %u\n", TAG, current_thread->tx_thread_stack_size, 73 (uint8_t*)current_thread->tx_thread_stack_ptr - (uint8_t*)current_thread->tx_thread_stack_start, 74 (uint8_t*)current_thread->tx_thread_stack_end - (uint8_t*)current_thread->tx_thread_stack_ptr);*/ 75 72 printThreadStackInfo(TAG); 76 73 } 77 74 }
Note: See TracChangeset
for help on using the changeset viewer.