mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-24 17:33:58 +08:00
chore: fix typo in components and libcpu
This commit is contained in:
@@ -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"));
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user