Skip to content

Commit 733373a

Browse files
authored
Update FreeRTOS Symbols in OThreadCLI (#10412)
* Update OThreadCLI.cpp * feat(openthread): change FreeRTOS names and types * feat(openthread): change FreeRTOS names and types QueueHandle_t instead of xQueueHandle
1 parent ea50cf6 commit 733373a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

libraries/OpenThread/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Below are the details of the class:
1919
```cpp
2020
class OpenThreadCLI : public Stream {
2121
private:
22-
static size_t setBuffer(xQueueHandle &queue, size_t len);
22+
static size_t setBuffer(QueueHandle_t &queue, size_t len);
2323
bool otStarted = false;
2424

2525
public:

libraries/OpenThread/src/OThreadCLI.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
static TaskHandle_t s_cli_task = NULL;
2323
static TaskHandle_t s_console_cli_task = NULL;
24-
static xQueueHandle rx_queue = NULL;
25-
static xQueueHandle tx_queue = NULL;
24+
static QueueHandle_t rx_queue = NULL;
25+
static QueueHandle_t tx_queue = NULL;
2626

2727
static esp_openthread_platform_config_t ot_native_config;
2828
static TaskHandle_t s_ot_task = NULL;
@@ -389,7 +389,7 @@ size_t OpenThreadCLI::write(uint8_t c) {
389389
return 1;
390390
}
391391

392-
size_t OpenThreadCLI::setBuffer(xQueueHandle &queue, size_t queue_len) {
392+
size_t OpenThreadCLI::setBuffer(QueueHandle_t &queue, size_t queue_len) {
393393
if (queue) {
394394
vQueueDelete(queue);
395395
queue = NULL;

libraries/OpenThread/src/OThreadCLI.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ typedef std::function<void(void)> OnReceiveCb_t;
2222

2323
class OpenThreadCLI : public Stream {
2424
private:
25-
static size_t setBuffer(xQueueHandle &queue, size_t len);
25+
static size_t setBuffer(QueueHandle_t &queue, size_t len);
2626
bool otStarted = false;
2727

2828
public:

0 commit comments

Comments
 (0)