summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Causer <mcauser@gmail.com>2017-12-03 22:42:50 +1100
committerDamien George <damien.p.george@gmail.com>2019-02-12 15:18:33 +1100
commit812969d615e130bef7e525553dbb7b01c27191ea (patch)
tree36ce525c5dacb1e3d2e5b8e1120be2817439384e
parentd976e4f5e805ae7678dac9553846b738f80ba79e (diff)
all: Change PYB message prefix to MPY.
Replaces "PYB: soft reboot" with "MPY: soft reboot", etc. Having a consistent prefix across ports reduces the difference between ports, which is a general goal. And this change won't break pyboard.py because that tool only looks for "soft reboot".
-rw-r--r--docs/pyboard/tutorial/repl.rst4
-rw-r--r--docs/reference/repl.rst4
-rw-r--r--docs/wipy/tutorial/repl.rst2
-rw-r--r--lib/utils/pyexec.c2
-rw-r--r--ports/cc3200/mptask.c2
-rw-r--r--ports/esp32/main.c2
-rw-r--r--ports/esp8266/main.c2
-rw-r--r--ports/pic16bit/main.c2
-rw-r--r--ports/stm32/main.c10
-rw-r--r--ports/teensy/main.c2
10 files changed, 16 insertions, 16 deletions
diff --git a/docs/pyboard/tutorial/repl.rst b/docs/pyboard/tutorial/repl.rst
index 646ecbc23..3853b1578 100644
--- a/docs/pyboard/tutorial/repl.rst
+++ b/docs/pyboard/tutorial/repl.rst
@@ -96,8 +96,8 @@ If something goes wrong, you can reset the board in two ways. The first is to pr
at the MicroPython prompt, which performs a soft reset. You will see a message something like ::
>>>
- PYB: sync filesystems
- PYB: soft reboot
+ MPY: sync filesystems
+ MPY: soft reboot
Micro Python v1.0 on 2014-05-03; PYBv1.0 with STM32F405RG
Type "help()" for more information.
>>>
diff --git a/docs/reference/repl.rst b/docs/reference/repl.rst
index 1eccb9a88..0c6f04b7c 100644
--- a/docs/reference/repl.rst
+++ b/docs/reference/repl.rst
@@ -174,8 +174,8 @@ variables no longer exist:
.. code-block:: python
- PYB: sync filesystems
- PYB: soft reboot
+ MPY: sync filesystems
+ MPY: soft reboot
MicroPython v1.5-51-g6f70283-dirty on 2015-10-30; PYBv1.0 with STM32F405RG
Type "help()" for more information.
>>> dir()
diff --git a/docs/wipy/tutorial/repl.rst b/docs/wipy/tutorial/repl.rst
index e25e0472c..8c60e2c1d 100644
--- a/docs/wipy/tutorial/repl.rst
+++ b/docs/wipy/tutorial/repl.rst
@@ -120,7 +120,7 @@ If something goes wrong, you can reset the board in two ways. The first is to pr
at the MicroPython prompt, which performs a soft reset. You will see a message something like::
>>>
- PYB: soft reboot
+ MPY: soft reboot
MicroPython v1.4.6-146-g1d8b5e5 on 2015-10-21; WiPy with CC3200
Type "help()" for more information.
>>>
diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c
index b7174c9a1..f4e6856e5 100644
--- a/lib/utils/pyexec.c
+++ b/lib/utils/pyexec.c
@@ -450,7 +450,7 @@ friendly_repl_reset:
// do the user a favor and reenable interrupts.
if (query_irq() == IRQ_STATE_DISABLED) {
enable_irq(IRQ_STATE_ENABLED);
- mp_hal_stdout_tx_str("PYB: enabling IRQs\r\n");
+ mp_hal_stdout_tx_str("MPY: enabling IRQs\r\n");
}
}
#endif
diff --git a/ports/cc3200/mptask.c b/ports/cc3200/mptask.c
index 9b6169342..939097847 100644
--- a/ports/cc3200/mptask.c
+++ b/ports/cc3200/mptask.c
@@ -234,7 +234,7 @@ soft_reset_exit:
// soft reset
pyb_sleep_signal_soft_reset();
- mp_printf(&mp_plat_print, "PYB: soft reboot\n");
+ mp_printf(&mp_plat_print, "MPY: soft reboot\n");
// disable all callbacks to avoid undefined behaviour
// when coming out of a soft reset
diff --git a/ports/esp32/main.c b/ports/esp32/main.c
index a304dcbcc..188fb5e70 100644
--- a/ports/esp32/main.c
+++ b/ports/esp32/main.c
@@ -138,7 +138,7 @@ soft_reset:
gc_sweep_all();
- mp_hal_stdout_tx_str("PYB: soft reboot\r\n");
+ mp_hal_stdout_tx_str("MPY: soft reboot\r\n");
// deinitialise peripherals
machine_pins_deinit();
diff --git a/ports/esp8266/main.c b/ports/esp8266/main.c
index 923e4530f..67157ce18 100644
--- a/ports/esp8266/main.c
+++ b/ports/esp8266/main.c
@@ -86,7 +86,7 @@ STATIC void mp_reset(void) {
void soft_reset(void) {
gc_sweep_all();
- mp_hal_stdout_tx_str("PYB: soft reboot\r\n");
+ mp_hal_stdout_tx_str("MPY: soft reboot\r\n");
mp_hal_delay_us(10000); // allow UART to flush output
mp_reset();
#if MICROPY_REPL_EVENT_DRIVEN
diff --git a/ports/pic16bit/main.c b/ports/pic16bit/main.c
index 47ba00f48..c96ac54ea 100644
--- a/ports/pic16bit/main.c
+++ b/ports/pic16bit/main.c
@@ -87,7 +87,7 @@ soft_reset:
}
}
- printf("PYB: soft reboot\n");
+ printf("MPY: soft reboot\n");
mp_deinit();
goto soft_reset;
}
diff --git a/ports/stm32/main.c b/ports/stm32/main.c
index 3028f907b..8a65188ed 100644
--- a/ports/stm32/main.c
+++ b/ports/stm32/main.c
@@ -203,7 +203,7 @@ MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) {
if (res == FR_OK) {
// success creating fresh LFS
} else {
- printf("PYB: can't create flash filesystem\n");
+ printf("MPY: can't create flash filesystem\n");
return false;
}
@@ -235,7 +235,7 @@ MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) {
// mount sucessful
} else {
fail:
- printf("PYB: can't mount flash\n");
+ printf("MPY: can't mount flash\n");
return false;
}
@@ -349,7 +349,7 @@ STATIC bool init_sdcard_fs(void) {
}
if (first_part) {
- printf("PYB: can't mount SD card\n");
+ printf("MPY: can't mount SD card\n");
return false;
} else {
return true;
@@ -763,11 +763,11 @@ soft_reset_exit:
// soft reset
#if MICROPY_HW_ENABLE_STORAGE
- printf("PYB: sync filesystems\n");
+ printf("MPY: sync filesystems\n");
storage_flush();
#endif
- printf("PYB: soft reboot\n");
+ printf("MPY: soft reboot\n");
#if MICROPY_PY_NETWORK
mod_network_deinit();
#endif
diff --git a/ports/teensy/main.c b/ports/teensy/main.c
index 3ae049883..ad98a4364 100644
--- a/ports/teensy/main.c
+++ b/ports/teensy/main.c
@@ -343,7 +343,7 @@ soft_reset:
}
}
- printf("PYB: soft reboot\n");
+ printf("MPY: soft reboot\n");
// first_soft_reset = false;
goto soft_reset;