diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/netutils/dhcpserver.c | 4 | ||||
-rw-r--r-- | shared/runtime/pyexec.c | 2 | ||||
-rw-r--r-- | shared/runtime/softtimer.c | 2 | ||||
-rw-r--r-- | shared/tinyusb/mp_usbd.c | 2 | ||||
-rw-r--r-- | shared/upytesthelper/upytesthelper.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/shared/netutils/dhcpserver.c b/shared/netutils/dhcpserver.c index ea5718d114..50cd69a1eb 100644 --- a/shared/netutils/dhcpserver.c +++ b/shared/netutils/dhcpserver.c @@ -277,8 +277,8 @@ static void dhcp_server_process(void *arg, struct udp_pcb *upcb, struct pbuf *p, opt_write_n(&opt, DHCP_OPT_SERVER_ID, 4, &d->ip.addr); opt_write_n(&opt, DHCP_OPT_SUBNET_MASK, 4, &d->nm.addr); - opt_write_n(&opt, DHCP_OPT_ROUTER, 4, &d->ip.addr); // aka gateway; can have mulitple addresses - opt_write_u32(&opt, DHCP_OPT_DNS, DEFAULT_DNS); // can have mulitple addresses + opt_write_n(&opt, DHCP_OPT_ROUTER, 4, &d->ip.addr); // aka gateway; can have multiple addresses + opt_write_u32(&opt, DHCP_OPT_DNS, DEFAULT_DNS); // can have multiple addresses opt_write_u32(&opt, DHCP_OPT_IP_LEASE_TIME, DEFAULT_LEASE_TIME_S); *opt++ = DHCP_OPT_END; dhcp_socket_sendto(&d->udp, &dhcp_msg, opt - (uint8_t *)&dhcp_msg, 0xffffffff, PORT_DHCP_CLIENT); diff --git a/shared/runtime/pyexec.c b/shared/runtime/pyexec.c index ec0ff87f1d..e32150e5e7 100644 --- a/shared/runtime/pyexec.c +++ b/shared/runtime/pyexec.c @@ -592,7 +592,7 @@ friendly_repl_reset: // If the user gets to here and interrupts are disabled then // they'll never see the prompt, traceback etc. The USB REPL needs // interrupts to be enabled or no transfers occur. So we try to - // do the user a favor and reenable interrupts. + // do the user a favor and re-enable interrupts. if (query_irq() == IRQ_STATE_DISABLED) { enable_irq(IRQ_STATE_ENABLED); mp_hal_stdout_tx_str("MPY: enabling IRQs\r\n"); diff --git a/shared/runtime/softtimer.c b/shared/runtime/softtimer.c index 68173ac337..267610b269 100644 --- a/shared/runtime/softtimer.c +++ b/shared/runtime/softtimer.c @@ -41,7 +41,7 @@ STATIC soft_timer_entry_t *soft_timer_heap; static inline int32_t ticks_diff(uint32_t t1, uint32_t t0) { // t1 is after t0 (i.e. positive result) if there exists a uint32_t X <= INT_MAX - // such that t0 + X = t1. Otherwise t1 is interepreted to be earlier than + // such that t0 + X = t1. Otherwise t1 is interpreted to be earlier than // t0 (negative result). return t1 - t0; } diff --git a/shared/tinyusb/mp_usbd.c b/shared/tinyusb/mp_usbd.c index 0edc489881..ea1de674bc 100644 --- a/shared/tinyusb/mp_usbd.c +++ b/shared/tinyusb/mp_usbd.c @@ -31,7 +31,7 @@ #if MICROPY_HW_ENABLE_USBDEV #ifndef NO_QSTR -#include "tusb.h" // TinyUSB is not avaiable when running the string preprocessor +#include "tusb.h" // TinyUSB is not available when running the string preprocessor #include "device/usbd.h" #include "device/usbd_pvt.h" #endif diff --git a/shared/upytesthelper/upytesthelper.c b/shared/upytesthelper/upytesthelper.c index ce60732424..9553ff468e 100644 --- a/shared/upytesthelper/upytesthelper.c +++ b/shared/upytesthelper/upytesthelper.c @@ -60,7 +60,7 @@ bool upytest_is_failed(void) { } // MP_PLAT_PRINT_STRN() should be redirected to this function. -// It will pass-thru any content to mp_hal_stdout_tx_strn_cooked() +// It will pass-through any content to mp_hal_stdout_tx_strn_cooked() // (the dfault value of MP_PLAT_PRINT_STRN), but will also match // it to the expected output as set by upytest_set_expected_output(). // If mismatch happens, upytest_is_failed() returns true. |