diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/i2c/dev_i2c_bit_ops.c | 2 | ||||
| -rw-r--r-- | components/drivers/spi/dev_spi_msd.c | 2 | ||||
| -rw-r--r-- | components/finsh/msh.c | 2 | ||||
| -rw-r--r-- | components/lwp/lwp_args.c | 10 |
4 files changed, 8 insertions, 8 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; } |
