Skip to content

Commit

Permalink
firmware: app: tasks: Updating time requirements of ttc related tasks #…
Browse files Browse the repository at this point in the history
  • Loading branch information
c-porto committed Mar 21, 2024
1 parent 3f3e7c9 commit 2587cf3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/app/tasks/process_tc.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
#define TASK_PROCESS_TC_NAME "Process TC" /**< Task name. */
#define TASK_PROCESS_TC_STACK_SIZE 500 /**< Stack size in bytes. */
#define TASK_PROCESS_TC_PRIORITY 4 /**< Task priority. */
#define TASK_PROCESS_TC_PERIOD_MS 1000 /**< Task period in milliseconds. */
#define TASK_PROCESS_TC_INITIAL_DELAY_MS 1000 /**< Delay, in milliseconds, before the first execution. */
#define TASK_PROCESS_TC_PERIOD_MS 1000 /**< Task period in milliseconds. */
#define TASK_PROCESS_TC_INITIAL_DELAY_MS 2000 /**< Delay, in milliseconds, before the first execution. */
#define TASK_PROCESS_TC_INIT_TIMEOUT_MS (10*1000) /**< Wait time to initialize the task in milliseconds. */

/**
Expand Down
3 changes: 3 additions & 0 deletions firmware/app/tasks/read_ttc.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ void vTaskReadTTC(void)
/* Wait startup task to finish */
xEventGroupWaitBits(task_startup_status, TASK_STARTUP_DONE, pdFALSE, pdTRUE, pdMS_TO_TICKS(TASK_READ_TTC_INIT_TIMEOUT_MS));

/* Delay before the first cycle */
vTaskDelay(pdMS_TO_TICKS(TASK_READ_TTC_INITIAL_DELAY_MS));

while(1)
{
TickType_t last_cycle = xTaskGetTickCount();
Expand Down
1 change: 1 addition & 0 deletions firmware/app/tasks/read_ttc.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#define TASK_READ_TTC_STACK_SIZE 384 /**< Stack size in bytes. */
#define TASK_READ_TTC_PRIORITY 3 /**< Task priority. */
#define TASK_READ_TTC_PERIOD_MS (60000) /**< Task period in milliseconds. */
#define TASK_READ_TTC_INITIAL_DELAY_MS 1000 /**< Delay, in milliseconds, before the first execution. */
#define TASK_READ_TTC_INIT_TIMEOUT_MS 2000 /**< Wait time to initialize the task in milliseconds. */

/**
Expand Down

0 comments on commit 2587cf3

Please sign in to comment.