From 33a3fe9bbdf2a88b654f54d89630904b974e7d0f Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Wed, 15 Mar 2023 09:43:22 -0300 Subject: [PATCH] remove references to MIP in examples (comments) --- examples/arduino/w5500/w5500.ino | 2 +- examples/rp2040/pico-rmii/main.c | 4 +- examples/rp2040/pico-rndis-dashboard/main.c | 2 +- examples/stm32/nucleo-f429zi-freertos/main.c | 2 +- examples/stm32/nucleo-f746zg-freertos/main.c | 2 +- examples/ti/ek-tm4c1294xl-baremetal/README.md | 48 +------------------ examples/ti/ek-tm4c1294xl-freertos/main.c | 2 +- 7 files changed, 8 insertions(+), 54 deletions(-) diff --git a/examples/arduino/w5500/w5500.ino b/examples/arduino/w5500/w5500.ino index 2ede10b5..93959785 100644 --- a/examples/arduino/w5500/w5500.ino +++ b/examples/arduino/w5500/w5500.ino @@ -9,7 +9,7 @@ struct mg_tcpip_spi spi = { [](void *) { digitalWrite(SS_PIN, HIGH); }, // end transaction [](void *, uint8_t c) { return SPI.transfer(c); }, // execute transaction }; -struct mg_tcpip_if mif = {.mac = {2, 0, 1, 2, 3, 5}}; // MIP network interface +struct mg_tcpip_if mif = {.mac = {2, 0, 1, 2, 3, 5}}; // network interface void setup() { Serial.begin(115200); diff --git a/examples/rp2040/pico-rmii/main.c b/examples/rp2040/pico-rmii/main.c index 6ea96ea1..3c2ed5a3 100644 --- a/examples/rp2040/pico-rmii/main.c +++ b/examples/rp2040/pico-rmii/main.c @@ -24,10 +24,10 @@ int main(void) { stdio_init_all(); struct mg_mgr mgr; // Initialise Mongoose event manager - mg_mgr_init(&mgr); // and attach it to the MIP interface + mg_mgr_init(&mgr); // and attach it to the interface mg_log_set(MG_LL_DEBUG); // Set log level - MG_INFO(("Init MIP")); + MG_INFO(("Init TCP/IP")); // Initialise Mongoose network stack and specific driver // Set consecutive GPIOs for RMII (tx and rx) and SMI function groups struct mg_tcpip_driver_rp2040_rmii_data driver_data = { diff --git a/examples/rp2040/pico-rndis-dashboard/main.c b/examples/rp2040/pico-rndis-dashboard/main.c index 1ebd3292..03b1af26 100644 --- a/examples/rp2040/pico-rndis-dashboard/main.c +++ b/examples/rp2040/pico-rndis-dashboard/main.c @@ -53,7 +53,7 @@ int main(void) { stdio_init_all(); struct mg_mgr mgr; // Initialise Mongoose event manager - mg_mgr_init(&mgr); // and attach it to the MIP interface + mg_mgr_init(&mgr); // and attach it to the interface mg_timer_add(&mgr, 500, MG_TIMER_REPEAT, blink_cb, &mgr); struct mg_tcpip_driver driver = {.tx = usb_tx, .up = usb_up}; diff --git a/examples/stm32/nucleo-f429zi-freertos/main.c b/examples/stm32/nucleo-f429zi-freertos/main.c index 87fe7c7d..0660828d 100644 --- a/examples/stm32/nucleo-f429zi-freertos/main.c +++ b/examples/stm32/nucleo-f429zi-freertos/main.c @@ -45,7 +45,7 @@ static void ethernet_init(void) { static void server(void *args) { struct mg_mgr mgr; // Initialise Mongoose event manager - mg_mgr_init(&mgr); // and attach it to the MIP interface + mg_mgr_init(&mgr); // and attach it to the interface mg_log_set(MG_LL_DEBUG); // Set log level // Initialise Mongoose network stack diff --git a/examples/stm32/nucleo-f746zg-freertos/main.c b/examples/stm32/nucleo-f746zg-freertos/main.c index 87fe7c7d..0660828d 100644 --- a/examples/stm32/nucleo-f746zg-freertos/main.c +++ b/examples/stm32/nucleo-f746zg-freertos/main.c @@ -45,7 +45,7 @@ static void ethernet_init(void) { static void server(void *args) { struct mg_mgr mgr; // Initialise Mongoose event manager - mg_mgr_init(&mgr); // and attach it to the MIP interface + mg_mgr_init(&mgr); // and attach it to the interface mg_log_set(MG_LL_DEBUG); // Set log level // Initialise Mongoose network stack diff --git a/examples/ti/ek-tm4c1294xl-baremetal/README.md b/examples/ti/ek-tm4c1294xl-baremetal/README.md index 050971c0..be7e35e7 100644 --- a/examples/ti/ek-tm4c1294xl-baremetal/README.md +++ b/examples/ti/ek-tm4c1294xl-baremetal/README.md @@ -1,47 +1 @@ -# Baremetal webserver on EK-TM4C1294XL - -This firmware uses experimental TCP/IP stack of the Mongoose Network Library, -which implements the following: - -- A complete [HTTP device dashboard](../../device-dashboard) with: - - User authentication - - Real-time device data graph - - Coninfiguration display and update - - MQTT communication with a remote MQTT server -- No dependencies: no HAL, no CMSIS, no RTOS -- Hand-written [mcu.h](mcu.h) header based on the [datasheet](https://www.ti.com/lit/pdf/spms433) -- Interrupt-driven Ethernet driver -- LED blinky, based on SysTick interrupt -- User button handler, turns off/on an LED, based on GPIO IRQs (interrupt-driven) -- HardFault handler alternate blinks LEDs -- Debug log on UART0 (ICDI) - -## Requirements - -- [GNU make](http://mongoose.ws/tutorials/tools/#gnu-make) -- [ARM GCC](http://mongoose.ws/tutorials/tools/#arm-gcc) -- [Uniflash](https://mongoose.ws/tutorials/ti/ek-tm4c1294xl-baremetal/#build-and-run) for flashing - -The links above will send you to tutorials on how to install each of those tools in your workstation for Linux, Mac, and Windows. - - -## Usage - -Plugin your board into USB, and attach an Ethernet cable. -To build: - -```sh -$ make clean build -``` - -To flash: use Uniflash - -To see debug log, use any serial monitor program like `picocom` at 115200 bps and configure it to insert carriage returns after line feeds: - -```sh -$ picocom /dev/ttyACM0 -i -b 115200 --imap=lfcrlf -``` - -There is also a [detailed tutorial on this example](https://mongoose.ws/tutorials/ti/ek-tm4c1294xl-baremetal/) - -For more details and benchmark data on MIP, check the [F746ZG example](../../stm32/nucleo-f746zg-baremetal/) +See detailed tutorial at https://mongoose.ws/tutorials/ti/ek-tm4c1294xl-baremetal/ diff --git a/examples/ti/ek-tm4c1294xl-freertos/main.c b/examples/ti/ek-tm4c1294xl-freertos/main.c index 9b8db8fb..48cb1012 100644 --- a/examples/ti/ek-tm4c1294xl-freertos/main.c +++ b/examples/ti/ek-tm4c1294xl-freertos/main.c @@ -48,7 +48,7 @@ static void ethernet_init(void) { static void server(void *args) { struct mg_mgr mgr; // Initialise Mongoose event manager - mg_mgr_init(&mgr); // and attach it to the MIP interface + mg_mgr_init(&mgr); // and attach it to the interface mg_log_set(MG_LL_DEBUG); // Set log level // Initialise Mongoose network stack