Skip to content

Commit 3ec8b9a

Browse files
projectgusdpgeorge
authored andcommitted
all: Replace legacy name with MicroPython and MPy as applicable.
With the aim of getting consistency, and removing the need to learn an additional term, replace uses of uPy/uPython with MPy/MicroPython. Rule of thumb was to use "MPy" abbreviation where "CPy" is used nearby, but the full word MicroPython otherwise. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent fb2b638 commit 3ec8b9a

61 files changed

Lines changed: 74 additions & 77 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/pyboard/tutorial/lcd_skin.rst

Lines changed: 2 additions & 2 deletions

docs/reference/asm_thumb2_index.rst

Lines changed: 1 addition & 1 deletion

extmod/asyncio/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __next__(self):
5050
raise self.exc
5151

5252

53-
# Pause task execution for the given time (integer in milliseconds, uPy extension)
53+
# Pause task execution for the given time (integer in milliseconds, MicroPython extension)
5454
# Use a SingletonGenerator to do it without allocating on the heap
5555
def sleep_ms(t, sgen=SingletonGenerator()):
5656
assert sgen.state is None

extmod/modtls_mbedtls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static mp_obj_t ssl_context_make_new(const mp_obj_type_t *type_in, size_t n_args
304304
psa_crypto_init();
305305
#endif
306306

307-
const byte seed[] = "upy";
307+
const byte seed[] = "mpy";
308308
int ret = mbedtls_ctr_drbg_seed(&self->ctr_drbg, mbedtls_entropy_func, &self->entropy, seed, sizeof(seed));
309309
if (ret != 0) {
310310
mbedtls_raise_error(ret);

extmod/vfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ mp_vfs_mount_t *mp_vfs_lookup_path(const char *path, const char **path_out) {
9696
return MP_STATE_VM(vfs_cur);
9797
}
9898

99-
// Version of mp_vfs_lookup_path that takes and returns uPy string objects.
99+
// Version of mp_vfs_lookup_path that takes and returns MicroPython string objects.
100100
static mp_vfs_mount_t *lookup_path(mp_obj_t path_in, mp_obj_t *path_out) {
101101
const char *path = mp_obj_str_get_str(path_in);
102102
const char *p_out;

ports/esp32/machine_hw_spi.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
#include "soc/spi_pins.h"
3939

4040
// SPI mappings by device, naming used by IDF old/new
41-
// upython | ESP32 | ESP32S2 | ESP32S3 | ESP32C3 | ESP32C6
42-
// ----------+-----------+-----------+---------+---------+---------
43-
// SPI(id=1) | HSPI/SPI2 | FSPI/SPI2 | SPI2 | SPI2 | SPI2
44-
// SPI(id=2) | VSPI/SPI3 | HSPI/SPI3 | SPI3 | err | err
41+
// MicroPython | ESP32 | ESP32S2 | ESP32S3 | ESP32C3 | ESP32C6
42+
// ------------+-----------+-----------+---------+---------+---------
43+
// SPI(id=1) | HSPI/SPI2 | FSPI/SPI2 | SPI2 | SPI2 | SPI2
44+
// SPI(id=2) | VSPI/SPI3 | HSPI/SPI3 | SPI3 | err | err
4545

4646
// Number of available hardware SPI peripherals.
4747
#if SOC_SPI_PERIPH_NUM > 2

ports/webassembly/asyncio/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __next__(self):
4747
raise self.exc
4848

4949

50-
# Pause task execution for the given time (integer in milliseconds, uPy extension)
50+
# Pause task execution for the given time (integer in milliseconds, MicroPython extension)
5151
# Use a SingletonGenerator to do it without allocating on the heap
5252
def sleep_ms(t, sgen=SingletonGenerator()):
5353
assert sgen.state is None

ports/windows/msvc/paths.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<PyVariantDir Condition="'$(PyVariantDir)' == ''">$(PyWinDir)variants\$(PyVariant)\</PyVariantDir>
3232
<PyTargetDir Condition="'$(PyTargetDir)' == ''">$(PyBuildDir)</PyTargetDir>
3333

34-
<!-- All include directories needed for uPy -->
34+
<!-- All include directories needed for MicroPython -->
3535
<PyIncDirs>$(PyIncDirs);$(PyBaseDir);$(PyWinDir);$(PyBuildDir);$(PyWinDir)msvc;$(PyVariantDir)</PyIncDirs>
3636

3737
<!-- Within PyBuildDir different subdirectories are used based on configuration and platform.

py/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ void gc_dump_alloc_table(const mp_print_t *print) {
12451245
break;
12461246
}
12471247
*/
1248-
/* this prints the uPy object type of the head block */
1248+
/* this prints the MicroPython object type of the head block */
12491249
case AT_HEAD: {
12501250
void **ptr = (void **)(area->gc_pool_start + bl * BYTES_PER_BLOCK);
12511251
if (*ptr == &mp_type_tuple) {

py/mpconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ typedef time_t mp_timestamp_t;
20992099
/*****************************************************************************/
21002100
/* Miscellaneous settings */
21012101

2102-
// All uPy objects in ROM must be aligned on at least a 4 byte boundary
2102+
// All MicroPython objects in ROM must be aligned on at least a 4 byte boundary
21032103
// so that the small-int/qstr/pointer distinction can be made. For machines
21042104
// that don't do this (eg 16-bit CPU), define the following macro to something
21052105
// like __attribute__((aligned(4))).

0 commit comments

Comments
 (0)