WIP version, can't return from task

This commit is contained in:
Dominik Kotarski
2019-03-18 08:27:22 +01:00
parent 33a15acb3c
commit ece01eb88f
7 changed files with 15032 additions and 117 deletions
+9
View File
@@ -57,6 +57,12 @@ TaskHandle_t LDRTask;
*/
TaskHandle_t JoystickExampleTask;
/**
* @brief rgbLedExampleTask
*
*/
TaskHandle_t rgbLedExampleTask;
/**
* @brief Handle of a task taking care of reading ioexpander over i2c in
* order to dertermine a source of the interrupt
@@ -165,6 +171,9 @@ int main(void)
xTaskCreate(relayFunction, "RELAYS", 256, NULL, 1, &relayTask);
xTaskCreate(joystickTaskFunction, "JoystickTask", 256, NULL, 2,
&JoystickExampleTask);
xTaskCreate(rgbLedTaskFunction, "rgbTask", 256, NULL, 1, &rgbLedExampleTask);
// Activate deep sleep mode.
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;