mirror of
https://github.com/johncobb/avr_328p_freertos.git
synced 2025-07-08 08:01:04 +03:00
cleanup
This commit is contained in:
26
apptasks.c
Normal file
26
apptasks.c
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user