Fix typos in comments and documentation (#750)

* Fix typos in comments and documentation
This commit is contained in:
hartmannathan 2020-04-08 08:45:35 -04:00 committed by GitHub
parent 9c7841aff1
commit bfc153ca27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 133 additions and 134 deletions

View file

@ -268,7 +268,7 @@ arch/xtensa
LX6 DPU support:
arch/xtensa/include/lx6 and arch/xtensa/xtensa/lx6
Expressif ESP32 implementation of the LX6 DPU:
Espressif ESP32 implementation of the LX6 DPU:
arch/xtensa/include/esp32 and arch/xtensa/xtensa/esp32
arch/z16 - ZiLOG 16-bit processors

View file

@ -605,7 +605,7 @@ void imxrt_clockconfig(void)
reg |= IMXRT_LPI2C_CLK_SELECT;
putreg32(reg, IMXRT_CCM_CSCDR2);
/* Set LPI2C divider to 5 for 12 Mhz */
/* Set LPI2C divider to 5 for 12 MHz */
reg = getreg32(IMXRT_CCM_CSCDR2);
reg &= ~CCM_CSCDR2_LPI2C_CLK_PODF_MASK;

View file

@ -197,7 +197,7 @@
# define SYSCON_FLASHCFG_TIM_3 (2 << SYSCON_FLASHCFG_TIM_SHIFT) /* 3 CPU clock <= 60 MHz CPU clock */
# define SYSCON_FLASHCFG_TIM_4 (3 << SYSCON_FLASHCFG_TIM_SHIFT) /* 4 CPU clock <= 80 MHz CPU clock */
# define SYSCON_FLASHCFG_TIM_5 (4 << SYSCON_FLASHCFG_TIM_SHIFT) /* 5 CPU clock <= 100 MHz CPU clock
* (Up to 120 Mhz for LPC1759/69 only */
* (Up to 120 MHz for LPC1759/69 only */
# define SYSCON_FLASHCFG_TIM_6 (5 << SYSCON_FLASHCFG_TIM_SHIFT) /* "safe" setting for any conditions */
/* Bits 16-31: Reserved */

View file

@ -227,7 +227,7 @@
# define SYSCON_FLASHCFG_TIM_2 (2 << SYSCON_FLASHCFG_TIM_SHIFT) /* 3 CPU clock <= 60 MHz CPU clock */
# define SYSCON_FLASHCFG_TIM_3 (3 << SYSCON_FLASHCFG_TIM_SHIFT) /* 4 CPU clock <= 80 MHz CPU clock */
# define SYSCON_FLASHCFG_TIM_4 (4 << SYSCON_FLASHCFG_TIM_SHIFT) /* 5 CPU clock <= 100 MHz CPU clock
* (Up to 120 Mhz for LPC1788x) */
* (Up to 120 MHz for LPC1788x) */
# define SYSCON_FLASHCFG_TIM_5 (5 << SYSCON_FLASHCFG_TIM_SHIFT) /* "safe" setting for any conditions */
/* Bits 16-31: Reserved */
/* Memory Mapping Control register (MEMMAP - 0x400F C040) */

View file

@ -1500,7 +1500,7 @@ Nandflash Controller */
#define CGU_HPFINSEL_SHIFT (0) /* Bits 0-3: Select input to high HPPLL0 */
#define CGU_HPFINSEL_MASK (15 << CGU_HPFINSEL_SHIFT)
# define CGU_HPFINSEL_FFAST (CGU_FREQIN_FFAST << CGU_HPFINSEL_SHIFT) /* ffast (12 Mhz) */
# define CGU_HPFINSEL_FFAST (CGU_FREQIN_FFAST << CGU_HPFINSEL_SHIFT) /* ffast (12 MHz) */
# define CGU_HPFINSEL_I2SRXBCK0 (CGU_FREQIN_I2SRXBCK0 << CGU_HPFINSEL_SHIFT) /* I2SRX_BCK0 */
# define CGU_HPFINSEL_I2SRXWS0 (CGU_FREQIN_I2SRXWS0 << CGU_HPFINSEL_SHIFT) /* I2SRX_WS0 */
# define CGU_HPFINSEL_I2SRXBCK1 (CGU_FREQIN_I2SRXBCK1 << CGU_HPFINSEL_SHIFT) /* I2SRX_BCK1 */

View file

@ -304,11 +304,11 @@ typedef struct SPIFI_DEVICE_DATA {
uint16_t subBlkSize; /**< size of sub-block */
uint16_t pageSize; /**< page size */
uint32_t maxReadSize; /**< max read allowed in one operation */
uint8_t maxClkRate; /**< (in Mhz) maximum clock rate (max common speed) */
uint8_t maxReadRate; /**< (in Mhz) max clock rate for read (driver may utilize fast read) */
uint8_t maxHSReadRate; /**< (in Mhz) max clock rate for quad / dual read */
uint8_t maxProgramRate; /**< (in Mhz) max clock rate for program */
uint8_t maxHSProgramRate; /**< (in Mhz) max clock rate for quad program */
uint8_t maxClkRate; /**< (in MHz) maximum clock rate (max common speed) */
uint8_t maxReadRate; /**< (in MHz) max clock rate for read (driver may utilize fast read) */
uint8_t maxHSReadRate; /**< (in MHz) max clock rate for quad / dual read */
uint8_t maxProgramRate; /**< (in MHz) max clock rate for program */
uint8_t maxHSProgramRate; /**< (in MHz) max clock rate for quad program */
uint8_t initDeInitFxId; /**< init/DeInit fx_id */
uint8_t clearStatusFxId; /**< clearStatus fx_id */
uint8_t getStatusFxId; /**< getStatus fx_id */

View file

@ -1352,7 +1352,7 @@ SPIFI_FAM_NODE_T *spifi_REG_FAMILY_CommonCommandSet(void)
0x1000, /* sub-block size */
0x100, /* page size */
MAX_SINGLE_READ, /* max single read bytes */
104, /* max clock rate in Mhz */
104, /* max clock rate in MHz */
104, /* max read clock rate in MHz */
104, /* max high speed read clock rate in MHz */
104, /* max program clock rate in MHz */

View file

@ -177,8 +177,8 @@ enum scg_sosc_gain_e
enum scg_sosc_range_e
{
SCG_SOSC_RANGE_MID = 2, /* Medium frequency range selected for the crystal OSC (4 Mhz to 8 Mhz). */
SCG_SOSC_RANGE_HIGH = 3, /* High frequency range selected for the crystal OSC (8 Mhz to 40 Mhz). */
SCG_SOSC_RANGE_MID = 2, /* Medium frequency range selected for the crystal OSC (4 MHz to 8 MHz). */
SCG_SOSC_RANGE_HIGH = 3, /* High frequency range selected for the crystal OSC (8 MHz to 40 MHz). */
};
struct scg_sosc_config_s

View file

@ -1221,7 +1221,7 @@ int pmecc_configure(struct sam_nandcs_s *priv, bool protected)
* case, the ECC computation takes into account the whole spare area
* minus the ECC area in the ECC computation operation
*
* NOTE: At 133 Mhz, the clkctrl field must be programmed with 2,
* NOTE: At 133 MHz, the clkctrl field must be programmed with 2,
* indicating that the setup time is 3 clock cycles.
*/

View file

@ -266,13 +266,13 @@ static inline void sam_pmcsetup(void)
if ((getreg32(SAM_PMC_MCKR) & PMC_MCKR_PLLADIV2) != 0)
{
/* Divider = 480 Mhz / 2 / 48 Mhz = 5 */
/* Divider = 480 MHz / 2 / 48 MHz = 5 */
regval |= PMC_USB_USBDIV(4);
}
else
{
/* Divider = 480 Mhz / 1 / 48 Mhz = 10 */
/* Divider = 480 MHz / 1 / 48 MHz = 10 */
regval |= PMC_USB_USBDIV(9);
}

View file

@ -9488,7 +9488,7 @@ config STM32_USB_ITRMP
The legacy USB in the F1 series shared interrupt lines with USB
device and CAN1. In the F3 series, a hardware options was added to
either retain the legacy F1 behavior or to map the USB interrupts to
there own dedicated vectors. The option is available only for the
their own dedicated vectors. The option is available only for the
F3 family and selects the use of the dedicated USB interrupts.
menu "CAN driver configuration"

View file

@ -756,7 +756,7 @@ static void stm32_stdclockconfig(void)
#if defined(CONFIG_STM32_STM32F429) || defined(CONFIG_STM32_STM32F446) || \
defined(CONFIG_STM32_STM32F469)
/* Enable the Over-drive to extend the clock frequency to 180 Mhz */
/* Enable the Over-drive to extend the clock frequency to 180 MHz */
regval = getreg32(STM32_PWR_CR);
regval |= PWR_CR_ODEN;

View file

@ -806,9 +806,9 @@ static void stm32_stdclockconfig(void)
/* Over-drive is needed if
* - Voltage output scale 1 mode is selected and SYSCLK frequency is
* over 180 Mhz.
* over 180 MHz.
* - Voltage output scale 2 mode is selected and SYSCLK frequence is
* over 168 Mhz.
* over 168 MHz.
*/
if ((STM32_PWR_VOS_SCALE == PWR_CR1_VOS_SCALE_1 &&
@ -817,7 +817,7 @@ static void stm32_stdclockconfig(void)
STM32_SYSCLK_FREQUENCY > 168000000))
{
/* Enable the Over-drive to extend the clock frequency up to
* 216 Mhz.
* 216 MHz.
*/
regval = getreg32(STM32_PWR_CR1);

View file

@ -803,9 +803,9 @@ static void stm32_stdclockconfig(void)
/* Over-drive is needed if
* - Voltage output scale 1 mode is selected and SYSCLK frequency is
* over 180 Mhz.
* over 180 MHz.
* - Voltage output scale 2 mode is selected and SYSCLK frequence is
* over 168 Mhz.
* over 168 MHz.
*/
if ((STM32_PWR_VOS_SCALE == PWR_CR1_VOS_SCALE_1 &&
@ -814,7 +814,7 @@ static void stm32_stdclockconfig(void)
STM32_SYSCLK_FREQUENCY > 168000000))
{
/* Enable the Over-drive to extend the clock frequency up to
* 216 Mhz.
* 216 MHz.
*/
regval = getreg32(STM32_PWR_CR1);

View file

@ -820,9 +820,9 @@ static void stm32_stdclockconfig(void)
/* Over-drive is needed if
* - Voltage output scale 1 mode is selected and SYSCLK frequency is
* over 180 Mhz.
* over 180 MHz.
* - Voltage output scale 2 mode is selected and SYSCLK frequence is
* over 168 Mhz.
* over 168 MHz.
*/
if ((STM32_PWR_VOS_SCALE == PWR_CR1_VOS_SCALE_1 &&
@ -831,7 +831,7 @@ static void stm32_stdclockconfig(void)
STM32_SYSCLK_FREQUENCY > 168000000))
{
/* Enable the Over-drive to extend the clock frequency up to
* 216 Mhz.
* 216 MHz.
*/
regval = getreg32(STM32_PWR_CR1);

View file

@ -818,7 +818,7 @@ static void stm32_stdclockconfig(void)
/* Over-drive is needed if
* - Voltage output scale 1 mode is selected and SYSCLK frequency is
* over 400 Mhz.
* over 400 MHz.
*/
if ((STM32_PWR_VOS_SCALE == PWR_D3CR_VOS_SCALE_1) &&
@ -830,7 +830,7 @@ static void stm32_stdclockconfig(void)
regval |= RCC_APB4ENR_SYSCFGEN;
putreg32(regval, STM32_RCC_APB4ENR);
/* Enable Overdrive to extend the clock frequency up to 480 Mhz. */
/* Enable Overdrive to extend the clock frequency up to 480 MHz. */
regval = getreg32(STM32_SYSCFG_PWRCR);
regval |= SYSCFG_PWRCR_ODEN;

View file

@ -814,7 +814,7 @@ static void stm32_stdclockconfig(void)
/* Over-drive is needed if
* - Voltage output scale 1 mode is selected and SYSCLK frequency is
* over 400 Mhz.
* over 400 MHz.
*/
if ((STM32_PWR_VOS_SCALE == PWR_D3CR_VOS_SCALE_1) &&
@ -826,7 +826,7 @@ static void stm32_stdclockconfig(void)
regval |= RCC_APB4ENR_SYSCFGEN;
putreg32(regval, STM32_RCC_APB4ENR);
/* Enable Overdrive to extend the clock frequency up to 480 Mhz. */
/* Enable Overdrive to extend the clock frequency up to 480 MHz. */
regval = getreg32(STM32_SYSCFG_PWRCR);
regval |= SYSCFG_PWRCR_ODEN;

View file

@ -79,7 +79,7 @@
* Fast-mode (up to 400 kHz)
* fI2CCLK clock source selection is based on RCC_CCIPR_I2CxSEL
* being set to PCLK and the calculations are based on PCLK frequency
* of 80 Mhz
* of 80 MHz
*
* - Multiple instances (shared bus)
* - Interrupt based operation
@ -100,7 +100,7 @@
* - Wakeup from Stop mode
* - More effective error reporting to higher layers
* - Slave operation
* - Support of fI2CCLK frequencies other than 80 Mhz and other clock sources
* - Support of fI2CCLK frequencies other than 80 MHz and other clock sources
* - Polled operation (code present but untested)
* - SMBus support
* - Multi-master support
@ -1349,7 +1349,7 @@ static void stm32l4_i2c_setclock(FAR struct stm32l4_i2c_priv_s *priv,
/* Default timing calculations from original STM32L4 driver: */
/* The Speed and timing calculation are based on the following
* fI2CCLK = PCLK and is 80 Mhz
* fI2CCLK = PCLK and is 80 MHz
* Analog filter is on,
* Digital filter off
* Rise Time is 120 ns and fall is 10 ns
@ -1400,7 +1400,7 @@ static void stm32l4_i2c_setclock(FAR struct stm32l4_i2c_priv_s *priv,
else if (i2cclk_mhz == 120)
{
/* The Speed and timing calculation are based on the following
* fI2CCLK = PCLK and is 120 Mhz
* fI2CCLK = PCLK and is 120 MHz
* Analog filter is on,
* Digital filter off
* Rise Time is 120 ns and fall is 25 ns
@ -2378,7 +2378,7 @@ static int stm32l4_i2c_init(FAR struct stm32l4_i2c_priv_s *priv)
/* TODO:
* - Provide means to set peripheral clock source via RCC_CCIPR_I2CxSEL
* - Make clock source Kconfigurable (currently PCLK = 80 Mhz)
* - Make clock source Kconfigurable (currently PCLK = 80 MHz)
*/
/* Force a frequency update */

View file

@ -772,7 +772,7 @@ static void stm32l4_stdclockconfig(void)
/* Switch to Range 1 boost mode to support system frequencies up to
* 120 MHz.
* If any PLL has output frequency higher than 80 Mhz, Range 1 boost
* If any PLL has output frequency higher than 80 MHz, Range 1 boost
* mode needs to be used (RM0432, "6.2.9 Clock source frequency versus
* voltage scaling").
* Range 2 is not supported.

View file

@ -2927,7 +2927,7 @@ static inline int pic32mx_phyinit(struct pic32mx_driver_s *priv)
/* The RMII/MII of operation can be selected by strap options or register
* control (using the RBR register). For RMII mode, it is required to use
* the strap option, since it requires a 50 MHz clock instead of the normal
* 25 Mhz.
* 25 MHz.
*/
#endif

View file

@ -3094,7 +3094,7 @@ static inline int pic32mz_phyinit(struct pic32mz_driver_s *priv)
/* The RMII/MII of operation can be selected by strap options or register
* control (using the RBR register). For RMII mode, it is required to use
* the strap option, since it requires a 50 MHz clock instead of the normal
* 25 Mhz.
* 25 MHz.
*/
#endif

View file

@ -217,7 +217,7 @@ static inline void pic32mz_prefetch(void)
}
else
{
/* For devices with 252 Mhz SYSCLK */
/* For devices with 252 MHz SYSCLK */
nwaits = 4;
regval = PRECON_PREFEN_CPUID;

View file

@ -10,7 +10,7 @@ choice
default ARCH_CHIP_ESP32
config ARCH_CHIP_ESP32
bool "Expressif ESP32"
bool "Espressif ESP32"
select ARCH_FAMILY_LX6
select XTENSA_HAVE_INTERRUPTS
select ARCH_HAVE_MULTICPU
@ -18,7 +18,7 @@ config ARCH_CHIP_ESP32
select ARCH_TOOLCHAIN_GNU
select ARCH_GLOBAL_IRQDISABLE
---help---
The ESP32 is a dual-core system from Expressif with two Harvard
The ESP32 is a dual-core system from Espressif with two Harvard
architecture Xtensa LX6 CPUs. All embedded memory, external memory
and peripherals are located on the data bus and/or the instruction
bus of these CPUs. With some minor exceptions, the address mapping

View file

@ -6,7 +6,7 @@
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Derives from software originally provided by Expressif Systems:
* Derives from software originally provided by Espressif Systems:
*
* Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
*

View file

@ -6,7 +6,7 @@
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Derives from software originally provided by Expressif Systems:
* Derives from software originally provided by Espressif Systems:
*
* Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
*

View file

@ -6,7 +6,7 @@
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Derivies from sample code provided by Expressif Systems:
* Derives from sample code provided by Espressif Systems:
*
* Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
*

View file

@ -6,7 +6,7 @@
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Derivies in part from sample code provided by Expressif Systems:
* Derives in part from sample code provided by Espressif Systems:
*
* Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
*

View file

@ -6,7 +6,7 @@
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Derivies from sample code provided by Expressif Systems:
* Derives from sample code provided by Espressif Systems:
*
* Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
*

View file

@ -6,7 +6,7 @@
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Derivies from sample code provided by Expressif Systems:
* Derives from sample code provided by Espressif Systems:
*
* Copyright 2010-2016 Espressif Systems (Shanghai) PTE LTD
*