-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firmware: app: tasks: Enabling the heater controller task #142
- Loading branch information
1 parent
7e2f7b7
commit 47594fd
Showing
2 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
* | ||
* \author Gabriel Mariano Marcelino <[email protected]> | ||
* | ||
* \version 0.2.10 | ||
* \version 0.2.12 | ||
* | ||
* \date 2021/04/09 | ||
* | ||
|
@@ -46,6 +46,7 @@ | |
#include "read_sensors.h" | ||
#include "param_server.h" | ||
#include "mppt_algorithm.h" | ||
#include "heater_controller.h" | ||
|
||
void create_tasks() | ||
{ | ||
|
@@ -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(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
* | ||
|
@@ -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 | ||
|
||
|