mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 06:18:40 +08:00
Fix typos in comments
This commit is contained in:
parent
6eae882cbe
commit
15b78abccf
61 changed files with 81 additions and 99 deletions
|
@ -13146,7 +13146,7 @@ Additional new features and extended functionality:
|
|||
- Fonts: Add support for Tom Thumb small mono-space font. From Alan
|
||||
Carvalho de Assis.
|
||||
- Graphics: Separated of font cache from graphics/nxterm. Now in
|
||||
libnx/nxfronts where it can be shared with other grapics
|
||||
libnx/nxfronts where it can be shared with other graphics
|
||||
applications.
|
||||
|
||||
* Networking/Network Drivers:
|
||||
|
|
|
@ -635,7 +635,7 @@ __start:
|
|||
/* Text-section constants:
|
||||
*
|
||||
* _sbss is the start of the BSS region (see ld.script)
|
||||
* _ebss is the end of the BSS regsion (see ld.script)
|
||||
* _ebss is the end of the BSS region (see ld.script)
|
||||
*
|
||||
* The idle task stack starts at the end of BSS and is of size
|
||||
* CONFIG_IDLETHREAD_STACKSIZE. The heap continues from there until the
|
||||
|
|
|
@ -151,7 +151,7 @@ __start:
|
|||
|
||||
/* Variables:
|
||||
* _sbss is the start of the BSS region (see ld.script)
|
||||
* _ebss is the end of the BSS regsion (see ld.script)
|
||||
* _ebss is the end of the BSS region (see ld.script)
|
||||
* The idle task stack starts at the end of BSS and is
|
||||
* of size CONFIG_IDLETHREAD_STACKSIZE. The heap continues
|
||||
* from there until the end of memory. See g_idle_topstack
|
||||
|
|
|
@ -483,7 +483,7 @@ arm_data_initialize:
|
|||
/* .text Data:
|
||||
*
|
||||
* _sbss is the start of the BSS region (see linker script)
|
||||
* _ebss is the end of the BSS regsion (see linker script)
|
||||
* _ebss is the end of the BSS region (see linker script)
|
||||
*
|
||||
* Typical Configuration:
|
||||
* The idle task stack starts at the end of BSS and is of size
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
/* _sbss is the start of the BSS region (see the linker script) _ebss is the
|
||||
* end of the BSS regsion (see the linker script). The idle task stack starts
|
||||
* end of the BSS region (see the linker script). The idle task stack starts
|
||||
* at the end of BSS and is of size CONFIG_IDLETHREAD_STACKSIZE. The IDLE
|
||||
* thread is the thread that the system boots on and, eventually, becomes the
|
||||
* idle, do nothing task that runs only when there is nothing else to run.
|
||||
|
|
|
@ -1111,7 +1111,7 @@ int cxd56_pmic_getrechargevol(FAR int *mv)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* Convert regsiter value to voltage */
|
||||
/* Convert register value to voltage */
|
||||
|
||||
switch (val)
|
||||
{
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* TOPREG VBUS regsiter */
|
||||
/* TOPREG VBUS register */
|
||||
|
||||
#define CLR_EDGE (1 << 9)
|
||||
#define CLR_EN (1 << 8)
|
||||
|
|
|
@ -5202,7 +5202,7 @@ FAR struct usbhost_connection_s *imxrt_ehci_initialize(int controller)
|
|||
|
||||
imxrt_putreg(regval, &HCOR->usbcmd);
|
||||
|
||||
/* Start the host controller by setting the RUN bit in the USBCMD regsiter. */
|
||||
/* Start the host controller by setting the RUN bit in the USBCMD register. */
|
||||
|
||||
regval = imxrt_getreg(&HCOR->usbcmd);
|
||||
regval |= EHCI_USBCMD_RUN;
|
||||
|
|
|
@ -338,7 +338,7 @@ void up_irqinitialize(void)
|
|||
*
|
||||
* 0 -> 32 interrupt lines, 1 enable register, 8 priority registers
|
||||
* 1 -> 64 " " " ", 2 enable registers, 16 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable regsiters, 24 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable registers, 24 priority registers
|
||||
* ...
|
||||
*/
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
#define LPC17_40_LCD_CRSR_PAL1_OFFSET (0x0c0c) /* Cursor Palette register 1 */
|
||||
#define LPC17_40_LCD_CRSR_XY_OFFSET (0x0c10) /* Cursor XY Position register */
|
||||
#define LPC17_40_LCD_CRSR_CLIP_OFFSET (0x0c14) /* Cursor Clip Position register */
|
||||
#define LPC17_40_LCD_CRSR_INTMSK_OFFSET (0x0c20) /* Cursor Interrupt Mask regsiter */
|
||||
#define LPC17_40_LCD_CRSR_INTMSK_OFFSET (0x0c20) /* Cursor Interrupt Mask register */
|
||||
#define LPC17_40_LCD_CRSR_INTCLR_OFFSET (0x0c24) /* Cursor Interrupt Clear register */
|
||||
#define LPC17_40_LCD_CRSR_INTRAW_OFFSET (0x0c28) /* Cursor Raw Interrupt Status register */
|
||||
#define LPC17_40_LCD_CRSR_INTSTAT_OFFSET (0x0c2c) /* Cursor Masked Interrupt Status register */
|
||||
|
|
|
@ -307,7 +307,7 @@ void up_irqinitialize(void)
|
|||
*
|
||||
* 0 -> 32 interrupt lines, 1 enable register, 8 priority registers
|
||||
* 1 -> 64 " " " ", 2 enable registers, 16 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable regsiters, 24 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable registers, 24 priority registers
|
||||
* ...
|
||||
*/
|
||||
|
||||
|
|
|
@ -601,7 +601,7 @@ __start:
|
|||
|
||||
/* Variables:
|
||||
* _sbss is the start of the BSS region (see ld.script)
|
||||
* _ebss is the end of the BSS regsion (see ld.script)
|
||||
* _ebss is the end of the BSS region (see ld.script)
|
||||
* The idle task stack starts at the end of BSS and is
|
||||
* of size CONFIG_IDLETHREAD_STACKSIZE. The heap continues
|
||||
* from there until the end of memory. See g_idle_topstack
|
||||
|
|
|
@ -202,7 +202,7 @@ __start:
|
|||
|
||||
/* Variables:
|
||||
* _sbss is the start of the BSS region (see ld.script)
|
||||
* _ebss is the end of the BSS regsion (see ld.script)
|
||||
* _ebss is the end of the BSS region (see ld.script)
|
||||
* The idle task stack starts at the end of BSS and is
|
||||
* of size CONFIG_IDLETHREAD_STACKSIZE. The heap continues
|
||||
* from there until the end of memory. See g_idle_topstack
|
||||
|
|
|
@ -5243,7 +5243,7 @@ FAR struct usbhost_connection_s *lpc31_ehci_initialize(int controller)
|
|||
|
||||
lpc31_putreg(regval, &HCOR->usbcmd);
|
||||
|
||||
/* Start the host controller by setting the RUN bit in the USBCMD regsiter. */
|
||||
/* Start the host controller by setting the RUN bit in the USBCMD register. */
|
||||
|
||||
regval = lpc31_getreg(&HCOR->usbcmd);
|
||||
regval |= EHCI_USBCMD_RUN;
|
||||
|
|
|
@ -47,18 +47,6 @@
|
|||
#include "up_arch.h"
|
||||
#include "lpc31_cgudrvr.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
@ -71,8 +59,7 @@
|
|||
* register (or ESRNDX_INVALID if there is no ESR associated with
|
||||
* this clock ID). Indexing of ESRs differs slightly from the clock
|
||||
* ID: There are 92 clock IDs but only 89 ESR regisers. There are no
|
||||
* ESR registers for :
|
||||
*
|
||||
* ESR registers for:
|
||||
*
|
||||
* CLKID_I2SRXBCK0 Clock ID 87: I2SRX_BCK0
|
||||
* CLKID_I2SRXBCK1, Clock ID 88: I2SRX_BCK1
|
||||
|
@ -87,11 +74,10 @@ int lpc31_esrndx(enum lpc31_clockid_e clkid)
|
|||
{
|
||||
int esrndx = (int)clkid;
|
||||
|
||||
/* There ar 89 Enable Select Registers (ESR). Indexing for these
|
||||
/* There are 89 Enable Select Registers (ESR). Indexing for these
|
||||
* registers is identical to indexing to other registers (like PCR),
|
||||
* except that there are no ESR registers for
|
||||
*
|
||||
*
|
||||
* CLKID_I2SRXBCK0 Clock ID 87: I2SRX_BCK0
|
||||
* CLKID_I2SRXBCK1, Clock ID 88: I2SRX_BCK1
|
||||
*
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
#define LPC31_IOCONFIG_PWM_OFFSET 0x2c0 /* PWM function block */
|
||||
#define LPC31_IOCONFIG_UART_OFFSET 0x300 /* UART function block */
|
||||
|
||||
/* IOCONFIG register offsets (with respect to any funcion block base address) *******************/
|
||||
/* IOCONFIG register offsets (with respect to any function block base address) ******************/
|
||||
|
||||
#define LPC31_IOCONFIG_PINS_OFFSET 0x000 /* WR: RD: Input pin state */
|
||||
/* 0x004-0x00c: Reserved */
|
||||
|
|
|
@ -325,7 +325,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
/* _sbss is the start of the BSS region (see the linker script) _ebss is the
|
||||
* end of the BSS regsion (see the linker script). The idle task stack starts
|
||||
* end of the BSS region (see the linker script). The idle task stack starts
|
||||
* at the end of BSS and is of size CONFIG_IDLETHREAD_STACKSIZE. The IDLE
|
||||
* thread is the thread that the system boots on and, eventually, becomes the
|
||||
* idle, do nothing task that runs only when there is nothing else to run.
|
||||
|
|
|
@ -5057,7 +5057,7 @@ FAR struct usbhost_connection_s *lpc43_ehci_initialize(int controller)
|
|||
|
||||
lpc43_putreg(regval, &HCOR->usbcmd);
|
||||
|
||||
/* Start the host controller by setting the RUN bit in the USBCMD regsiter. */
|
||||
/* Start the host controller by setting the RUN bit in the USBCMD register. */
|
||||
|
||||
regval = lpc43_getreg(&HCOR->usbcmd);
|
||||
regval |= EHCI_USBCMD_RUN;
|
||||
|
|
|
@ -890,7 +890,7 @@ static inline int up_set_rs485_mode(struct up_dev_s *priv,
|
|||
#ifdef BOARD_LPC43_UART1_DTRDIR
|
||||
if (priv->dtrdir)
|
||||
{
|
||||
/* If we ar using DTR for direction then ensure the H/W is
|
||||
/* If we are using DTR for direction then ensure the H/W is
|
||||
* configured correctly.
|
||||
*/
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
#define LPC54_LCD_CRSR_PAL1_OFFSET 0x0c0c /* Cursor Palette register 1 */
|
||||
#define LPC54_LCD_CRSR_XY_OFFSET 0x0c10 /* Cursor XY Position register */
|
||||
#define LPC54_LCD_CRSR_CLIP_OFFSET 0x0c14 /* Cursor Clip Position register */
|
||||
#define LPC54_LCD_CRSR_INTMSK_OFFSET 0x0c20 /* Cursor Interrupt Mask regsiter */
|
||||
#define LPC54_LCD_CRSR_INTMSK_OFFSET 0x0c20 /* Cursor Interrupt Mask register */
|
||||
#define LPC54_LCD_CRSR_INTCLR_OFFSET 0x0c24 /* Cursor Interrupt Clear register */
|
||||
#define LPC54_LCD_CRSR_INTRAW_OFFSET 0x0c28 /* Cursor Raw Interrupt Status register */
|
||||
#define LPC54_LCD_CRSR_INTSTAT_OFFSET 0x0c2c /* Cursor Masked Interrupt Status register */
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
/* _sbss is the start of the BSS region (see the linker script) _ebss is the
|
||||
* end of the BSS regsion (see the linker script). The idle task stack starts
|
||||
* end of the BSS region (see the linker script). The idle task stack starts
|
||||
* at the end of BSS and is of size CONFIG_IDLETHREAD_STACKSIZE. The IDLE
|
||||
* thread is the thread that the system boots on and, eventually, becomes the
|
||||
* idle, do nothing task that runs only when there is nothing else to run.
|
||||
|
|
|
@ -369,7 +369,7 @@ void up_irqinitialize(void)
|
|||
*
|
||||
* 0 -> 32 interrupt lines, 1 enable register, 8 priority registers
|
||||
* 1 -> 64 " " " ", 2 enable registers, 16 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable regsiters, 24 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable registers, 24 priority registers
|
||||
* ...
|
||||
*/
|
||||
|
||||
|
|
|
@ -5063,7 +5063,7 @@ FAR struct usbhost_connection_s *sam_ehci_initialize(int controller)
|
|||
|
||||
sam_putreg(regval, &HCOR->usbcmd);
|
||||
|
||||
/* Start the host controller by setting the RUN bit in the USBCMD regsiter. */
|
||||
/* Start the host controller by setting the RUN bit in the USBCMD register. */
|
||||
|
||||
regval = sam_getreg(&HCOR->usbcmd);
|
||||
regval |= EHCI_USBCMD_RUN;
|
||||
|
|
|
@ -568,7 +568,7 @@ static inline void spi_flush(struct sam_spidev_s *spi)
|
|||
* Map the chip select number to the bit-set PCS field used in the SPI
|
||||
* registers. A chip select number is used for indexing and identifying
|
||||
* chip selects. However, the chip select information is represented by
|
||||
* a bit set in the SPI regsisters. This function maps those chip select
|
||||
* a bit set in the SPI registers. This function maps those chip select
|
||||
* numbers to the correct bit set:
|
||||
*
|
||||
* CS Returned Spec Effective
|
||||
|
|
|
@ -420,7 +420,7 @@ errout:
|
|||
*
|
||||
* Input Parameters:
|
||||
* priv - The touchscreen private data structure
|
||||
* tsav - The new (shifted) value of the TSAV field of the ADC TSMR regsiter.
|
||||
* tsav - The new (shifted) value of the TSAV field of the ADC TSMR register.
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
|
|
|
@ -365,7 +365,7 @@ void up_irqinitialize(void)
|
|||
*
|
||||
* 0 -> 32 interrupt lines, 1 enable register, 8 priority registers
|
||||
* 1 -> 64 " " " ", 2 enable registers, 16 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable regsiters, 24 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable registers, 24 priority registers
|
||||
* ...
|
||||
*/
|
||||
|
||||
|
|
|
@ -4831,7 +4831,7 @@ static void hrtim_mode_config(FAR struct stm32_hrtim_s *priv)
|
|||
*
|
||||
* Description:
|
||||
* This function returns not significant bits in counter/capture
|
||||
* regsiters for given HRTIM Timer index.
|
||||
* registers for given HRTIM Timer index.
|
||||
*
|
||||
* Input Parameters:
|
||||
* priv - A reference to the HRTIM structure
|
||||
|
|
|
@ -398,7 +398,7 @@ void up_irqinitialize(void)
|
|||
*
|
||||
* 0 -> 32 interrupt lines, 1 enable register, 8 priority registers
|
||||
* 1 -> 64 " " " ", 2 enable registers, 16 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable regsiters, 24 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable registers, 24 priority registers
|
||||
* ...
|
||||
*/
|
||||
|
||||
|
|
|
@ -423,7 +423,7 @@ void up_irqinitialize(void)
|
|||
*
|
||||
* 0 -> 32 interrupt lines, 1 enable register, 8 priority registers
|
||||
* 1 -> 64 " " " ", 2 enable registers, 16 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable regsiters, 24 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable registers, 24 priority registers
|
||||
* ...
|
||||
*/
|
||||
|
||||
|
|
|
@ -598,7 +598,7 @@ dtor_end:
|
|||
|
||||
/* Variables:
|
||||
* _sbss is the start of the BSS region (see ld.script)
|
||||
* _ebss is the end of the BSS regsion (see ld.script)
|
||||
* _ebss is the end of the BSS region (see ld.script)
|
||||
* The idle task stack starts at the end of BSS and is
|
||||
* of size CONFIG_IDLETHREAD_STACKSIZE. The heap continues
|
||||
* from there until the end of memory. See g_idle_topstack
|
||||
|
|
|
@ -399,7 +399,7 @@ void up_irqinitialize(void)
|
|||
*
|
||||
* 0 -> 32 interrupt lines, 1 enable register, 8 priority registers
|
||||
* 1 -> 64 " " " ", 2 enable registers, 16 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable regsiters, 24 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable registers, 24 priority registers
|
||||
* ...
|
||||
*/
|
||||
|
||||
|
|
|
@ -337,7 +337,7 @@ void up_irqinitialize(void)
|
|||
*
|
||||
* 0 -> 32 interrupt lines, 1 enable register, 8 priority registers
|
||||
* 1 -> 64 " " " ", 2 enable registers, 16 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable regsiters, 24 priority registers
|
||||
* 2 -> 96 " " " ", 3 enable registers, 24 priority registers
|
||||
* ...
|
||||
*/
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@ __start:
|
|||
|
||||
/* Variables:
|
||||
* _sbss is the start of the BSS region (see ld.script)
|
||||
* _ebss is the end of the BSS regsion (see ld.script)
|
||||
* _ebss is the end of the BSS region (see ld.script)
|
||||
* The idle task stack starts at the end of BSS and is
|
||||
* of size CONFIG_IDLETHREAD_STACKSIZE. The heap continues
|
||||
* from there until the end of memory. See g_idle_topstack
|
||||
|
@ -257,10 +257,10 @@ __start:
|
|||
.section .rodata, "a"
|
||||
|
||||
/* Variables: _sbss is the start of the BSS region (see ld.script) _ebss is the end
|
||||
* of the BSS regsion (see ld.script). The idle task stack starts at the end of BSS
|
||||
* of the BSS region (see ld.script). The idle task stack starts at the end of BSS
|
||||
* and is of size CONFIG_IDLETHREAD_STACKSIZE. The IDLE thread is the thread that
|
||||
* the system boots on and, eventually, becomes the idle, do nothing task that runs
|
||||
* only when there is nothing else to run. The heap continues from there until the
|
||||
* only when there is nothing else to run. The heap continues from there until the
|
||||
* end of memory. See g_idle_topstack below.
|
||||
*/
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ static void dispatch_syscall(void)
|
|||
Get the offset of the stub for this syscall
|
||||
Load the entry of the stub for this syscall
|
||||
Call the stub
|
||||
Restore regsisters
|
||||
Restore registers
|
||||
Return from the syscall
|
||||
);
|
||||
# endif
|
||||
|
|
|
@ -112,7 +112,7 @@ static void dispatch_syscall(void)
|
|||
/* Get the offset of the stub for this syscall */
|
||||
/* Load the entry of the stub for this syscall */
|
||||
/* Call the stub */
|
||||
/* Restore regsisters */
|
||||
/* Restore registers */
|
||||
/* Return from the syscall */
|
||||
/* ); */
|
||||
}
|
||||
|
|
|
@ -118,7 +118,7 @@ static void dispatch_syscall(void) naked_function;
|
|||
|
||||
/* Call the stub */
|
||||
|
||||
/* Restore regsisters */
|
||||
/* Restore registers */
|
||||
|
||||
/* Return from the syscall */
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ static void dispatch_syscall(void)
|
|||
/* Get the offset of the stub for this syscall */
|
||||
/* Load the entry of the stub for this syscall */
|
||||
/* Call the stub */
|
||||
/* Restore regsisters */
|
||||
/* Restore registers */
|
||||
/* Return from the syscall */
|
||||
/* ); */
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
/* Memory Map: _sbss is the start of the BSS region (see ld.script) _ebss is
|
||||
* the end of the BSS regsion (see ld.script). The idle task stack starts at
|
||||
* the end of the BSS region (see ld.script). The idle task stack starts at
|
||||
* the end of BSS and is of size CONFIG_IDLETHREAD_STACKSIZE. The IDLE thread
|
||||
* is the thread that the system boots on and, eventually, becomes the idle,
|
||||
* do nothing task that runs only when there is nothing else to run. The
|
||||
|
|
|
@ -691,7 +691,7 @@ static void spi_exchange(FAR struct spi_dev_s *dev, FAR const void *txbuffer,
|
|||
|
||||
spi_putreg8(priv, data, Z16F_ESPI_DATA);
|
||||
|
||||
/* Wait for the read data to be available in the data regsiter */
|
||||
/* Wait for the read data to be available in the data register. */
|
||||
|
||||
while ((spi_getreg8(priv, Z16F_ESPI_STAT) & Z16F_ESPI_STAT_RDRF) == 0);
|
||||
|
||||
|
|
|
@ -71,8 +71,8 @@
|
|||
|
||||
_up_restoreusercontext:
|
||||
/* Disable interrupts while we are accessing the TCB's register
|
||||
* save structure. The correct interrupt state will be retored by
|
||||
* the iret instruction below
|
||||
* save structure. The correct interrupt state will be restored
|
||||
* by the iret instruction below.
|
||||
*/
|
||||
|
||||
di
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
* arg - The boardctl() argument is passed to the board_app_initialize()
|
||||
* implementation without modification. The argument has no
|
||||
* meaning to NuttX; the meaning of the argument is a contract
|
||||
* between the board-specific initalization logic and the
|
||||
* between the board-specific initialization logic and the
|
||||
* matching application logic. The value cold be such things as a
|
||||
* mode enumeration value, a set of DIP switch switch settings, a
|
||||
* pointer to configuration data read from a file or serial FLASH,
|
||||
|
|
|
@ -247,7 +247,7 @@
|
|||
* mikroBUS2 Interrupt: PE14-MB2_INT
|
||||
*
|
||||
* I assume that the interrupt lines are active low. No pull-ups are provided on
|
||||
* board so pull-ups ar provided in the pin configurations.
|
||||
* board so pull-ups are provided in the pin configurations.
|
||||
*/
|
||||
|
||||
#define GPIO_MB1_INT (GPIO_INPUT|GPIO_PULLUP|GPIO_EXTI|GPIO_PORTE|GPIO_PIN10)
|
||||
|
|
|
@ -92,11 +92,11 @@ int sim_bringup(void);
|
|||
* - First, a ROM disk device must be created. This is done by calling
|
||||
* the function romdisk_register() as described in
|
||||
* nuttx/include/nuttx/drivers/ramdisk.h. This is an OS level operation
|
||||
* and must be done in the board-level logic before your appliction
|
||||
* and must be done in the board-level logic before your application
|
||||
* starts.
|
||||
*
|
||||
* romdisk_register() will create a block driver at /dev/ramN where N
|
||||
* is the device minor number that was provdied to romdisk_regsiter.
|
||||
* is the device minor number that was provided to romdisk_register.
|
||||
*
|
||||
* - The second step is to mount the file system. This step can be
|
||||
* performed either in your board configuration logic or by your
|
||||
|
|
|
@ -98,11 +98,11 @@
|
|||
* - First, a ROM disk device must be created. This is done by calling
|
||||
* the function romdisk_register() as described in
|
||||
* nuttx/include/nuttx/drivers/ramdisk.h. This is an OS level operation
|
||||
* and must be done in the board-level logic before your appliction
|
||||
* and must be done in the board-level logic before your application
|
||||
* starts.
|
||||
*
|
||||
* romdisk_register() will create a block driver at /dev/ramN where N
|
||||
* is the device minor number that was provdied to romdisk_regsiter.
|
||||
* is the device minor number that was provided to romdisk_register.
|
||||
*
|
||||
* - The second step is to mount the file system. This step can be
|
||||
* performed either in your board configuration logic or by your
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
/* This is the generic lcd driver interface for the ili9340 Single Chip LCD
|
||||
* driver. The driver supports multiple displays, each connected with an own
|
||||
* ili9340 Single Chip LCD driver. The communication with the LCD single chip
|
||||
* driver must be provide by a subdriver accessable trough the ili9340_dev_s
|
||||
* driver must be provide by a subdriver accessable through the ili9340_dev_s
|
||||
* structure which is platform and MCU interface specific.
|
||||
*
|
||||
* Supported MCU interfaces (planed to support)
|
||||
|
@ -89,7 +89,7 @@
|
|||
* 4-wire 8-bit data serial Interface
|
||||
*
|
||||
* Note! RGB interface will not supported by the lcd driver.
|
||||
* It should be use with the platform specific RGB grapic controller and the
|
||||
* It should be use with the platform specific RGB graphic controller and the
|
||||
* nuttx framebuffer interface.
|
||||
*
|
||||
*/
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
/* This is the generic lcd driver interface for the ili9341 Single Chip LCD
|
||||
* driver. The driver supports multiple displays, each connected with an own
|
||||
* ili9341 Single Chip LCD driver. The communication with the LCD single chip
|
||||
* driver must be provide by a subdriver accessable trough the ili9341_dev_s
|
||||
* driver must be provide by a subdriver accessable through the ili9341_dev_s
|
||||
* structure which is platform and MCU interface specific.
|
||||
*
|
||||
* Supported MCU interfaces (planed to support)
|
||||
|
@ -89,7 +89,7 @@
|
|||
* 4-wire 8-bit data serial Interface
|
||||
*
|
||||
* Note! RGB interface will not supported by the lcd driver.
|
||||
* It should be use with the platform specific RGB grapic controller and the
|
||||
* It should be use with the platform specific RGB graphic controller and the
|
||||
* nuttx framebuffer interface.
|
||||
*
|
||||
*/
|
||||
|
|
|
@ -1964,7 +1964,7 @@ int altmdm_spi_uninit(FAR struct altmdm_dev_s *priv)
|
|||
|
||||
destroy_rxbufffifo(priv);
|
||||
|
||||
/* Uninitalize modem power management driver */
|
||||
/* Uninitialize modem power management driver */
|
||||
|
||||
altmdm_pm_uninit(priv);
|
||||
|
||||
|
|
|
@ -335,7 +335,7 @@
|
|||
|
||||
/* Offset register */
|
||||
|
||||
#define PCF85263_CTL_OFFSET 0x24 /* Offset regsiter */
|
||||
#define PCF85263_CTL_OFFSET 0x24 /* Offset register */
|
||||
/* Bits 0-7: Offset value */
|
||||
|
||||
/* Control registers */
|
||||
|
|
|
@ -587,7 +587,7 @@ void timer_unregister(FAR void *handle)
|
|||
* Description:
|
||||
* This function can be called to add a callback into driver-related code
|
||||
* to handle timer expirations. This is a strictly OS internal interface
|
||||
* and may NOT be used by appliction code.
|
||||
* and may NOT be used by application code.
|
||||
*
|
||||
* Input Parameters:
|
||||
* handle - This is the handle that was returned by timer_register()
|
||||
|
@ -595,7 +595,8 @@ void timer_unregister(FAR void *handle)
|
|||
* arg - Argument to be provided with the callback
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
* Zero (OK), if the callback was successfully set, or -ENOSYS if the lower
|
||||
* half driver does not support the operation.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ struct nxgl_rect_s
|
|||
struct nxgl_point_s pt2; /* Lower, right-hand corner */
|
||||
};
|
||||
|
||||
/* Describes a vector starting at pt1 and extending throug pt2 */
|
||||
/* Describes a vector starting at pt1 and extending through pt2 */
|
||||
|
||||
struct nxgl_vector_s
|
||||
{
|
||||
|
@ -108,7 +108,7 @@ struct nxgl_vector_s
|
|||
|
||||
/* Describes a run, i.e., a horizontal line. Note that the start/end positions
|
||||
* have fractional precision. This is necessary for good joining of trapezoids
|
||||
* when a more complex shape is decomposed into trapezoids
|
||||
* when a more complex shape is decomposed into trapezoids.
|
||||
*/
|
||||
|
||||
struct nxgl_run_s
|
||||
|
@ -119,7 +119,7 @@ struct nxgl_run_s
|
|||
};
|
||||
|
||||
/* Describes a horizontal trapezoid on the display in terms the run at the
|
||||
* top of the trapezoid and the run at the bottom
|
||||
* top of the trapezoid and the run at the bottom.
|
||||
*/
|
||||
|
||||
struct nxgl_trapezoid_s
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
* Argument: A reference to a struct timespec in which
|
||||
* the current time will be returned.
|
||||
*
|
||||
* NOTE: _TCIOC(0x0020) througn _TCIOC(0x003f) are reserved for use by the
|
||||
* NOTE: _TCIOC(0x0020) through _TCIOC(0x003f) are reserved for use by the
|
||||
* oneshot driver to assure that the values are unique. Other timer drivers
|
||||
* must not use IOCTL commands in this numeric range.
|
||||
*/
|
||||
|
|
|
@ -81,11 +81,7 @@
|
|||
* WARNING: May change TCIOC_SETTIMEOUT to pass pointer to 64bit nanoseconds
|
||||
* or timespec structure.
|
||||
*
|
||||
* NOTE: The TCIOC_SETHANDLER ioctl cannot be supported in the kernel build
|
||||
* mode. In that case direct callbacks from kernel space into user space is
|
||||
* forbidden.
|
||||
*
|
||||
* NOTE: _TCIOC(0x0001) througn _TCIOC(0x001f) are reserved for use by the
|
||||
* NOTE: _TCIOC(0x0001) through _TCIOC(0x001f) are reserved for use by the
|
||||
* timer driver to assure that the values are unique. Other timer drivers,
|
||||
* such as the oneshot timer, must not use IOCTL commands in this numeric
|
||||
* range.
|
||||
|
@ -278,7 +274,7 @@ void timer_unregister(FAR void *handle);
|
|||
* Description:
|
||||
* This function can be called to add a callback into driver-related code
|
||||
* to handle timer expirations. This is a strictly OS internal interface
|
||||
* and may NOT be used by appliction code.
|
||||
* and may NOT be used by application code.
|
||||
*
|
||||
* Input Parameters:
|
||||
* handle - This is the handle that was returned by timer_register()
|
||||
|
@ -286,7 +282,8 @@ void timer_unregister(FAR void *handle);
|
|||
* arg - Argument provided when the callback is called.
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
* Zero (OK), if the callback was successfully set, or -ENOSYS if the lower
|
||||
* half driver does not support the operation.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ static bool g_binitialized = false;
|
|||
int getopt(int argc, FAR char *const argv[], FAR const char *optstring)
|
||||
{
|
||||
/* Were new argc or argv passed in? This detects misuse of getopt() by
|
||||
* applictions that break out of the getopt() loop before getop() returns
|
||||
* applications that break out of the getopt() loop before getop() returns
|
||||
* -1.
|
||||
*/
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ doing this:
|
|||
starts.
|
||||
|
||||
romdisk_register() will create a block driver at /dev/ramN where N
|
||||
is the device minor number that was provided to romdisk_regsiter.
|
||||
is the device minor number that was provided to romdisk_register.
|
||||
|
||||
- The second step is to mount the file system. This step can be
|
||||
performed either in your board configuration logic or by your
|
||||
|
|
|
@ -417,7 +417,7 @@ void bluetooth_container_initialize(void);
|
|||
* Name: bluetooth_container_allocate
|
||||
*
|
||||
* Description:
|
||||
* The bluetooth_container_allocate function will get a free continer
|
||||
* The bluetooth_container_allocate function will get a free container
|
||||
* for use by the recvfrom() logic.
|
||||
*
|
||||
* This function will first attempt to allocate from the g_free_container
|
||||
|
|
|
@ -119,7 +119,7 @@ void bluetooth_container_initialize(void)
|
|||
* Name: bluetooth_container_allocate
|
||||
*
|
||||
* Description:
|
||||
* The bluetooth_container_allocate function will get a free continer
|
||||
* The bluetooth_container_allocate function will get a free container
|
||||
* for use by the recvfrom() logic.
|
||||
*
|
||||
* This function will first attempt to allocate from the g_free_container
|
||||
|
|
|
@ -434,7 +434,7 @@ void ieee802154_container_initialize(void);
|
|||
* Name: ieee802154_container_allocate
|
||||
*
|
||||
* Description:
|
||||
* The ieee802154_container_allocate function will get a free continer
|
||||
* The ieee802154_container_allocate function will get a free container
|
||||
* for use by the recvfrom() logic.
|
||||
*
|
||||
* This function will first attempt to allocate from the g_free_container
|
||||
|
|
|
@ -119,7 +119,7 @@ void ieee802154_container_initialize(void)
|
|||
* Name: ieee802154_container_allocate
|
||||
*
|
||||
* Description:
|
||||
* The ieee802154_container_allocate function will get a free continer
|
||||
* The ieee802154_container_allocate function will get a free container
|
||||
* for use by the recvfrom() logic.
|
||||
*
|
||||
* This function will first attempt to allocate from the g_free_container
|
||||
|
|
|
@ -442,7 +442,7 @@ int tcp_local_ipv4_device(FAR struct tcp_conn_s *conn);
|
|||
* on the remotely connected IPv4 address
|
||||
*
|
||||
* Input Parameters:
|
||||
* conn - TCP connection structure. The remotely conected address, raddr,
|
||||
* conn - TCP connection structure. The remotely connected address, raddr,
|
||||
* should be set to a non-zero value in this structure.
|
||||
*
|
||||
* Returned Value:
|
||||
|
|
|
@ -163,7 +163,7 @@ static int tcp_find_ipv6_device(FAR struct tcp_conn_s *conn,
|
|||
*
|
||||
* Description:
|
||||
* Select the network driver to use with the IPv4 TCP transaction based
|
||||
* on the locally bound IPv4 address
|
||||
* on the locally bound IPv4 address.
|
||||
*
|
||||
* Input Parameters:
|
||||
* conn - TCP connection structure. The locally bound address, laddr,
|
||||
|
@ -187,10 +187,10 @@ int tcp_local_ipv4_device(FAR struct tcp_conn_s *conn)
|
|||
*
|
||||
* Description:
|
||||
* Select the network driver to use with the IPv4 TCP transaction based
|
||||
* on the remotely connected IPv4 address
|
||||
* on the remotely connected IPv4 address.
|
||||
*
|
||||
* Input Parameters:
|
||||
* conn - TCP connection structure. The remotely conected address, raddr,
|
||||
* conn - TCP connection structure. The remotely connected address, raddr,
|
||||
* should be set to a non-zero value in this structure.
|
||||
*
|
||||
* Returned Value:
|
||||
|
@ -234,7 +234,7 @@ int tcp_local_ipv6_device(FAR struct tcp_conn_s *conn)
|
|||
*
|
||||
* Description:
|
||||
* Select the network driver to use with the IPv6 TCP transaction based
|
||||
* on the remotely conected IPv6 address
|
||||
* on the remotely connected IPv6 address.
|
||||
*
|
||||
* Input Parameters:
|
||||
* conn - TCP connection structure. The remotely connected address, raddr,
|
||||
|
|
|
@ -86,11 +86,11 @@ static long compare_timespec(FAR const struct timespec *a,
|
|||
*
|
||||
* Input Parameters:
|
||||
* clockid - The timing source to use in the conversion
|
||||
* reltime - Convert this absolue time to system clock ticks.
|
||||
* reltime - Convert this absolute time to system clock ticks.
|
||||
* ticks - Return the converted number of ticks here.
|
||||
*
|
||||
* Returned Value:
|
||||
* OK on success; A non-zero error number on failure;
|
||||
* OK on success; A non-zero error number on failure
|
||||
*
|
||||
* Assumptions:
|
||||
* Interrupts should be disabled so that the time is not changing during
|
||||
|
@ -131,9 +131,7 @@ int clock_abstime2ticks(clockid_t clockid, FAR const struct timespec *abstime,
|
|||
reltime.tv_nsec = (abstime->tv_nsec - currtime.tv_nsec);
|
||||
reltime.tv_sec = (abstime->tv_sec - currtime.tv_sec);
|
||||
|
||||
/* Check if we were supposed to borrow from the seconds to borrow from the
|
||||
* seconds
|
||||
*/
|
||||
/* Check if we were supposed to borrow from the seconds. */
|
||||
|
||||
if (reltime.tv_nsec < 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue