chore: fix typo in components and libcpu

This commit is contained in:
theqengineer
2026-02-13 15:04:27 +08:00
committed by Rbb666
parent b0c55f5bf5
commit 85b656b14d
23 changed files with 29 additions and 29 deletions

View File

@@ -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"));

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
}