You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
439 B
C
20 lines
439 B
C
#include <stdio.h>
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
|
|
|
|
void app_main(void)
|
|
{
|
|
int i = 0;
|
|
while (1) {
|
|
printf("[%d] Hello world!\n", i);
|
|
i++;
|
|
//vTaskDelay(5000 / portTICK_PERIOD_MS); // print helloworld every 5 seconds.
|
|
if((i % 10) == 0){
|
|
//TODO: blink led.
|
|
}
|
|
|
|
vTaskDelay(portTICK_PERIOD_MS); // print helloworld as fast as possible.
|
|
}
|
|
}
|