Skip to content

Commit

Permalink
firmware: app: tasks: Enabling the heater controller task #142
Browse files Browse the repository at this point in the history
  • Loading branch information
andrempmattos committed Aug 4, 2021
1 parent 7e2f7b7 commit 47594fd
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.2.10
* \version 0.2.12
*
* \date 2021/04/09
*
Expand All @@ -46,6 +46,7 @@
#include "read_sensors.h"
#include "param_server.h"
#include "mppt_algorithm.h"
#include "heater_controller.h"

void create_tasks()
{
Expand Down Expand Up @@ -116,6 +117,15 @@ void create_tasks()
}
#endif /* CONFIG_TASK_MPPT_ALGORITHM_ENABLED */

#if CONFIG_TASK_HEATER_CONTROLLER_ENABLED == 1
xTaskCreate(vTaskHeaterController, TASK_HEATER_CONTROLLER_NAME, TASK_HEATER_CONTROLLER_STACK_SIZE, NULL, TASK_HEATER_CONTROLLER_PRIORITY, &xTaskHeaterControllerHandle);

if (xTaskMPPTAlgorithmHandle == NULL)
{
/* Error creating the parameter server task */
}
#endif /* CONFIG_TASK_HEATER_CONTROLLER_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 @@ -26,7 +26,7 @@
* \author Gabriel Mariano Marcelino <[email protected]>
* \author Augusto Cezar Boldori Vassoler <[email protected]>
*
* \version 0.2.10
* \version 0.2.12
*
* \date 2021/01/25
*
Expand All @@ -45,6 +45,7 @@
#define CONFIG_TASK_READ_SENSORS_ENABLED 1
#define CONFIG_TASK_PARAM_SERVER_ENABLED 1
#define CONFIG_TASK_MPPT_ALGORITHM_ENABLED 1
#define CONFIG_TASK_HEATER_CONTROL_ENABLED 1

#define CONFIG_DRIVERS_DEBUG_ENABLED 0

Expand Down

0 comments on commit 47594fd

Please sign in to comment.