diff --git a/components/drivers/i2c/dev_i2c_bit_ops.c b/components/drivers/i2c/dev_i2c_bit_ops.c index 005cf9035e7..0b055f1c87b 100644 --- a/components/drivers/i2c/dev_i2c_bit_ops.c +++ b/components/drivers/i2c/dev_i2c_bit_ops.c @@ -265,7 +265,7 @@ static rt_ssize_t i2c_recv_bytes(struct rt_i2c_bus_device *bus, ptr ++; count --; - LOG_D("recieve bytes: 0x%02x, %s", + LOG_D("receive bytes: 0x%02x, %s", val, (flags & RT_I2C_NO_READ_ACK) ? "(No ACK/NACK)" : (count ? "ACK" : "NACK")); diff --git a/components/drivers/spi/dev_spi_msd.c b/components/drivers/spi/dev_spi_msd.c index 8d81e348af5..441e1ea5c5f 100644 --- a/components/drivers/spi/dev_spi_msd.c +++ b/components/drivers/spi/dev_spi_msd.c @@ -199,7 +199,7 @@ static rt_err_t _send_cmd( return -RT_ERROR;//fail } - //recieve other byte + //receive other byte if (type == response_r1) { return RT_EOK; diff --git a/components/finsh/msh.c b/components/finsh/msh.c index 7cf93855aff..56ef8a1cb0c 100644 --- a/components/finsh/msh.c +++ b/components/finsh/msh.c @@ -451,7 +451,7 @@ static char *_msh_exec_search_env(const char *pg_name) or hitting its end */ while (1) { - /* env paths are seperated by ':' */ + /* env paths are separated by ':' */ if (*pos == ':' || *pos == '\0') { tmp_ch = *pos; diff --git a/components/lwp/lwp_args.c b/components/lwp/lwp_args.c index 31ea659da5d..f1c723b120f 100644 --- a/components/lwp/lwp_args.c +++ b/components/lwp/lwp_args.c @@ -671,21 +671,21 @@ static char *_find_word(char *cp) } /** - * @brief Seperate words in a string and get the next word + * @brief Separate words in a string and get the next word * * @param[in] cp Pointer to the string to process * * @return char* Pointer to the next word in the string * - * @note Finds the next whitespace character, seperates words, and returns a + * @note Finds the next whitespace character, separates words, and returns a * pointer to the next word. */ -static char *_seperate_and_get_nextword(char *cp) +static char *_separate_and_get_nextword(char *cp) { /* find next whitespace */ for (; *cp && (*cp != ' ') && (*cp != '\t'); cp++) ; - /* seperate words */ + /* separate words */ while ((*cp == ' ') || (*cp == '\t')) { *cp++ = '\0'; @@ -762,7 +762,7 @@ rt_err_t lwp_args_load_script(struct lwp_args_info *ai, const char *filename) do { - nextword = _seperate_and_get_nextword(cp); + nextword = _separate_and_get_nextword(cp); args_append(&ow_ai, cp, strlen(cp), LWP_ARGS_TYPE_KARG); cp = nextword; } diff --git a/include/rtdef.h b/include/rtdef.h index f3e10fe51f3..0dc919e77e4 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -57,8 +57,8 @@ * 2023-12-01 Shell Support of dynamic device * 2023-12-18 xqyjlj add rt_always_inline * 2023-12-22 Shell Support hook list - * 2024-01-18 Shell Seperate basical types to a rttypes.h - * Seperate the compiler portings to rtcompiler.h + * 2024-01-18 Shell Separate basical types to a rttypes.h + * Separate the compiler portings to rtcompiler.h * 2024-03-30 Meco Man update version number to v5.2.0 * 2025-11-10 Rbb666 update version number to v5.3.0 */ diff --git a/libcpu/arm/AT91SAM7S/interrupt.c b/libcpu/arm/AT91SAM7S/interrupt.c index 8468d364130..a34fa50994b 100644 --- a/libcpu/arm/AT91SAM7S/interrupt.c +++ b/libcpu/arm/AT91SAM7S/interrupt.c @@ -25,7 +25,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag; void rt_hw_interrupt_handler(int vector) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } /** diff --git a/libcpu/arm/AT91SAM7X/interrupt.c b/libcpu/arm/AT91SAM7X/interrupt.c index 1d473654e2f..143d8b661bd 100644 --- a/libcpu/arm/AT91SAM7X/interrupt.c +++ b/libcpu/arm/AT91SAM7X/interrupt.c @@ -30,7 +30,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag; static void rt_hw_interrupt_handler(int vector, void *param) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } /** diff --git a/libcpu/arm/AT91SAM7X/trap.c b/libcpu/arm/AT91SAM7X/trap.c index b2dfdb4949b..c8070fac963 100644 --- a/libcpu/arm/AT91SAM7X/trap.c +++ b/libcpu/arm/AT91SAM7X/trap.c @@ -41,7 +41,7 @@ void rt_hw_trap_fiq(void) extern struct rt_thread* rt_current_thread; void rt_hw_trap_abort(void) { - rt_kprintf("Abort occured!!! Thread [%s] suspended.\n",rt_current_thread->parent.name); + rt_kprintf("Abort occurred!!! Thread [%s] suspended.\n",rt_current_thread->parent.name); rt_thread_suspend(rt_current_thread); rt_schedule(); diff --git a/libcpu/arm/cortex-r4/interrupt.c b/libcpu/arm/cortex-r4/interrupt.c index 345ca30e437..cd74e5244e6 100644 --- a/libcpu/arm/cortex-r4/interrupt.c +++ b/libcpu/arm/cortex-r4/interrupt.c @@ -36,7 +36,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag; static void rt_hw_int_not_handle(int vector, void *param) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } #define vimRAM (0xFFF82000U) diff --git a/libcpu/arm/lpc214x/cpuport.c b/libcpu/arm/lpc214x/cpuport.c index 927ae93b4e0..cbaa761b633 100644 --- a/libcpu/arm/lpc214x/cpuport.c +++ b/libcpu/arm/lpc214x/cpuport.c @@ -74,7 +74,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag; void rt_hw_interrupt_handler(int vector, void *param) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } /** diff --git a/libcpu/arm/lpc24xx/interrupt.c b/libcpu/arm/lpc24xx/interrupt.c index ec1b29e09e3..a8b8199ee60 100644 --- a/libcpu/arm/lpc24xx/interrupt.c +++ b/libcpu/arm/lpc24xx/interrupt.c @@ -30,7 +30,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag; /*@{*/ void rt_hw_interrupt_handler(int vector, void *param) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } void rt_hw_interrupt_init(void) diff --git a/libcpu/arm/s3c24x0/interrupt.c b/libcpu/arm/s3c24x0/interrupt.c index 79ef42df1ae..530b9848092 100644 --- a/libcpu/arm/s3c24x0/interrupt.c +++ b/libcpu/arm/s3c24x0/interrupt.c @@ -29,7 +29,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag; static void rt_hw_interrupt_handle(int vector, void *param) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } /** diff --git a/libcpu/arm/s3c44b0/interrupt.c b/libcpu/arm/s3c44b0/interrupt.c index b69e675741f..44cef7f9c05 100644 --- a/libcpu/arm/s3c44b0/interrupt.c +++ b/libcpu/arm/s3c44b0/interrupt.c @@ -34,7 +34,7 @@ unsigned char interrupt_bank3[256]; void rt_hw_interrupt_handle(int vector) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } /** diff --git a/libcpu/arm/sep4020/interrupt.c b/libcpu/arm/sep4020/interrupt.c index 641472d19fc..b32bccf4ee8 100644 --- a/libcpu/arm/sep4020/interrupt.c +++ b/libcpu/arm/sep4020/interrupt.c @@ -29,7 +29,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag; static void rt_hw_interrupt_handle(int vector, void *param) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } /** diff --git a/libcpu/ia32/interrupt.c b/libcpu/ia32/interrupt.c index 473bf7714a3..b73c146c29a 100644 --- a/libcpu/ia32/interrupt.c +++ b/libcpu/ia32/interrupt.c @@ -56,7 +56,7 @@ void rt_hw_pic_init() void rt_hw_interrupt_handle(int vector, void* param) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } void rt_hw_isr(int vector) diff --git a/libcpu/mips/gs232/interrupt.c b/libcpu/mips/gs232/interrupt.c index fb80a8c1ec6..1fe9b8a6277 100644 --- a/libcpu/mips/gs232/interrupt.c +++ b/libcpu/mips/gs232/interrupt.c @@ -35,7 +35,7 @@ static struct gs232_intc_regs volatile *gs232_hw0_icregs static void rt_hw_interrupt_handler(int vector, void *param) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } /** diff --git a/libcpu/ppc/ppc405/interrupt.c b/libcpu/ppc/ppc405/interrupt.c index 571bd6ff067..b2aa5f56030 100644 --- a/libcpu/ppc/ppc405/interrupt.c +++ b/libcpu/ppc/ppc405/interrupt.c @@ -24,7 +24,7 @@ rt_uint32_t rt_thread_switch_interrput_flag; rt_isr_handler_t rt_hw_interrupt_handler(rt_uint32_t vector, void* param) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); return RT_NULL; } diff --git a/libcpu/risc-v/t-head/c906/interrupt.c b/libcpu/risc-v/t-head/c906/interrupt.c index 2f7a86e6802..339dde808f2 100644 --- a/libcpu/risc-v/t-head/c906/interrupt.c +++ b/libcpu/risc-v/t-head/c906/interrupt.c @@ -23,7 +23,7 @@ struct rt_irq_desc isr_table[INTERRUPTS_MAX]; static void rt_hw_interrupt_handler(int vector, void *param) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } /** diff --git a/libcpu/risc-v/t-head/c908/interrupt.c b/libcpu/risc-v/t-head/c908/interrupt.c index 2f7a86e6802..339dde808f2 100644 --- a/libcpu/risc-v/t-head/c908/interrupt.c +++ b/libcpu/risc-v/t-head/c908/interrupt.c @@ -23,7 +23,7 @@ struct rt_irq_desc isr_table[INTERRUPTS_MAX]; static void rt_hw_interrupt_handler(int vector, void *param) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } /** diff --git a/libcpu/sim/posix/cpu_port.c b/libcpu/sim/posix/cpu_port.c index 8b578977e30..0e432482f02 100644 --- a/libcpu/sim/posix/cpu_port.c +++ b/libcpu/sim/posix/cpu_port.c @@ -54,7 +54,7 @@ rt_ubase_t rt_thread_switch_interrupt_flag; /* interrupt event mutex */ static pthread_mutex_t *ptr_int_mutex; -static pthread_cond_t cond_int_hit; /* interrupt occured! */ +static pthread_cond_t cond_int_hit; /* interrupt occurred! */ static volatile unsigned int cpu_pending_interrupts; static int (* cpu_isr_table[MAX_INTERRUPT_NUM])(void) = {0}; diff --git a/libcpu/unicore32/sep6200/interrupt.c b/libcpu/unicore32/sep6200/interrupt.c index ca0be86ad7b..44f8b193ce7 100644 --- a/libcpu/unicore32/sep6200/interrupt.c +++ b/libcpu/unicore32/sep6200/interrupt.c @@ -118,7 +118,7 @@ rt_inline void sep6200_irq_mask(rt_uint32_t irq) } rt_isr_handler_t rt_hw_interrupt_handle(rt_uint32_t vector) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); return RT_NULL; } diff --git a/libcpu/xilinx/microblaze/trap.c b/libcpu/xilinx/microblaze/trap.c index 86b99a06a7e..1c2ac301ae1 100755 --- a/libcpu/xilinx/microblaze/trap.c +++ b/libcpu/xilinx/microblaze/trap.c @@ -33,7 +33,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag; void rt_hw_interrupt_handler(int vector) { - rt_kprintf("Unhandled interrupt %d occured!!!\n", vector); + rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector); } /** diff --git a/tools/building.py b/tools/building.py index 26e13b3f84a..b0b4c144c61 100644 --- a/tools/building.py +++ b/tools/building.py @@ -318,7 +318,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ if env['LINK'].find('gcc') != -1: env['LINK'] = env['LINK'].replace('gcc', 'g++') - # we need to seperate the variant_dir for BSPs and the kernels. BSPs could + # we need to separate the variant_dir for BSPs and the kernels. BSPs could # have their own components etc. If they point to the same folder, SCons # would find the wrong source code to compile. bsp_vdir = 'build' @@ -792,7 +792,7 @@ def local_group(group, objects): for group in Projects: local_group(group, objects_in_group) - # sort seperately, because the data type of + # sort separately, because the data type of # the members of the two lists are different objects_in_group = sorted(objects_in_group) objects = sorted(objects)