Files
avr_328p_freertos/tasks.c
2015-02-04 15:02:53 -06:00

29 lines
396 B
C

/*
* tasks.c
*
* Created on: Feb 4, 2015
* Author: jcobb
*/
#include "FreeRTOS.h"
#include "task.h"
#include "tasks.h"
#include "Drivers/led.h"
void vLEDFlashTask(void *pvParms)
{
vLEDInit();
portTickType xLastWakeTime;
const portTickType xFrequency = 1000;
xLastWakeTime = xTaskGetTickCount();
for(;;) {
vLEDToggle();
vTaskDelayUntil(&xLastWakeTime, xFrequency);
}
}