Test
This commit is contained in:
commit
384d247182
@ -5,15 +5,15 @@
|
|||||||
// #include "freertos/task.h"
|
// #include "freertos/task.h"
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
|
|
||||||
// static bool example_rmt_rx_done_callback(rmt_channel_handle_t channel, const rmt_rx_done_event_data_t *edata, void *user_data)
|
static bool example_rmt_rx_done_callback(rmt_channel_handle_t channel, const rmt_rx_done_event_data_t *edata, void *user_data)
|
||||||
// {
|
{
|
||||||
// // BaseType_t high_task_wakeup = pdFALSE;
|
// // BaseType_t high_task_wakeup = pdFALSE;
|
||||||
// // QueueHandle_t receive_queue = (QueueHandle_t)user_data;
|
// // QueueHandle_t receive_queue = (QueueHandle_t)user_data;
|
||||||
// // // send the received RMT symbols to the parser task
|
// // // send the received RMT symbols to the parser task
|
||||||
// // xQueueSendFromISR(receive_queue, edata, &high_task_wakeup);
|
// // xQueueSendFromISR(receive_queue, edata, &high_task_wakeup);
|
||||||
// // // return whether any task is woken up
|
// // // return whether any task is woken up
|
||||||
// // return high_task_wakeup == pdTRUE;
|
// // return high_task_wakeup == pdTRUE;
|
||||||
// }
|
}
|
||||||
|
|
||||||
void app_main(void)
|
void app_main(void)
|
||||||
{
|
{
|
||||||
@ -27,7 +27,7 @@ void app_main(void)
|
|||||||
gpio_set_direction(5, GPIO_MODE_OUTPUT);
|
gpio_set_direction(5, GPIO_MODE_OUTPUT);
|
||||||
gpio_set_level(5, 0);
|
gpio_set_level(5, 0);
|
||||||
vTaskDelay(10 / portTICK_PERIOD_MS);
|
vTaskDelay(10 / portTICK_PERIOD_MS);
|
||||||
// gpio_set_level(5, 1);
|
gpio_set_level(5, 1);
|
||||||
gpio_set_direction(5, GPIO_MODE_INPUT);
|
gpio_set_direction(5, GPIO_MODE_INPUT);
|
||||||
|
|
||||||
rmt_channel_handle_t rx_channel = NULL;
|
rmt_channel_handle_t rx_channel = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user