mirror of
https://github.com/johncobb/avr_328p_freertos.git
synced 2025-07-08 08:01:04 +03:00
27 lines
394 B
C
27 lines
394 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);
|
|
}
|
|
}
|
|
|