This commit is contained in:
aZholtikov committed 2026-11-03 10:01:27 +03:00
1 parent e9fb27ca88
commit fd5bcf2290
4 files changed
+380 -175

No files matched your search

+21 -18
View File
@@ -27,21 +27,24 @@
#include "zh_ota_server.h"
#include "zh_espnow.h"
#include "zh_syslog.h"
#include "zh_menu.h"
#define STATS_TASK_PRIORITY tskIDLE_PRIORITY /*!< Priority of the statistics logging task. */
#define STATS_TASK_STACK_SIZE configMINIMAL_STACK_SIZE + 1280 /*!< Stack size for the statistics logging task. */
#define A_INCLINOMETER_TASK_PRIORITY tskIDLE_PRIORITY + 5 /*!< Priority of the A inclinometer processing task. */
#define A_INCLINOMETER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE + 512 /*!< Stack size for the A inclinometer processing task. */
#define B_INCLINOMETER_TASK_PRIORITY tskIDLE_PRIORITY + 5 /*!< Priority of the B inclinometer processing task. */
#define B_INCLINOMETER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE + 512 /*!< Stack size for the B inclinometer processing task. */
#define A_TACHOMETER_TASK_PRIORITY tskIDLE_PRIORITY + 5 /*!< Priority of the A tachometer processing task. */
#define A_TACHOMETER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE + 512 /*!< Stack size for the A tachometer processing task. */
#define B_TACHOMETER_TASK_PRIORITY tskIDLE_PRIORITY + 5 /*!< Priority of the B tachometer processing task. */
#define B_TACHOMETER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE + 512 /*!< Stack size for the B tachometer processing task. */
#define ENCODER_TASK_PRIORITY tskIDLE_PRIORITY + 4 /*!< Priority of the mode encoder task. */
#define ENCODER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE /*!< Stack size for the mode encoder task. */
#define EXPANDER_TASK_PRIORITY tskIDLE_PRIORITY + 4 /*!< Priority of the PCF8574 expander task. */
#define EXPANDER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE /*!< Stack size for the PCF8574 expander task. */
#define STATS_TASK_PRIORITY (tskIDLE_PRIORITY) /*!< Priority of the statistics logging task. */
#define STATS_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 1280) /*!< Stack size for the statistics logging task. */
#define A_INCLINOMETER_TASK_PRIORITY (tskIDLE_PRIORITY + 5) /*!< Priority of the A inclinometer processing task. */
#define A_INCLINOMETER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 512) /*!< Stack size for the A inclinometer processing task. */
#define B_INCLINOMETER_TASK_PRIORITY (tskIDLE_PRIORITY + 5) /*!< Priority of the B inclinometer processing task. */
#define B_INCLINOMETER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 512) /*!< Stack size for the B inclinometer processing task. */
#define A_TACHOMETER_TASK_PRIORITY (tskIDLE_PRIORITY + 5) /*!< Priority of the A tachometer processing task. */
#define A_TACHOMETER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 512) /*!< Stack size for the A tachometer processing task. */
#define B_TACHOMETER_TASK_PRIORITY (tskIDLE_PRIORITY + 5) /*!< Priority of the B tachometer processing task. */
#define B_TACHOMETER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 512) /*!< Stack size for the B tachometer processing task. */
#define ENCODER_TASK_PRIORITY (tskIDLE_PRIORITY + 4) /*!< Priority of the mode encoder task. */
#define ENCODER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 1280) /*!< Stack size for the mode encoder task. */
#define EXPANDER_TASK_PRIORITY (tskIDLE_PRIORITY + 4) /*!< Priority of the PCF8574 expander task. */
#define EXPANDER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE) /*!< Stack size for the PCF8574 expander task. */
#define MENU_TASK_PRIORITY (tskIDLE_PRIORITY + 3) /*!< Priority of the menu task. */
#define MENU_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 512) /*!< Stack size for the menu task. */
// #define TRIAC_ON true /*!< Triac enabled state. */
// #define TRIAC_OFF false /*!< Triac disabled state. */
@@ -104,10 +107,10 @@ extern "C"
*/
typedef struct
{
uint32_t a_inclinometer_task_min_stack_size; /*!< Minimum free stack size of the A inclinometer task. */
uint32_t b_inclinometer_task_min_stack_size; /*!< Minimum free stack size of the B inclinometer task. */
uint32_t a_tachometer_task_min_stack_size; /*!< Minimum free stack size of the A tachometer task. */
uint32_t b_tachometer_task_min_stack_size; /*!< Minimum free stack size of the B tachometer task. */
volatile uint32_t a_inclinometer_task_min_stack_size; /*!< Minimum free stack size of the A inclinometer task. */
volatile uint32_t b_inclinometer_task_min_stack_size; /*!< Minimum free stack size of the B inclinometer task. */
volatile uint32_t a_tachometer_task_min_stack_size; /*!< Minimum free stack size of the A tachometer task. */
volatile uint32_t b_tachometer_task_min_stack_size; /*!< Minimum free stack size of the B tachometer task. */
} task_stats_t;
#ifdef __cplusplus