Skip to content

Commit

Permalink
firmware: app: tasks: Adding the creation of the position determinati…
Browse files Browse the repository at this point in the history
…on task to the boot sequence #336
  • Loading branch information
mgm8 committed Jul 26, 2023
1 parent e6d95e9 commit 40ab5a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion firmware/app/tasks/tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* \author Gabriel Mariano Marcelino <[email protected]>
*
* \version 0.9.18
* \version 0.10.7
*
* \date 2019/11/02
*
Expand All @@ -52,6 +52,7 @@
#include "read_antenna.h"
#include "data_log.h"
#include "process_tc.h"
#include "pos_det.h"

void create_tasks(void)
{
Expand Down Expand Up @@ -184,6 +185,15 @@ void create_tasks(void)
}
#endif /* CONFIG_TASK_ANTENNA_DEPLOYMENT_ENABLED */

#if defined(CONFIG_TASK_POSITION_DETERMINATION_ENABLED) && (CONFIG_TASK_POSITION_DETERMINATION_ENABLED == 1)
xTaskCreate(vTaskPosDet, TASK_POS_DET_NAME, TASK_POS_DET_STACK_SIZE, NULL, TASK_POS_DET_PRIORITY, &xTaskPosDetHandle);

if (xTaskPosDetHandle == NULL)
{
/* Error creating the position determination task */
}
#endif /* CONFIG_TASK_POSITION_DETERMINATION_ENABLED */

create_event_groups();
}

Expand Down
3 changes: 2 additions & 1 deletion firmware/config/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* \author Gabriel Mariano Marcelino <[email protected]>
*
* \version 0.10.1
* \version 0.10.7
*
* \date 2019/10/26
*
Expand All @@ -51,6 +51,7 @@
#define CONFIG_TASK_DATA_LOG_ENABLED 1
#define CONFIG_TASK_PROCESS_TC_ENABLED 1
#define CONFIG_TASK_ANTENNA_DEPLOYMENT_ENABLED 0
#define CONFIG_TASK_POSITION_DETERMINATION_ENABLED 1

/* Devices */
#define CONFIG_DEV_MEDIA_INT_ENABLED 1
Expand Down

0 comments on commit 40ab5a2

Please sign in to comment.