Ignore:
Timestamp:
Jan 15, 2025, 10:01:55 AM (24 hours ago)
Author:
Zed
Message:

Fixing project.

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  
    33#include "main.h"
    44#include "keys_thread.h"
     5#include "utils.h"
    56
    67static const char* const TAG = "KEYS";
     
    3536                //HAL_GPIO_WritePin(RX2_LED_GPIO_Port, RX2_LED_Pin, GPIO_PIN_SET);
    3637
    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);
    4539        }
    4640}
  • ctrl/firmware/Main/SES/Core/Src/main_thread.cpp

    r62 r63  
    55#include "fx_api.h"
    66#include "main_thread.h"
     7#include "utils.h"
    78
    89
    910static const char* const TAG = "MAIN";
     11
    1012static constexpr uint16_t delay_ms = 5000;
    1113static constexpr unsigned MAX_CHARS_IN_VOLUME_NAME = 12U;
     
    6870                tx_thread_sleep(delay_ms);
    6971
    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);
    7673        }
    7774}
Note: See TracChangeset for help on using the changeset viewer.