all: Fix spelling mistakes based on codespell check.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2023-03-08 14:10:02 +11:00
parent e160fe7bc6
commit b1229efbd1
191 changed files with 282 additions and 282 deletions

View File

@@ -113,7 +113,7 @@ STATIC mp_obj_t adc_obj_make_new(const mp_obj_type_t *type, size_t n_args, size_
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
mp_arg_parse_all_kw_array(n_args, n_kw, all_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
// Unpack and check, whther the pin has ADC capability
// Unpack and check, whether the pin has ADC capability
int id = mp_hal_get_pin_obj(args[ARG_id].u_obj);
adc_config_t adc_config = get_adc_config(id, busy_flags);

View File

@@ -98,7 +98,7 @@ void common_i2c_irq_handler(int i2c_id) {
i2c->I2CM.INTFLAG.reg |= SERCOM_I2CM_INTFLAG_SB;
}
} else if (IRQ_DATA_SENT) {
if (NACK_RECVD) { // e.g. NACK after adress for both read and write.
if (NACK_RECVD) { // e.g. NACK after address for both read and write.
self->state = state_nack; // force stop of transmission
i2c->I2CM.INTFLAG.reg |= SERCOM_I2CM_INTFLAG_MB;
} else if (self->len > 0) { // data to be sent
@@ -200,7 +200,7 @@ mp_obj_t machine_i2c_make_new(const mp_obj_type_t *type, size_t n_args, size_t n
#elif defined(MCU_SAMD51)
NVIC_EnableIRQ(SERCOM0_0_IRQn + 4 * self->id); // MB interrupt
NVIC_EnableIRQ(SERCOM0_0_IRQn + 4 * self->id + 1); // SB interrupt
NVIC_EnableIRQ(SERCOM0_0_IRQn + 4 * self->id + 3); // ERRROR interrupt
NVIC_EnableIRQ(SERCOM0_0_IRQn + 4 * self->id + 3); // ERROR interrupt
#endif
// Now enable I2C.
@@ -230,7 +230,7 @@ STATIC int machine_i2c_transfer_single(mp_obj_base_t *self_in, uint16_t addr, si
i2c->I2CM.INTENSET.reg = SERCOM_I2CM_INTENSET_MB | SERCOM_I2CM_INTENSET_SB | SERCOM_I2CM_INTENSET_ERROR;
self->state = state_busy;
// Send the adress, which kicks off the transfer
// Send the address, which kicks off the transfer
i2c->I2CM.ADDR.bit.ADDR = (addr << 1) | READ_MODE;
// Transfer the data

View File

@@ -507,7 +507,7 @@ STATIC mp_uint_t machine_uart_ioctl(mp_obj_t self_in, mp_uint_t request, mp_uint
}
} else if (request == MP_STREAM_FLUSH) {
// The timeout is defined by the buffer size and the baudrate.
// Take the worst case assumtions at 13 bit symbol size times 2.
// Take the worst case assumptions at 13 bit symbol size times 2.
uint64_t timeout = mp_hal_ticks_ms_64() + (3
#if MICROPY_HW_UART_TXBUF
+ self->write_buffer.size

View File

@@ -125,14 +125,14 @@ void check_usb_recovery_mode(void) {
// Purpose of the #defines for the clock configuration.
//
// Both CPU and periperal devices are clocked by the DFLL48M clock.
// Both CPU and peripheral devices are clocked by the DFLL48M clock.
// DFLL48M is either free running, or controlled by the 32kHz crystal, or
// Synchronized with the USB clock.
//
// #define MICROPY_HW_XOSC32K (0 | 1)
//
// If MICROPY_HW_XOSC32K = 1, the 32kHz crystal is used as input for GCLK 1, which
// serves as refernce clock source for the DFLL48M oscillator,
// serves as reference clock source for the DFLL48M oscillator,
// The crystal is used, unless MICROPY_HW_MCU_OSC32KULP is set.
// In that case GCLK1 (and the CPU clock) is driven by the 32K Low power oscillator.
// The reason for offering this option is a design flaw of the Adafruit
@@ -147,11 +147,11 @@ void check_usb_recovery_mode(void) {
// not exactly 48Mhz and has a substantional temperature drift.
//
// If MICROPY_HW_DFLL_USB_SYNC = 1, the DFLL48 is synchronized with the 1 kHz USB sync
// signal. If after boot there is no USB sync withing 500ms, the configuratuion falls
// signal. If after boot there is no USB sync within 500ms, the configuration falls
// back to a free running 48Mhz oscillator.
//
// In all modes, the 48MHz signal has a substantial jitter, largest when
// MICROPY_HW_DFLL_USB_SYNC is active. That is caused by the repective
// MICROPY_HW_DFLL_USB_SYNC is active. That is caused by the respective
// reference frequencies of 32kHz or 1 kHz being low. That affects most
// PWM. Std Dev at 1kHz 0.156Hz (w. Crystal) up to 0.4 Hz (with USB sync).
//
@@ -171,7 +171,7 @@ void init_clocks(uint32_t cpu_freq) {
// GCLK5: 48MHz, source: DFLL48M, usage: USB
// GCLK8: 1kHz, source: XOSC32K or OSCULP32K, usage: WDT and RTC
// DFLL48M: Reference sources:
// - in closed loop mode: eiter XOSC32K or OSCULP32K or USB clock
// - in closed loop mode: either XOSC32K or OSCULP32K or USB clock
// from GCLK4.
// - in open loop mode: None
// FDPLL96M: Reference source GCLK1

View File

@@ -2,7 +2,7 @@
# for some of the peripheral devices with many possible assignments.
# The pin_cap_table is a subset from table 7-1 of the data sheet.
# It contain the information about pin mux set and pad
# The eic and adc columns contain the decimal numer for the respecitive
# The eic and adc columns contain the decimal number for the respecitive
# quantity, the columns for sercom, tc and tcc have in each cell
# the device number in the upper nibble, and the pad number in the lower
# nibble. If a signal is not available, the cell in the csv table is left empty.
1 # The pin_cap_tables contain the information anbout pin mux set and pad
2 # for some of the peripheral devices with many possible assignments.
3 # The pin_cap_table is a subset from table 7-1 of the data sheet.
4 # It contain the information about pin mux set and pad
5 # The eic and adc columns contain the decimal numer for the respecitive # The eic and adc columns contain the decimal number for the respecitive
6 # quantity, the columns for sercom, tc and tcc have in each cell
7 # the device number in the upper nibble, and the pad number in the lower
8 # nibble. If a signal is not available, the cell in the csv table is left empty.

View File

@@ -172,11 +172,11 @@ void check_usb_recovery_mode(void) {
// not exactly 48Mhz and has a substantional temperature drift.
//
// If MICROPY_HW_DFLL_USB_SYNC = 1, the DFLL48 is synchronized with the 1 kHz USB sync
// signal. If after boot there is no USB sync withing 500ms, the configuratuion falls
// signal. If after boot there is no USB sync within 500ms, the configuration falls
// back to a free running 48Mhz oscillator.
//
// In all modes, the 48MHz signal has a substantial jitter, largest when
// MICROPY_HW_DFLL_USB_SYNC is active. That is caused by the repective
// MICROPY_HW_DFLL_USB_SYNC is active. That is caused by the respective
// reference frequencies of 32kHz or 1 kHz being low. That affects most
// PWM. Std Dev at 1kHz 0.156Hz (w. Crystal) up to 0.4 Hz (with USB sync).
//
@@ -195,7 +195,7 @@ void init_clocks(uint32_t cpu_freq) {
// GCLK4: 32kHz, source: XOSC32K, if crystal present, usage: DFLL48M reference
// GCLK5: 48MHz, source: DFLL48M, usage: USB
// DFLL48M: Reference sources:
// - in closed loop mode: eiter XOSC32K or OSCULP32K or USB clock
// - in closed loop mode: either XOSC32K or OSCULP32K or USB clock
// - in open loop mode: None
// DPLL0: 48 - 200 MHz

View File

@@ -1,9 +1,9 @@
# The pin_cap_table is a subset from table 6-1 of the data sheet.
# It contain the information about pin mux set and pad
# for some of the peripheral devices with many possible assignments.
# The colums represent the peripheral class, as defined in pin_cap_t. The
# The columns represent the peripheral class, as defined in pin_cap_t. The
# column number is equivalent to the mux class.
# The eic and adc columns contain the decimal numer for the respecitive
# The eic and adc columns contain the decimal number for the respecitive
# quantity, the columns for sercom, tc and tcc have in each cell
# the device number in the first, and the pad number in the second
# digit. If a signal is not available, the cell in the csv table is left empty.
1 # The pin_cap_table is a subset from table 6-1 of the data sheet.
2 # It contain the information about pin mux set and pad
3 # for some of the peripheral devices with many possible assignments.
4 # The colums represent the peripheral class, as defined in pin_cap_t. The # The columns represent the peripheral class, as defined in pin_cap_t. The
5 # column number is equivalent to the mux class.
6 # The eic and adc columns contain the decimal numer for the respecitive # The eic and adc columns contain the decimal number for the respecitive
7 # quantity, the columns for sercom, tc and tcc have in each cell
8 # the device number in the first, and the pad number in the second
9 # digit. If a signal is not available, the cell in the csv table is left empty.

View File

@@ -121,7 +121,7 @@ const char *pin_name(int id) {
return "-";
}
// Test, wether the given pin is defined and has signals for sercom.
// Test, whether the given pin is defined and has signals for sercom.
// If that applies return the alt_fct and pad_nr.
// If not, an error will be raised.
@@ -136,7 +136,7 @@ sercom_pad_config_t get_sercom_config(int pin_id, uint8_t sercom_nr) {
}
}
// Test, wether the given pin is defined as ADC.
// Test, whether the given pin is defined as ADC.
// If that applies return the adc instance and channel.
// If not, an error will be raised.
@@ -158,7 +158,7 @@ adc_config_t get_adc_config(int pin_id, int32_t flag) {
}
}
// Test, wether the given pin is defined and has signals for pwm.
// Test, whether the given pin is defined and has signals for pwm.
// If that applies return the alt_fct, tcc number and channel number.
// If not, an error will be raised.
// The function either supplies a channel from a wanted device, or