summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortheqengineer <[email protected]>2026-02-13 15:04:27 +0800
committerRbb666 <[email protected]>2026-02-13 21:54:59 +0800
commit85b656b14dcfe8a3ab27c819e168dde082ab39ef (patch)
tree0f34ed6dc658d03b60d88273213cfefb4c684cb7
parentb0c55f5bf57bd713108664fc789845dfa2a7f635 (diff)
chore: fix typo in components and libcpu
-rw-r--r--components/drivers/i2c/dev_i2c_bit_ops.c2
-rw-r--r--components/drivers/spi/dev_spi_msd.c2
-rw-r--r--components/finsh/msh.c2
-rw-r--r--components/lwp/lwp_args.c10
-rw-r--r--include/rtdef.h4
-rw-r--r--libcpu/arm/AT91SAM7S/interrupt.c2
-rw-r--r--libcpu/arm/AT91SAM7X/interrupt.c2
-rw-r--r--libcpu/arm/AT91SAM7X/trap.c2
-rw-r--r--libcpu/arm/cortex-r4/interrupt.c2
-rw-r--r--libcpu/arm/lpc214x/cpuport.c2
-rw-r--r--libcpu/arm/lpc24xx/interrupt.c2
-rw-r--r--libcpu/arm/s3c24x0/interrupt.c2
-rw-r--r--libcpu/arm/s3c44b0/interrupt.c2
-rw-r--r--libcpu/arm/sep4020/interrupt.c2
-rw-r--r--libcpu/ia32/interrupt.c2
-rw-r--r--libcpu/mips/gs232/interrupt.c2
-rw-r--r--libcpu/ppc/ppc405/interrupt.c2
-rw-r--r--libcpu/risc-v/t-head/c906/interrupt.c2
-rw-r--r--libcpu/risc-v/t-head/c908/interrupt.c2
-rw-r--r--libcpu/sim/posix/cpu_port.c2
-rw-r--r--libcpu/unicore32/sep6200/interrupt.c2
-rwxr-xr-xlibcpu/xilinx/microblaze/trap.c2
-rw-r--r--tools/building.py4
23 files changed, 29 insertions, 29 deletions
diff --git a/components/drivers/i2c/dev_i2c_bit_ops.c b/components/drivers/i2c/dev_i2c_bit_ops.c
index 005cf9035e..0b055f1c87 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 8d81e348af..441e1ea5c5 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 7cf93855af..56ef8a1cb0 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 31ea659da5..f1c723b120 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 f3e10fe51f..0dc919e77e 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 8468d36413..a34fa50994 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 1d473654e2..143d8b661b 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 b2dfdb4949..c8070fac96 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 345ca30e43..cd74e5244e 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 927ae93b4e..cbaa761b63 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 ec1b29e09e..a8b8199ee6 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 79ef42df1a..530b984809 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 b69e675741..44cef7f9c0 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 641472d19f..b32bccf4ee 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 473bf7714a..b73c146c29 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 fb80a8c1ec..1fe9b8a627 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 571bd6ff06..b2aa5f5603 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 2f7a86e680..339dde808f 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 2f7a86e680..339dde808f 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 8b578977e3..0e432482f0 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 ca0be86ad7..44f8b193ce 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 86b99a06a7..1c2ac301ae 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 26e13b3f84..b0b4c144c6 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 DoBuilding(target, 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)