all: Use the name MicroPython consistently in comments

There were several different spellings of MicroPython present in comments,
when there should be only one.
pull/3080/merge
Alexander Steffen 2017-06-30 09:22:17 +02:00 zatwierdzone przez Damien George
rodzic bbced3b4bb
commit 55f33240f3
433 zmienionych plików z 504 dodań i 504 usunięć

Wyświetl plik

@ -37,7 +37,7 @@ ENTRY(ResetISR)
SECTIONS SECTIONS
{ {
/* place the FreeRTOS heap (the micropython stack will live here) */ /* place the FreeRTOS heap (the MicroPython stack will live here) */
.rtos_heap (NOLOAD) : .rtos_heap (NOLOAD) :
{ {
. = ALIGN(8); . = ALIGN(8);
@ -83,7 +83,7 @@ SECTIONS
} > SRAM } > SRAM
/* place here functions that are only called during boot up, */ /* place here functions that are only called during boot up, */
/* that way, we can re-use this area for the micropython heap */ /* that way, we can re-use this area for the MicroPython heap */
.boot : .boot :
{ {
. = ALIGN(8); . = ALIGN(8);
@ -93,7 +93,7 @@ SECTIONS
_eboot = .; _eboot = .;
} > SRAM } > SRAM
/* allocate the micropython heap */ /* allocate the MicroPython heap */
.heap : .heap :
{ {
. = ALIGN(8); . = ALIGN(8);

Wyświetl plik

@ -28,7 +28,7 @@
/* /*
Wrapper to setup HSPI/SPI GPIO pins and default SPI clock Wrapper to setup HSPI/SPI GPIO pins and default SPI clock
spi_no - SPI (0) or HSPI (1) spi_no - SPI (0) or HSPI (1)
Not used in Micropython. Not used in MicroPython.
*/ */
void spi_init(uint8_t spi_no) { void spi_init(uint8_t spi_no) {
spi_init_gpio(spi_no, SPI_CLK_USE_DIV); spi_init_gpio(spi_no, SPI_CLK_USE_DIV);
@ -48,7 +48,7 @@ Configures SPI mode parameters for clock edge and clock polarity.
(1) Data is valid on clock trailing edge (1) Data is valid on clock trailing edge
spi_cpol - (0) Clock is low when inactive spi_cpol - (0) Clock is low when inactive
(1) Clock is high when inactive (1) Clock is high when inactive
For Micropython this version is different from original. For MicroPython this version is different from original.
*/ */
void spi_mode(uint8_t spi_no, uint8_t spi_cpha, uint8_t spi_cpol) { void spi_mode(uint8_t spi_no, uint8_t spi_cpha, uint8_t spi_cpol) {
if (spi_cpol) { if (spi_cpol) {
@ -99,7 +99,7 @@ void spi_init_gpio(uint8_t spi_no, uint8_t sysclk_as_spiclk) {
// GPIO14 is HSPI CLK pin (Clock) // GPIO14 is HSPI CLK pin (Clock)
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTMS_U, 2); PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTMS_U, 2);
// GPIO15 is HSPI CS pin (Chip Select / Slave Select) // GPIO15 is HSPI CS pin (Chip Select / Slave Select)
// In Micropython, we are handling CS ourself in drivers. // In MicroPython, we are handling CS ourself in drivers.
// PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U, 2); // PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U, 2);
} }
} }

Wyświetl plik

@ -55,7 +55,7 @@ CFLAGS += -U _FORTIFY_SOURCE
endif endif
# On OSX, 'gcc' is a symlink to clang unless a real gcc is installed. # On OSX, 'gcc' is a symlink to clang unless a real gcc is installed.
# The unix port of micropython on OSX must be compiled with clang, # The unix port of MicroPython on OSX must be compiled with clang,
# while cross-compile ports require gcc, so we test here for OSX and # while cross-compile ports require gcc, so we test here for OSX and
# if necessary override the value of 'CC' set in py/mkenv.mk # if necessary override the value of 'CC' set in py/mkenv.mk
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)

Wyświetl plik

@ -44,7 +44,7 @@ COPT = -Os #-DNDEBUG
endif endif
# On OSX, 'gcc' is a symlink to clang unless a real gcc is installed. # On OSX, 'gcc' is a symlink to clang unless a real gcc is installed.
# The unix port of micropython on OSX must be compiled with clang, # The unix port of MicroPython on OSX must be compiled with clang,
# while cross-compile ports require gcc, so we test here for OSX and # while cross-compile ports require gcc, so we test here for OSX and
# if necessary override the value of 'CC' set in py/mkenv.mk # if necessary override the value of 'CC' set in py/mkenv.mk
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)

Wyświetl plik

@ -46,7 +46,7 @@
#include "py/gc.h" #include "py/gc.h"
// We redirect standard alloc functions to GC heap - just for the rest of // We redirect standard alloc functions to GC heap - just for the rest of
// this module. In the rest of micropython source, system malloc can be // this module. In the rest of MicroPython source, system malloc can be
// freely accessed - for interfacing with system and 3rd-party libs for // freely accessed - for interfacing with system and 3rd-party libs for
// example. On the other hand, some (e.g. bare-metal) ports may use GC // example. On the other hand, some (e.g. bare-metal) ports may use GC
// heap as system heap, so, to avoid warnings, we do undef's first. // heap as system heap, so, to avoid warnings, we do undef's first.

Wyświetl plik

@ -47,7 +47,7 @@ $(BUILD)/%.o: %.c
$(call compile_c) $(call compile_c)
# List all native flags since the current build system doesn't have # List all native flags since the current build system doesn't have
# the micropython configuration available. However, these flags are # the MicroPython configuration available. However, these flags are
# needed to extract all qstrings # needed to extract all qstrings
QSTR_GEN_EXTRA_CFLAGS += -DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB -DN_ARM -DN_XTENSA QSTR_GEN_EXTRA_CFLAGS += -DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB -DN_ARM -DN_XTENSA
QSTR_GEN_EXTRA_CFLAGS += -I$(BUILD)/tmp QSTR_GEN_EXTRA_CFLAGS += -I$(BUILD)/tmp

Wyświetl plik

@ -1370,7 +1370,7 @@ void UART_AdvFeatureConfig(UART_HandleTypeDef *huart);
/** /**
* @} * @}
*/ */
/* Functions added by micropython */ /* Functions added by MicroPython */
uint32_t HAL_UART_CalcBrr(uint32_t fck, uint32_t baud); uint32_t HAL_UART_CalcBrr(uint32_t fck, uint32_t baud);
#ifdef __cplusplus #ifdef __cplusplus

Wyświetl plik

@ -2104,7 +2104,7 @@ static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart)
/** /**
* @brief Calculate register BRR value without using uint64. * @brief Calculate register BRR value without using uint64.
* @note This function is added by the micropython project. * @note This function is added by the MicroPython project.
* @param fck: Input clock frequency to the uart block in Hz. * @param fck: Input clock frequency to the uart block in Hz.
* @param baud: baud rate should be one of {300, 600, 1200, 2400, 4800, 9600, 19200, 57600, 115200}. * @param baud: baud rate should be one of {300, 600, 1200, 2400, 4800, 9600, 19200, 57600, 115200}.
* @retval BRR value * @retval BRR value

Wyświetl plik

@ -154,7 +154,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_0(pyb_sync_obj, pyb_sync);
/// \function millis() /// \function millis()
/// Returns the number of milliseconds since the board was last reset. /// Returns the number of milliseconds since the board was last reset.
/// ///
/// The result is always a micropython smallint (31-bit signed number), so /// The result is always a MicroPython smallint (31-bit signed number), so
/// after 2^30 milliseconds (about 12.4 days) this will start to return /// after 2^30 milliseconds (about 12.4 days) this will start to return
/// negative numbers. /// negative numbers.
STATIC mp_obj_t pyb_millis(void) { STATIC mp_obj_t pyb_millis(void) {
@ -185,7 +185,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_elapsed_millis_obj, pyb_elapsed_millis);
/// \function micros() /// \function micros()
/// Returns the number of microseconds since the board was last reset. /// Returns the number of microseconds since the board was last reset.
/// ///
/// The result is always a micropython smallint (31-bit signed number), so /// The result is always a MicroPython smallint (31-bit signed number), so
/// after 2^30 microseconds (about 17.8 minutes) this will start to return /// after 2^30 microseconds (about 17.8 minutes) this will start to return
/// negative numbers. /// negative numbers.
STATIC mp_obj_t pyb_micros(void) { STATIC mp_obj_t pyb_micros(void) {

Wyświetl plik

@ -36,7 +36,7 @@ print(a.read())
a = io.StringIO() a = io.StringIO()
a.close() a.close()
for f in [a.read, a.getvalue, lambda:a.write("")]: for f in [a.read, a.getvalue, lambda:a.write("")]:
# CPython throws for operations on closed I/O, micropython makes # CPython throws for operations on closed I/O, MicroPython makes
# the underlying string empty unless MICROPY_CPYTHON_COMPAT defined # the underlying string empty unless MICROPY_CPYTHON_COMPAT defined
try: try:
f() f()

Wyświetl plik

@ -33,7 +33,7 @@ import time
import re import re
from collections import namedtuple from collections import namedtuple
# Micropython supports syntax of CPython 3.4 with some features from 3.5, and # MicroPython supports syntax of CPython 3.4 with some features from 3.5, and
# such version should be used to test for differences. If your default python3 # such version should be used to test for differences. If your default python3
# executable is of lower version, you can point MICROPY_CPYTHON3 environment var # executable is of lower version, you can point MICROPY_CPYTHON3 environment var
# to the correct executable. # to the correct executable.

Wyświetl plik

@ -59,7 +59,7 @@ CFLAGS += -U _FORTIFY_SOURCE
endif endif
# On OSX, 'gcc' is a symlink to clang unless a real gcc is installed. # On OSX, 'gcc' is a symlink to clang unless a real gcc is installed.
# The unix port of micropython on OSX must be compiled with clang, # The unix port of MicroPython on OSX must be compiled with clang,
# while cross-compile ports require gcc, so we test here for OSX and # while cross-compile ports require gcc, so we test here for OSX and
# if necessary override the value of 'CC' set in py/mkenv.mk # if necessary override the value of 'CC' set in py/mkenv.mk
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)