Finally got FreeRTOS working thank FUCK!
This commit is contained in:
@@ -6,20 +6,12 @@ add_executable(${APP_NAME}
|
||||
./main.c
|
||||
)
|
||||
|
||||
target_include_directories(Blinky
|
||||
PUBLIC ${FREERTOS_ROOT}/include/
|
||||
)
|
||||
|
||||
target_link_libraries(Blinky LINK_PUBLIC
|
||||
pico_stdlib
|
||||
FreeRTOS-Kernel
|
||||
FreeRTOS-Kernel-Heap4
|
||||
)
|
||||
|
||||
get_test_property(FUCKASS Blinky INCLUDE_DIRECTORIES)
|
||||
|
||||
message(STATUS "Includes are ${FUCKASS}")
|
||||
|
||||
pico_enable_stdio_usb(${APP_NAME} 1)
|
||||
pico_enable_stdio_uart(${APP_NAME} 0)
|
||||
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
#include <pico/stdlib.h>
|
||||
#include <FreeRTOS.h>
|
||||
#include "FreeRTOS.h"
|
||||
#include <task.h>
|
||||
|
||||
void vBlinkTask() {
|
||||
void vBlinkTask(void* x) {
|
||||
for (;;) {
|
||||
gpio_put(PICO_DEFAULT_LED_PIN, 1);
|
||||
vTaskDelay(250);
|
||||
vTaskDelay(500);
|
||||
gpio_put(PICO_DEFAULT_LED_PIN, 0);
|
||||
vTaskDelay(250);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user