From 0ceee1dc05fa06d18938c39d2da96a920592be15 Mon Sep 17 00:00:00 2001 From: Dmitry Frank Date: Tue, 15 Nov 2016 14:18:27 +0000 Subject: [PATCH] Rename `mg_` -> `miot_` under fw `MG_ENABLE_...` macros are not yet renamed because it involves some logic change: e.g. instead of defining `MG_ENABLE_MQTT`, one should define `MIOT_ENABLE_MQTT`, which should imply `MG_ENABLE_MQTT` as well. Macro refactoring is going to be done in another PR. PUBLISHED_FROM=f8b66d5772846126b94223a729a6bd87897f8de6 --- examples/CC3200/ccs/MG_hello/main.c | 4 ++-- examples/CC3200/main.c | 4 ++-- examples/ESP8266_RTOS/user/user_main.c | 4 ++-- examples/MSP432/ccs/MSP432_MG_hello/main.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/CC3200/ccs/MG_hello/main.c b/examples/CC3200/ccs/MG_hello/main.c index 999cbd0e..08125228 100644 --- a/examples/CC3200/ccs/MG_hello/main.c +++ b/examples/CC3200/ccs/MG_hello/main.c @@ -10,7 +10,7 @@ // #define WIFI_STA_SSID "YourWiFi" // #define WIFI_STA_PASS "YourPass" -#define MG_TASK_PRIORITY 3 +#define MIOT_TASK_PRIORITY 3 #define MG_TASK_STACK_SIZE 8192 #include @@ -214,7 +214,7 @@ int main(void) { LOG(LL_ERROR, ("Failed to create SL task")); } - if (!mg_start_task(MG_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) { + if (!mg_start_task(MIOT_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) { LOG(LL_ERROR, ("Failed to create MG task")); } diff --git a/examples/CC3200/main.c b/examples/CC3200/main.c index 21ea4d1f..c10a1cb8 100644 --- a/examples/CC3200/main.c +++ b/examples/CC3200/main.c @@ -44,7 +44,7 @@ #define CONSOLE_BAUD_RATE 115200 #define CONSOLE_UART UARTA0_BASE #define CONSOLE_UART_PERIPH PRCM_UARTA0 -#define MG_TASK_PRIORITY 3 +#define MIOT_TASK_PRIORITY 3 #define MG_TASK_STACK_SIZE 8192 #define BM222_ADDR 0x18 @@ -264,7 +264,7 @@ int main(void) { LOG(LL_ERROR, ("Failed to create SL task")); } - if (!mg_start_task(MG_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) { + if (!mg_start_task(MIOT_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) { LOG(LL_ERROR, ("Failed to create MG task")); } diff --git a/examples/ESP8266_RTOS/user/user_main.c b/examples/ESP8266_RTOS/user/user_main.c index f54858c2..7f083dee 100644 --- a/examples/ESP8266_RTOS/user/user_main.c +++ b/examples/ESP8266_RTOS/user/user_main.c @@ -13,7 +13,7 @@ #define MG_LISTEN_ADDR "80" #define MG_TASK_STACK_SIZE 4096 -#define MG_TASK_PRIORITY 1 +#define MIOT_TASK_PRIORITY 1 void uart_div_modify(int uart_no, unsigned int freq); @@ -105,5 +105,5 @@ void user_init(void) { uart_div_modify(0, UART_CLK_FREQ / 115200); xTaskCreate(mg_task, (const signed char *) "mongoose", MG_TASK_STACK_SIZE, - NULL, MG_TASK_PRIORITY, &s_mg_task_handle); + NULL, MIOT_TASK_PRIORITY, &s_mg_task_handle); } diff --git a/examples/MSP432/ccs/MSP432_MG_hello/main.c b/examples/MSP432/ccs/MSP432_MG_hello/main.c index 01359a62..c7d03ec7 100644 --- a/examples/MSP432/ccs/MSP432_MG_hello/main.c +++ b/examples/MSP432/ccs/MSP432_MG_hello/main.c @@ -10,7 +10,7 @@ // #define WIFI_STA_SSID "YourWiFi" // #define WIFI_STA_PASS "YourPass" -#define MG_TASK_PRIORITY 3 +#define MIOT_TASK_PRIORITY 3 #define MG_TASK_STACK_SIZE 8192 #include @@ -163,7 +163,7 @@ int main(void) { cs_log_set_level(LL_INFO); cs_log_set_file(stdout); - if (!mg_start_task(MG_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) { + if (!mg_start_task(MIOT_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) { LOG(LL_ERROR, ("Error starting Mongoose task")); return 1; }