mirror of
https://github.com/johncobb/avr_328p_freertos.git
synced 2025-07-08 08:01:04 +03:00
initial commit
This commit is contained in:
23
main.c
Normal file
23
main.c
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* main.c
|
||||
*
|
||||
* Created on: Feb 4, 2015
|
||||
* Author: jcobb
|
||||
*/
|
||||
#include <avr/io.h>
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "tasks.h" // local tasks defined for os
|
||||
|
||||
#define mainLED_TASK_PRIORITY (tskIDLE_PRIORITY)
|
||||
|
||||
|
||||
portSHORT main(void)
|
||||
{
|
||||
xTaskCreate(vLEDFlashTask, (int8_t*) "LED", configMINIMAL_STACK_SIZE, NULL, mainLED_TASK_PRIORITY, NULL);
|
||||
vTaskStartScheduler();
|
||||
|
||||
while(1){}
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user