void Main_Task(){ left_goal = 500; right_goal = 500; for(;;){ BRD_LEDToggle(); vTaskDelay(1000); } }
/** * @brief Task 3. * @param None * @retval None */ void Task3_Task( void ) { S4295255_LA_CHAN2_CLR(); //Clear LA Channel 2 for (;;) { S4295255_LA_CHAN2_SET(); //Set LA Channel 2 BRD_LEDToggle(); //Random instruction //vTaskDelay(3); //Extra Delay for 3ms S4295255_LA_CHAN2_CLR(); //Clear LA Channel 2 taskYIELD(); } }
/** * @brief Task 2. * @param None * @retval None */ void Task2_Task( void ) { S4295255_LA_CHAN1_CLR(); //Clear LA Channel 1 for (;;) { S4295255_LA_CHAN1_SET(); //Set LA Channel 1 BRD_LEDToggle(); //Random instruction vTaskDelay(3); //Extra Delay for 3ms S4295255_LA_CHAN1_CLR(); //Clear LA Channel 1 vTaskDelay(1); //Mandatory delay } }
/** * @brief Idle Application Task * @param None * @retval None */ void vApplicationIdleHook( void ) { static portTickType xLastTx = 0; BRD_LEDOff(); for (;;) { /* The idle hook simply prints the idle tick count, every second */ if ((xTaskGetTickCount() - xLastTx ) > (1000 / portTICK_RATE_MS)) { xLastTx = xTaskGetTickCount(); //debug_printf("IDLE Tick %d\n", xLastTx); /* Blink Alive LED */ BRD_LEDToggle(); } } }