Skip to content

Commit

Permalink
Update FreeRTOS Symbols in OThreadCLI (#10412)
Browse files Browse the repository at this point in the history
* Update OThreadCLI.cpp

* feat(openthread): change FreeRTOS names and types

* feat(openthread): change FreeRTOS names and types

QueueHandle_t instead of xQueueHandle
  • Loading branch information
SuGlider authored Oct 3, 2024
1 parent ea50cf6 commit 733373a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libraries/OpenThread/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Below are the details of the class:
```cpp
class OpenThreadCLI : public Stream {
private:
static size_t setBuffer(xQueueHandle &queue, size_t len);
static size_t setBuffer(QueueHandle_t &queue, size_t len);
bool otStarted = false;

public:
Expand Down
6 changes: 3 additions & 3 deletions libraries/OpenThread/src/OThreadCLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

static TaskHandle_t s_cli_task = NULL;
static TaskHandle_t s_console_cli_task = NULL;
static xQueueHandle rx_queue = NULL;
static xQueueHandle tx_queue = NULL;
static QueueHandle_t rx_queue = NULL;
static QueueHandle_t tx_queue = NULL;

static esp_openthread_platform_config_t ot_native_config;
static TaskHandle_t s_ot_task = NULL;
Expand Down Expand Up @@ -389,7 +389,7 @@ size_t OpenThreadCLI::write(uint8_t c) {
return 1;
}

size_t OpenThreadCLI::setBuffer(xQueueHandle &queue, size_t queue_len) {
size_t OpenThreadCLI::setBuffer(QueueHandle_t &queue, size_t queue_len) {
if (queue) {
vQueueDelete(queue);
queue = NULL;
Expand Down
2 changes: 1 addition & 1 deletion libraries/OpenThread/src/OThreadCLI.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ typedef std::function<void(void)> OnReceiveCb_t;

class OpenThreadCLI : public Stream {
private:
static size_t setBuffer(xQueueHandle &queue, size_t len);
static size_t setBuffer(QueueHandle_t &queue, size_t len);
bool otStarted = false;

public:
Expand Down

0 comments on commit 733373a

Please sign in to comment.