16 lines
423 B
C
16 lines
423 B
C
#include "freertos/idf_additions.h"
|
|
#include "freertos/projdefs.h"
|
|
#include "tasks.h"
|
|
#include <stdio.h>
|
|
|
|
extern QueueHandle_t blink_rate_q;
|
|
|
|
void app_main(void) {
|
|
TaskHandle_t task_handle_blink;
|
|
blink_rate_q = xQueueCreate(10, sizeof(BlinkRate_t));
|
|
|
|
xTaskCreate(task_blink, "task_blink", 1024, NULL, 0, &task_handle_blink);
|
|
|
|
BlinkRate_t br = {1000};
|
|
xQueueSend(blink_rate_q, &br, pdMS_TO_TICKS(20));
|
|
}
|