WIP version, can't return from task
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user