Skip to content

Commit b3f2f18

Browse files
committed
renesas-ra: Fix spelling mistakes found by codespell.
And enable codespell for this port in `pyproject.toml`. Signed-off-by: Damien George <[email protected]>
1 parent ab6d59d commit b3f2f18

File tree

13 files changed

+17
-18
lines changed

13 files changed

+17
-18
lines changed

ports/renesas-ra/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ FILE2H = $(TOP)/tools/file2h.py
484484
# List of sources for qstr extraction
485485
SRC_QSTR += $(SRC_C) $(SRC_CXX) $(SHARED_SRC_C) $(GEN_PINS_SRC)
486486

487-
# Making OBJ use an order-only depenedency on the generated pins.h file
487+
# Making OBJ use an order-only dependency on the generated pins.h file
488488
# has the side effect of making the pins.h file before we actually compile
489489
# any of the objects. The normal dependency generation will deal with the
490490
# case when pins.h is modified. But when it doesn't exist, we don't know

ports/renesas-ra/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ passed as the argument to `BOARD=`; for example `RA4M1_CLICKER`, `EK_RA4M1`,
6363
The above command should produce binary images `firmware.hex` in the
6464
build-EK_RA6M2/` subdirectory (or the equivalent directory for the board specified).
6565

66-
## Supported/Unsupprted funtions
66+
## Supported/Unsupported functions
6767
Please refer to the `renesas-ra` quick reference.
6868

6969
## Known issues

ports/renesas-ra/boards/EK_RA4M1/mpconfigboard.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
// I2C (not supported)
4141
// #define MICROPY_HW_I2C0_SCL (pin_P204) // Conflict with SPI1
4242
// #define MICROPY_HW_I2C0_SDA (pin_P407) // Conflict with USB_VBUS
43-
// #define MICROPY_HW_I2C0_SCL (pin_P400) // Conflict wiht PMOD B (GPIO)
43+
// #define MICROPY_HW_I2C0_SCL (pin_P400) // Conflict with PMOD B (GPIO)
4444
// #define MICROPY_HW_I2C0_SDA (pin_P401) // Conflict with PMOD B (TXD1)
4545
// #define MICROPY_HW_I2C1_SCL (pin_P100) // Conflict with PMOD A (MISOA_A)
4646
// #define MICROPY_HW_I2C1_SDA (pin_P101) // Conflict with PMOD A (MOSIA_A)

ports/renesas-ra/fsp_cfg/r_sci_uart_cfg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern "C" {
1111
#define SCI_UART_CFG_RS485_SUPPORT (0)
1212

1313
/*
14-
* Disable r_sci_uart.c's interrupt handlers by defining followings
14+
* Disable r_sci_uart.c's interrupt handlers by defining following
1515
* because the renesas-ra has own interrupt handlers for SCI and
1616
* symbol conflict happens.
1717
*/

ports/renesas-ra/machine_dac.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ STATIC machine_dac_obj_t machine_dac_obj[] = {
5454

5555
STATIC void machine_dac_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
5656
machine_dac_obj_t *self = MP_OBJ_TO_PTR(self_in); // const char *qstr_str(qstr q);
57-
mp_printf(print, "DAC(DA%d [#%d], runing=%u, out=%u mV)", self->ch, self->dac->pin, self->active, self->mv);
57+
mp_printf(print, "DAC(DA%d [#%d], active=%u, out=%u mV)", self->ch, self->dac->pin, self->active, self->mv);
5858
}
5959

6060
STATIC mp_obj_t machine_dac_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {

ports/renesas-ra/machine_pwm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ STATIC machine_pwm_obj_t machine_pwm_obj[] = {
136136

137137
STATIC void mp_machine_pwm_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
138138
machine_pwm_obj_t *self = MP_OBJ_TO_PTR(self_in);
139-
mp_printf(print, "PWM(GTIOC %d%c[#%d], runing=%u, freq=%u, duty=%u)", self->ch, self->id, self->pwm->pin, self->active, self->freq, self->duty);
139+
mp_printf(print, "PWM(GTIOC %d%c[#%d], active=%u, freq=%u, duty=%u)", self->ch, self->id, self->pwm->pin, self->active, self->freq, self->duty);
140140
}
141141

142142
STATIC void mp_machine_pwm_init_helper(machine_pwm_obj_t *self, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {

ports/renesas-ra/pendsv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ __attribute__((naked)) void PendSV_Handler(void) {
164164
"bl pyb_thread_next\n" // get next thread to execute
165165
"mov lr, r4\n" // restore lr
166166
"mov sp, r0\n" // switch stacks
167-
"msr primask, r5\n" // reenable interrupts
167+
"msr primask, r5\n" // re-enable interrupts
168168
"vpop {s16-s31}\n"
169169
"pop {r4-r11, lr}\n"
170170
"bx lr\n" // return from interrupt; will return to new thread

ports/renesas-ra/ra/ra_i2c.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ static void ra_i2c_ictei_isr(R_IIC0_Type *i2c_inst) {
625625
action->m_status = RA_I2C_STATUS_DataSendCompleted;
626626
i2c_inst->ICCR2_b.SP = 1;
627627
} else {
628-
action->m_status = RA_I2C_STATUS_Stopped; // set Stopped status insted STOP condition
628+
action->m_status = RA_I2C_STATUS_Stopped; // set Stopped status instead STOP condition
629629
}
630630
} else {
631631
ra_i2c_xaction_start(i2c_inst, action, true);

ports/renesas-ra/ra/ra_icu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ static const ra_icu_pin_t ra_irq_pins[] = {
520520
#endif
521521

522522
#else
523-
#error "CMSIS MCU Series is not speficied."
523+
#error "CMSIS MCU Series is not specified."
524524
#endif
525525
};
526526
#define ICU_PINS_SIZE (sizeof(ra_irq_pins) / sizeof(ra_icu_pin_t))

ports/renesas-ra/ra/ra_sci.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ void ra_sci_tx_ch(uint32_t ch, int c) {
12101210
if ((scr & 0xa0) != 0) {
12111211
sci_regs[idx]->SCR &= ~0xa0;
12121212
}
1213-
sci_regs[idx]->SCR |= 0xa0; /* TIE and TE enable */
1213+
sci_regs[idx]->SCR |= 0xa0; /* TIE- and TE-interrupt enable */
12141214
}
12151215
ra_enable_irq(state);
12161216
}
@@ -1412,28 +1412,28 @@ void ra_sci_deinit(uint32_t ch) {
14121412
}
14131413
}
14141414

1415-
/* rx interrupt */
1415+
/* rx-interrupt */
14161416
void sci_uart_rxi_isr(void) {
14171417
IRQn_Type irq = R_FSP_CurrentIrqGet();
14181418
uint32_t ch = irq_to_ch[(uint32_t)irq];
14191419
ra_sci_isr_rx(ch);
14201420
}
14211421

1422-
/* tx interrupt */
1422+
/* tx-interrupt */
14231423
void sci_uart_txi_isr(void) {
14241424
IRQn_Type irq = R_FSP_CurrentIrqGet();
14251425
uint32_t ch = irq_to_ch[(uint32_t)irq];
14261426
ra_sci_isr_tx(ch);
14271427
}
14281428

1429-
/* er interrupt */
1429+
/* er-interrupt */
14301430
void sci_uart_eri_isr(void) {
14311431
IRQn_Type irq = R_FSP_CurrentIrqGet();
14321432
uint32_t ch = irq_to_ch[(uint32_t)irq];
14331433
ra_sci_isr_er(ch);
14341434
}
14351435

1436-
/* te interrupt */
1436+
/* te-interrupt */
14371437
void sci_uart_tei_isr(void) {
14381438
IRQn_Type irq = R_FSP_CurrentIrqGet();
14391439
uint32_t ch = irq_to_ch[(uint32_t)irq];

ports/renesas-ra/systick.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void SysTick_Handler(void) {
4949
uint32_t uw_tick = uwTick + 1;
5050
uwTick = uw_tick;
5151

52-
// Read the systick control regster. This has the side effect of clearing
52+
// Read the systick control register. This has the side effect of clearing
5353
// the COUNTFLAG bit, which makes the logic in mp_hal_ticks_us
5454
// work properly.
5555
SysTick->CTRL;

ports/renesas-ra/timer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ STATIC void pyb_timer_print(const mp_print_t *print, mp_obj_t self_in, mp_print_
9999
///
100100
/// Keyword arguments:
101101
///
102-
/// - `freq` - specifies the periodic frequency of the timer. You migh also
102+
/// - `freq` - specifies the periodic frequency of the timer. You might also
103103
/// view this as the frequency with which the timer goes through
104104
/// one complete cycle.
105105
//////
@@ -215,7 +215,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_timer_deinit_obj, pyb_timer_deinit);
215215
/// If only a channel number is passed, then a previously initialized channel
216216
/// object is returned (or `None` if there is no previous channel).
217217
///
218-
/// Othwerwise, a TimerChannel object is initialized and returned.
218+
/// Otherwise, a TimerChannel object is initialized and returned.
219219
///
220220
/// Each channel can be configured to perform pwm, output compare, or
221221
/// input capture. All channels share the same underlying timer, which means

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ skip = """
1414
./ports/cc3200/simplelink,\
1515
./ports/cc3200/telnet,\
1616
./ports/nrf/drivers/bluetooth/s1*,\
17-
./ports/renesas-ra,\
1817
./ports/stm32/usbhost,\
1918
./tests,\
2019
ACKNOWLEDGEMENTS,\

0 commit comments

Comments
 (0)