Skip to content

Commit 85b656b

Browse files
theqengineerRbb666
authored andcommitted
chore: fix typo in components and libcpu
1 parent b0c55f5 commit 85b656b

File tree

23 files changed

+29
-29
lines changed

23 files changed

+29
-29
lines changed

components/drivers/i2c/dev_i2c_bit_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static rt_ssize_t i2c_recv_bytes(struct rt_i2c_bus_device *bus,
265265
ptr ++;
266266
count --;
267267

268-
LOG_D("recieve bytes: 0x%02x, %s",
268+
LOG_D("receive bytes: 0x%02x, %s",
269269
val, (flags & RT_I2C_NO_READ_ACK) ?
270270
"(No ACK/NACK)" : (count ? "ACK" : "NACK"));
271271

components/drivers/spi/dev_spi_msd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static rt_err_t _send_cmd(
199199
return -RT_ERROR;//fail
200200
}
201201

202-
//recieve other byte
202+
//receive other byte
203203
if (type == response_r1)
204204
{
205205
return RT_EOK;

components/finsh/msh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static char *_msh_exec_search_env(const char *pg_name)
451451
or hitting its end */
452452
while (1)
453453
{
454-
/* env paths are seperated by ':' */
454+
/* env paths are separated by ':' */
455455
if (*pos == ':' || *pos == '\0')
456456
{
457457
tmp_ch = *pos;

components/lwp/lwp_args.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -671,21 +671,21 @@ static char *_find_word(char *cp)
671671
}
672672

673673
/**
674-
* @brief Seperate words in a string and get the next word
674+
* @brief Separate words in a string and get the next word
675675
*
676676
* @param[in] cp Pointer to the string to process
677677
*
678678
* @return char* Pointer to the next word in the string
679679
*
680-
* @note Finds the next whitespace character, seperates words, and returns a
680+
* @note Finds the next whitespace character, separates words, and returns a
681681
* pointer to the next word.
682682
*/
683-
static char *_seperate_and_get_nextword(char *cp)
683+
static char *_separate_and_get_nextword(char *cp)
684684
{
685685
/* find next whitespace */
686686
for (; *cp && (*cp != ' ') && (*cp != '\t'); cp++)
687687
;
688-
/* seperate words */
688+
/* separate words */
689689
while ((*cp == ' ') || (*cp == '\t'))
690690
{
691691
*cp++ = '\0';
@@ -762,7 +762,7 @@ rt_err_t lwp_args_load_script(struct lwp_args_info *ai, const char *filename)
762762

763763
do
764764
{
765-
nextword = _seperate_and_get_nextword(cp);
765+
nextword = _separate_and_get_nextword(cp);
766766
args_append(&ow_ai, cp, strlen(cp), LWP_ARGS_TYPE_KARG);
767767
cp = nextword;
768768
}

include/rtdef.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
* 2023-12-01 Shell Support of dynamic device
5858
* 2023-12-18 xqyjlj add rt_always_inline
5959
* 2023-12-22 Shell Support hook list
60-
* 2024-01-18 Shell Seperate basical types to a rttypes.h
61-
* Seperate the compiler portings to rtcompiler.h
60+
* 2024-01-18 Shell Separate basical types to a rttypes.h
61+
* Separate the compiler portings to rtcompiler.h
6262
* 2024-03-30 Meco Man update version number to v5.2.0
6363
* 2025-11-10 Rbb666 update version number to v5.3.0
6464
*/

libcpu/arm/AT91SAM7S/interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag;
2525

2626
void rt_hw_interrupt_handler(int vector)
2727
{
28-
rt_kprintf("Unhandled interrupt %d occured!!!\n", vector);
28+
rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector);
2929
}
3030

3131
/**

libcpu/arm/AT91SAM7X/interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag;
3030

3131
static void rt_hw_interrupt_handler(int vector, void *param)
3232
{
33-
rt_kprintf("Unhandled interrupt %d occured!!!\n", vector);
33+
rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector);
3434
}
3535

3636
/**

libcpu/arm/AT91SAM7X/trap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void rt_hw_trap_fiq(void)
4141
extern struct rt_thread* rt_current_thread;
4242
void rt_hw_trap_abort(void)
4343
{
44-
rt_kprintf("Abort occured!!! Thread [%s] suspended.\n",rt_current_thread->parent.name);
44+
rt_kprintf("Abort occurred!!! Thread [%s] suspended.\n",rt_current_thread->parent.name);
4545
rt_thread_suspend(rt_current_thread);
4646
rt_schedule();
4747

libcpu/arm/cortex-r4/interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag;
3636

3737
static void rt_hw_int_not_handle(int vector, void *param)
3838
{
39-
rt_kprintf("Unhandled interrupt %d occured!!!\n", vector);
39+
rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector);
4040
}
4141

4242
#define vimRAM (0xFFF82000U)

libcpu/arm/lpc214x/cpuport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag;
7474

7575
void rt_hw_interrupt_handler(int vector, void *param)
7676
{
77-
rt_kprintf("Unhandled interrupt %d occured!!!\n", vector);
77+
rt_kprintf("Unhandled interrupt %d occurred!!!\n", vector);
7878
}
7979

8080
/**

0 commit comments

Comments
 (0)