Landzo_K60Z_LwIP/src/main.c

37 lines
708 B
C

#include "FreeRTOS.h"
#include "board.h"
#include "clock_config.h"
#include "fsl_debug_console.h"
#include "peripherals.h"
#include "pin_mux.h"
#include "system_utilities.h"
#include "task.h"
static void vTaskHello(void *pvParameters);
int main(void) {
BOARD_InitBootPins();
BOARD_BootClockRUN();
BOARD_InitBootPeripherals();
BOARD_InitDebugConsole();
print_hardware();
sram_test();
xTaskCreate(vTaskHello, "HELLO", 256, NULL, 4, NULL);
vTaskStartScheduler();
for (;;) {
__WFI();
}
}
static void vTaskHello(void *pvParameters) {
for(;;) {
vTaskDelay(pdMS_TO_TICKS(1000));
PRINTF("Hello world @%d\r\n", xTaskGetTickCount());
}
}