typos: fix typos in many files
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
c04fbb0365
commit
6c2b40f98a
@ -199,7 +199,7 @@ tc_handler_t sam_tc_attach(TC_HANDLE handle, tc_handler_t handler,
|
||||
* Name: sam_tc_getpending
|
||||
*
|
||||
* Description:
|
||||
* Return the current contents of the interrutp status register, clearing
|
||||
* Return the current contents of the interrupt status register, clearing
|
||||
* all pending interrupts.
|
||||
*
|
||||
* Input Parameters:
|
||||
|
@ -227,7 +227,7 @@ tc_handler_t sam_tc_attach(TC_HANDLE handle, tc_handler_t handler,
|
||||
* Name: sam_tc_getpending
|
||||
*
|
||||
* Description:
|
||||
* Return the current contents of the interrutp status register, clearing
|
||||
* Return the current contents of the interrupt status register, clearing
|
||||
* all pending interrupts.
|
||||
*
|
||||
* Input Parameters:
|
||||
|
@ -614,7 +614,7 @@ config SAMV7_QSPI_SPI_MODE
|
||||
default n
|
||||
depends on SAMV7_QSPI_IS_SPI
|
||||
---help---
|
||||
Use Quad SPI in SPI mode
|
||||
Use Quad SPI in SPI mode
|
||||
|
||||
endif
|
||||
|
||||
|
@ -417,7 +417,7 @@
|
||||
#define TC_CMR_BURST_SHIFT (4) /* Bits 4-5: Burst Signal Selection */
|
||||
#define TC_CMR_BURST_MASK (3 << TC_CMR_BURST_SHIFT)
|
||||
# define TC_CMR_BURST_NONE (0 << TC_CMR_BURST_SHIFT) /* Clock not gated by external signal */
|
||||
# define TC_CMR_BURST_XC0 (1 << TC_CMR_BURST_SHIFT) /* XXC0 ANDed with clock */
|
||||
# define TC_CMR_BURST_XC0 (1 << TC_CMR_BURST_SHIFT) /* XC0 ANDed with clock */
|
||||
# define TC_CMR_BURST_XC1 (2 << TC_CMR_BURST_SHIFT) /* XC1 ANDed with clock */
|
||||
# define TC_CMR_BURST_XC2 (3 << TC_CMR_BURST_SHIFT) /* XC2 ANDed with clock */
|
||||
|
||||
@ -633,7 +633,7 @@
|
||||
#define TC_QINT_DIRCHG (1 << 1) /* Bit 1: Direction change */
|
||||
#define TC_QINT_QERR (1 << 2) /* Bit 2: Quadrature ERRor */
|
||||
|
||||
#define TC_QISR_DIRR (1 << 8) /* Bit 8: Direction */
|
||||
#define TC_QISR_DIR (1 << 8) /* Bit 8: Direction */
|
||||
|
||||
/* Fault Mode Register */
|
||||
|
||||
|
@ -796,7 +796,7 @@ static int stm32_qe_index_irq(int irq, FAR void *context, FAR void *arg)
|
||||
|
||||
if (valid == true)
|
||||
{
|
||||
/* Force postion to index offset */
|
||||
/* Force position to index offset */
|
||||
|
||||
stm32_putreg32(priv, STM32_GTIM_CNT_OFFSET, priv->index_offset);
|
||||
}
|
||||
@ -1296,7 +1296,7 @@ static int stm32_reset(FAR struct qe_lowerhalf_s *lower)
|
||||
* Name: stm32_setindex
|
||||
*
|
||||
* Description:
|
||||
* Set the index pin postion
|
||||
* Set the index pin position
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@ -1320,9 +1320,7 @@ static int stm32_setindex(FAR struct qe_lowerhalf_s *lower, uint32_t pos)
|
||||
goto errout;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_STM32_QENCODER_INDEX_PIN
|
||||
priv->index_offset = pos;
|
||||
#endif
|
||||
|
||||
errout:
|
||||
return ret;
|
||||
|
@ -346,7 +346,7 @@ static int tiva_qe_reset(FAR struct qe_lowerhalf_s *lower)
|
||||
* Name: tiva_qe_position
|
||||
*
|
||||
* Description:
|
||||
* Return the position mesaured by QEI.
|
||||
* Return the position measured by QEI.
|
||||
*
|
||||
* Input Parameters:
|
||||
* lower - A reference to the lower half QEI driver state structure
|
||||
@ -426,7 +426,7 @@ static int tiva_qe_ioctl(FAR struct qe_lowerhalf_s *lower, int cmd,
|
||||
* Name: tiva_qe_direction
|
||||
*
|
||||
* Description:
|
||||
* Return the direction mesaured by QEI.
|
||||
* Return the direction measured by QEI.
|
||||
*
|
||||
* Input Parameters:
|
||||
* qe - A reference to the TIVA QEI structure
|
||||
@ -457,7 +457,7 @@ static int tiva_qe_direction(FAR struct tiva_qe_s *qe, unsigned long *dir)
|
||||
* Name: tiva_qe_direction
|
||||
*
|
||||
* Description:
|
||||
* Return the velocity (A/B pulses per second) mesaured by QEI.
|
||||
* Return the velocity (A/B pulses per second) measured by QEI.
|
||||
*
|
||||
* Input Parameters:
|
||||
* qe - A reference to the TIVA QEI structure
|
||||
|
@ -190,7 +190,7 @@ static void k28_sdhc_enable(FAR const struct automount_lower_s *lower,
|
||||
|
||||
if (enable && state->pending)
|
||||
{
|
||||
/* Yes.. perform the fake interrupt if the interrutp is attached */
|
||||
/* Yes.. perform the fake interrupt if the interrupt is attached */
|
||||
|
||||
if (state->handler)
|
||||
{
|
||||
|
@ -190,7 +190,7 @@ static void k64_enable(FAR const struct automount_lower_s *lower,
|
||||
|
||||
if (enable && state->pending)
|
||||
{
|
||||
/* Yes.. perform the fake interrupt if the interrutp is attached */
|
||||
/* Yes.. perform the fake interrupt if the interrupt is attached */
|
||||
|
||||
if (state->handler)
|
||||
{
|
||||
|
@ -190,7 +190,7 @@ static void k66_enable(FAR const struct automount_lower_s *lower,
|
||||
|
||||
if (enable && state->pending)
|
||||
{
|
||||
/* Yes.. perform the fake interrupt if the interrutp is attached */
|
||||
/* Yes.. perform the fake interrupt if the interrupt is attached */
|
||||
|
||||
if (state->handler)
|
||||
{
|
||||
|
@ -178,7 +178,7 @@ static void k64_enable(FAR const struct automount_lower_s *lower,
|
||||
|
||||
if (enable && state->pending)
|
||||
{
|
||||
/* Yes.. perform the fake interrupt if the interrutp is attached */
|
||||
/* Yes.. perform the fake interrupt if the interrupt is attached */
|
||||
|
||||
if (state->handler)
|
||||
{
|
||||
|
@ -214,7 +214,7 @@ static void sam_enable(FAR const struct automount_lower_s *lower,
|
||||
|
||||
if (enable && state->pending)
|
||||
{
|
||||
/* Yes.. perform the fake interrupt if the interrutp is attached */
|
||||
/* Yes.. perform the fake interrupt if the interrupt is attached */
|
||||
|
||||
if (state->handler)
|
||||
{
|
||||
|
@ -197,7 +197,7 @@ static void sam_enable(FAR const struct automount_lower_s *lower,
|
||||
|
||||
if (enable && state->pending)
|
||||
{
|
||||
/* Yes.. perform the fake interrupt if the interrutp is attached */
|
||||
/* Yes.. perform the fake interrupt if the interrupt is attached */
|
||||
|
||||
if (state->handler)
|
||||
{
|
||||
|
@ -184,7 +184,7 @@ static void sam_enable(FAR const struct automount_lower_s *lower,
|
||||
|
||||
if (enable && state->pending)
|
||||
{
|
||||
/* Yes.. perform the fake interrupt if the interrutp is attached */
|
||||
/* Yes.. perform the fake interrupt if the interrupt is attached */
|
||||
|
||||
if (state->handler)
|
||||
{
|
||||
|
@ -229,7 +229,7 @@ button.
|
||||
SPI Slave
|
||||
=========
|
||||
|
||||
An interrutp driven SPI slave driver as added on 2015-08-09 but has not
|
||||
An interrupt driven SPI slave driver as added on 2015-08-09 but has not
|
||||
been verified as of this writing. See discussion in include/nuttx/spi/slave.h
|
||||
and below.
|
||||
|
||||
|
@ -752,7 +752,7 @@ MCAN1 Loopback Test
|
||||
SPI Slave
|
||||
=========
|
||||
|
||||
An interrutp driven SPI slave driver as added on 2015-08-09 but has not
|
||||
An interrupt driven SPI slave driver as added on 2015-08-09 but has not
|
||||
been verified as of this writing. See discussion in include/nuttx/spi/slave.h
|
||||
and below.
|
||||
|
||||
|
@ -1352,7 +1352,7 @@ MCAN1 Loopback Test
|
||||
SPI Slave
|
||||
=========
|
||||
|
||||
An interrutp driven SPI slave driver as added on 2015-08-09 but has not
|
||||
An interrupt driven SPI slave driver as added on 2015-08-09 but has not
|
||||
been verified as of this writing. See discussion in include/nuttx/spi/slave.h
|
||||
and below.
|
||||
|
||||
|
@ -210,7 +210,7 @@ static void stm32_enable(FAR const struct automount_lower_s *lower,
|
||||
|
||||
if (enable && state->pending)
|
||||
{
|
||||
/* Yes.. perform the fake interrupt if the interrutp is attached */
|
||||
/* Yes.. perform the fake interrupt if the interrupt is attached */
|
||||
|
||||
if (state->handler)
|
||||
{
|
||||
|
@ -104,7 +104,6 @@ static void dac_shutdown(FAR struct dac_dev_s *dev);
|
||||
static void dac_txint(FAR struct dac_dev_s *dev, bool enable);
|
||||
static int dac_send(FAR struct dac_dev_s *dev, FAR struct dac_msg_s *msg);
|
||||
static int dac_ioctl(FAR struct dac_dev_s *dev, int cmd, unsigned long arg);
|
||||
static int dac_interrupt(int irq, void *context, FAR void *arg);
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
|
@ -46,7 +46,7 @@ enum hall3_120deg_position_e
|
||||
HALL3_120DEG_POS_6 = 0b101
|
||||
};
|
||||
|
||||
/* 60-degree Hall effect sensors postions */
|
||||
/* 60-degree Hall effect sensors positions */
|
||||
|
||||
enum hall3_60deg_position_e
|
||||
{
|
||||
|
@ -50,8 +50,10 @@
|
||||
* Argument: int32_t pointer to the location to return the position.
|
||||
* QEIOC_RESET - Reset the position to zero.
|
||||
* Argument: None
|
||||
* QEIOC_POSMAX - Set the maximum position for the encoder.
|
||||
* QEIOC_SETPOSMAX - Set the maximum position for the encoder.
|
||||
* Argument: uint32_t maximum position
|
||||
* QEIOC_SETINDEX - Set the index position for the encoder.
|
||||
* Argument: uint32_t index position
|
||||
*/
|
||||
|
||||
#define QEIOC_POSITION _QEIOC(0x0001) /* Arg: int32_t* pointer */
|
||||
|
Loading…
Reference in New Issue
Block a user