From 4bdec5c1c17612b88c3fe56e822651bd1aeb99f6 Mon Sep 17 00:00:00 2001
From: Dmitry Frank <mail@dmitryfrank.com>
Date: Fri, 30 Dec 2016 21:12:41 +0000
Subject: [PATCH] Rename mongoose-iot to mongoose-os

URLs like mongoose-iot.com are left intact

PUBLISHED_FROM=b8502b163c26a2cb54598db57ba094333fe7cf54
---
 examples/CC3200/cc3200_example.ld          | 2 +-
 examples/CC3200/ccs/MG_hello/main.c        | 4 ++--
 examples/CC3200/main.c                     | 4 ++--
 examples/ESP8266_RTOS/user/esp_libc.c      | 2 +-
 examples/ESP8266_RTOS/user/user_main.c     | 4 ++--
 examples/MSP432/ccs/MSP432_MG_hello/main.c | 4 ++--
 6 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/examples/CC3200/cc3200_example.ld b/examples/CC3200/cc3200_example.ld
index aae516e8b..2a8ceb855 100644
--- a/examples/CC3200/cc3200_example.ld
+++ b/examples/CC3200/cc3200_example.ld
@@ -1,7 +1,7 @@
 /*****************************************************************************
 * app.ld
 *
-* GCC Linker script for Mongoose IoT. Based on TI's example "blinky.ld".
+* GCC Linker script for Mongoose OS. Based on TI's example "blinky.ld".
 *
 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ 
 * 
diff --git a/examples/CC3200/ccs/MG_hello/main.c b/examples/CC3200/ccs/MG_hello/main.c
index 081252284..49ba81acb 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 MIOT_TASK_PRIORITY 3
+#define MGOS_TASK_PRIORITY 3
 #define MG_TASK_STACK_SIZE 8192
 
 #include <stdbool.h>
@@ -214,7 +214,7 @@ int main(void) {
     LOG(LL_ERROR, ("Failed to create SL task"));
   }
 
-  if (!mg_start_task(MIOT_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) {
+  if (!mg_start_task(MGOS_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 c10a1cb8c..24eea055e 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 MIOT_TASK_PRIORITY 3
+#define MGOS_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(MIOT_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) {
+  if (!mg_start_task(MGOS_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) {
     LOG(LL_ERROR, ("Failed to create MG task"));
   }
 
diff --git a/examples/ESP8266_RTOS/user/esp_libc.c b/examples/ESP8266_RTOS/user/esp_libc.c
index 7d5a989de..f49e5b28b 100644
--- a/examples/ESP8266_RTOS/user/esp_libc.c
+++ b/examples/ESP8266_RTOS/user/esp_libc.c
@@ -29,7 +29,7 @@ _ssize_t _write_r(struct _reent *r, int fd, void *buf, size_t len) {
 
 /*
  * You'll need to implement _open_r and friends if you want file operations. See
- * https://github.com/cesanta/mongoose-iot/blob/master/fw/platforms/esp8266/user/esp_fs.c
+ * https://github.com/cesanta/mongoose-os/blob/master/fw/platforms/esp8266/user/esp_fs.c
  * for SPIFFS-based implementation.
  */
 
diff --git a/examples/ESP8266_RTOS/user/user_main.c b/examples/ESP8266_RTOS/user/user_main.c
index 7f083deed..c8abb1041 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 MIOT_TASK_PRIORITY 1
+#define MGOS_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, MIOT_TASK_PRIORITY, &s_mg_task_handle);
+              NULL, MGOS_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 c7d03ec70..42a7ab204 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 MIOT_TASK_PRIORITY 3
+#define MGOS_TASK_PRIORITY 3
 #define MG_TASK_STACK_SIZE 8192
 
 #include <stdbool.h>
@@ -163,7 +163,7 @@ int main(void) {
   cs_log_set_level(LL_INFO);
   cs_log_set_file(stdout);
 
-  if (!mg_start_task(MIOT_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) {
+  if (!mg_start_task(MGOS_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) {
     LOG(LL_ERROR, ("Error starting Mongoose task"));
     return 1;
   }
-- 
GitLab