Search found 8 matches
- Wed Jun 03, 2020 6:45 pm
- Forum: ESP-IDF
- Topic: why can't use GPIO 2 pin for RMT RX ?
- Replies: 1
- Views: 2560
why can't use GPIO 2 pin for RMT RX ?
void IR_RMT_RX_INIT() { rmt_config_t rmt_rx; rmt_rx.channel = IR_RMT_RX_CH; rmt_rx.gpio_num =IR_RMT_RX_GPIO ; rmt_rx.clk_div = IR_RMT_CLK_DIV; rmt_rx.mem_block_num = 1; rmt_rx.rmt_mode = RMT_MODE_RX; rmt_rx.rx_config.filter_en = true; rmt_rx.rx_config.filter_ticks_thresh = 255U; rmt_rx.rx_config.id...
- Mon Sep 09, 2019 5:51 pm
- Forum: ESP-IDF
- Topic: while loop in app_main, outside freeRTOS task scope
- Replies: 3
- Views: 5224
Re: while loop in app_main, outside freeRTOS task scope
aha where can i read about is ? I want to know how it's being called and what are the parameters
- Sun Sep 08, 2019 8:55 pm
- Forum: ESP-IDF
- Topic: while loop in app_main, outside freeRTOS task scope
- Replies: 3
- Views: 5224
while loop in app_main, outside freeRTOS task scope
Hi, I wonder how a non freeRTOS tasks could affect a freeRTOS tasks. Eg : in app_main() i could write smtg like xTaskCreate(test_task, "someTasks", 4096, NULL, 5, NULL); while(1) { printf("hello"); } technically printf should block test_task from running at all ? or how what will happen ? btw my exp...
- Sun May 12, 2019 12:15 pm
- Forum: ESP-ADF
- Topic: explain the mem_assert macro to me
- Replies: 3
- Views: 5588
Re: explain the mem_assert macro to me
where's the statement if it's to throw some exception?
- Fri May 10, 2019 12:13 pm
- Forum: ESP-IDF
- Topic: need help on understanding RMT example
- Replies: 1
- Views: 2929
need help on understanding RMT example
Code: Select all
rmt_item32_t* item = (rmt_item32_t*) xRingbufferReceive(rb, &rx_size, 1000);
int res = nec_parse_items(item + offset, rx_size / 4 - offset, &rmt_addr, &rmt_cmd);
- Fri May 10, 2019 12:09 pm
- Forum: ESP-IDF
- Topic: How tcp/ip stack handled ping request
- Replies: 1
- Views: 3145
How tcp/ip stack handled ping request
Hi all, I am curious how that it can handle ping request ? say for example look at this code https://github.com/espressif/esp-idf/blob/master/examples/protocols/sockets/tcp_client/main/tcp_client.c Where , in the tcp_client_task looks like the task only handles recv() and send() yet still we can do ...
- Tue May 07, 2019 4:40 pm
- Forum: ESP-ADF
- Topic: explain the mem_assert macro to me
- Replies: 3
- Views: 5588
explain the mem_assert macro to me
I am tinkering around esp-adf and found this snippet of code ESP_LOGI(TAG, "[3.0] Create audio pipeline for playback"); audio_pipeline_cfg_t pipeline_cfg = DEFAULT_AUDIO_PIPELINE_CONFIG(); pipeline = audio_pipeline_init(&pipeline_cfg); mem_assert(pipeline); what is the mem_assert(piperline) line doe...
- Mon Apr 22, 2019 6:48 pm
- Forum: ESP-IDF
- Topic: need help on understanding RMT item
- Replies: 1
- Views: 2984
need help on understanding RMT item
typedef struct rmt_item32_s { union { struct { uint32_t duration0 :15; uint32_t level0 :1; uint32_t duration1 :15; uint32_t level1 :1; }; uint32_t val; }; } rmt_item32_t; I want to understand why the structure was packed over union ? and how is the packing happening ? based on the datasheet I under...