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
This commit is contained in:
parent
ea50cf6f5f
commit
733373a049
3 changed files with 5 additions and 5 deletions
|
|
@ -19,7 +19,7 @@ Below are the details of the class:
|
||||||
```cpp
|
```cpp
|
||||||
class OpenThreadCLI : public Stream {
|
class OpenThreadCLI : public Stream {
|
||||||
private:
|
private:
|
||||||
static size_t setBuffer(xQueueHandle &queue, size_t len);
|
static size_t setBuffer(QueueHandle_t &queue, size_t len);
|
||||||
bool otStarted = false;
|
bool otStarted = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@
|
||||||
|
|
||||||
static TaskHandle_t s_cli_task = NULL;
|
static TaskHandle_t s_cli_task = NULL;
|
||||||
static TaskHandle_t s_console_cli_task = NULL;
|
static TaskHandle_t s_console_cli_task = NULL;
|
||||||
static xQueueHandle rx_queue = NULL;
|
static QueueHandle_t rx_queue = NULL;
|
||||||
static xQueueHandle tx_queue = NULL;
|
static QueueHandle_t tx_queue = NULL;
|
||||||
|
|
||||||
static esp_openthread_platform_config_t ot_native_config;
|
static esp_openthread_platform_config_t ot_native_config;
|
||||||
static TaskHandle_t s_ot_task = NULL;
|
static TaskHandle_t s_ot_task = NULL;
|
||||||
|
|
@ -389,7 +389,7 @@ size_t OpenThreadCLI::write(uint8_t c) {
|
||||||
return 1;
|
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) {
|
if (queue) {
|
||||||
vQueueDelete(queue);
|
vQueueDelete(queue);
|
||||||
queue = NULL;
|
queue = NULL;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ typedef std::function<void(void)> OnReceiveCb_t;
|
||||||
|
|
||||||
class OpenThreadCLI : public Stream {
|
class OpenThreadCLI : public Stream {
|
||||||
private:
|
private:
|
||||||
static size_t setBuffer(xQueueHandle &queue, size_t len);
|
static size_t setBuffer(QueueHandle_t &queue, size_t len);
|
||||||
bool otStarted = false;
|
bool otStarted = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue