From 8c61c2f31bf72a515cf6ecf7fda8cf9adb1e6b0d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 13 Aug 2018 07:39:38 -0600 Subject: [PATCH] Remove trailing spaces at the end of lines. --- ChangeLog | 6 +-- Documentation/NuttxPortingGuide.html | 2 +- arch/arm/include/stm32f7/stm32f72xx73xx_irq.h | 4 +- arch/arm/src/armv7-a/arm_vectors.S | 2 +- arch/arm/src/lc823450/lc823450_mtd.h | 2 +- arch/arm/src/lc823450/lc823450_sddrv_if.h | 2 +- arch/arm/src/lc823450/lc823450_serial.c | 2 +- arch/arm/src/lpc54xx/lpc54_emc.c | 2 +- arch/arm/src/lpc54xx/lpc54_emc.h | 2 +- arch/arm/src/samd2l2/sam_usb.c | 6 +-- arch/arm/src/samd5e5/chip/sam_usart.h | 2 +- arch/arm/src/stm32/chip.h | 2 +- .../arm/src/stm32f7/chip/stm32f72xx73xx_rcc.h | 2 +- .../src/stm32f7/chip/stm32f72xx73xx_syscfg.h | 2 +- .../src/stm32f7/chip/stm32f72xx73xx_uart.h | 2 +- arch/arm/src/stm32f7/stm32_dma2d.c | 2 +- arch/avr/include/avr32/irq.h | 2 +- arch/or1k/include/spr.h | 2 +- arch/or1k/src/common/up_task_start.c | 2 +- arch/or1k/src/common/up_timer.c | 8 ++-- arch/or1k/src/mor1kx/Make.defs | 2 +- arch/or1k/src/mor1kx/up_vectortab.S | 10 ++-- configs/bambino-200e/src/lpc43_max31855.c | 2 +- configs/bambino-200e/src/lpc43_ssp.c | 8 ++-- configs/imxrt1050-evk/src/imxrt_buttons.c | 2 +- configs/lc823450-xgevk/README.txt | 4 +- configs/lpc4357-evb/README.txt | 2 +- configs/metro-m4/src/sam_autoleds.c | 2 +- configs/metro-m4/src/sam_boot.c | 2 +- configs/nucleo-f410rb/include/board.h | 2 +- configs/nucleo-f410rb/src/stm32_boot.c | 2 +- configs/nucleo-l476rg/src/stm32_gpio.c | 2 +- configs/or1k/src/or1k_autoled.c | 2 +- configs/stm32f4discovery/README.txt | 2 +- configs/stm32f4discovery/src/stm32_lis3dsh.c | 4 +- configs/stm32f746g-disco/include/board.h | 2 +- configs/stm32l476-mdk/src/stm32_autoleds.c | 2 +- drivers/analog/dac7571.c | 2 +- drivers/lcd/max7219.c | 2 +- drivers/sensors/adxl372.c | 2 +- drivers/sensors/apds9960.c | 46 +++++++++---------- drivers/sensors/lsm330_spi.c | 2 +- drivers/usbdev/rndis_std.h | 2 +- drivers/usbdev/usbmsc.h | 2 +- drivers/wireless/spirit/include/spirit_aes.h | 10 ++-- .../wireless/spirit/include/spirit_directrf.h | 6 +-- .../wireless/spirit/include/spirit_pktmbus.h | 4 +- drivers/wireless/spirit/lib/spirit_aes.c | 8 ++-- drivers/wireless/spirit/lib/spirit_directrf.c | 6 +-- drivers/wireless/spirit/lib/spirit_gpio.c | 2 +- drivers/wireless/spirit/lib/spirit_pktmbus.c | 4 +- fs/tmpfs/fs_tmpfs.c | 2 +- graphics/README.txt | 2 +- include/lzf.h | 8 ++-- include/nuttx/lcd/max7219.h | 2 +- include/nuttx/net/radiodev.h | 2 +- include/nuttx/sensors/cluster_driver.h | 4 +- libs/README.txt | 2 +- libs/libc/lzf/lzf.h | 8 ++-- libs/libc/lzf/lzf_c.c | 10 ++-- libs/libc/lzf/lzf_d.c | 10 ++-- libs/libc/math/__cos.c | 2 +- libs/libc/misc/lib_ncompress.c | 16 +++---- libs/libc/signal/sigwait.c | 8 ++-- libs/libc/unistd/lib_sysconf.c | 2 +- net/ipforward/ipfwd_poll.c | 2 +- net/route/ramroute.h | 2 +- sched/sched/sched_reprioritize.c | 2 +- wireless/bluetooth/bt_conn.h | 2 +- wireless/bluetooth/bt_smp.h | 10 ++-- wireless/pktradio/pktradio_loopback.c | 4 +- 71 files changed, 153 insertions(+), 153 deletions(-) diff --git a/ChangeLog b/ChangeLog index 852b5d1442..50c87118ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18170,7 +18170,7 @@ almost complete... still lacking GPIO support and LED support. There are still no significant drivers available. * SMP: Introduce spin_lock_irqsave() and spin_unlock_irqrestore(). These - APIs are simplified version of enter_critical_section() and + APIs are simplified version of enter_critical_section() and leave_critical_section() to protect data (e.g. registers) in SMP mode. By using these APIs inside drivers, performance will be improved. From Masayuki Ishikawa (2017-12-07). @@ -18660,7 +18660,7 @@ longer returns an errno. From Gregory Nutt (2018-01-31). * graphics/: Review return values for all calls to kthread_start() because it no longer returns an errno. From Gregory Nutt (2018-01-31). - * sched/: Convert legitimate uses of task_create() to nxtask_create(). + * sched/: Convert legitimate uses of task_create() to nxtask_create(). Review handling of returned values from all uses of kthread_create() (as well as nxtask_create()). From Gregory Nutt (2018-01-31). * arm/src/kinetis: Correct some Ethernet PHY register bit tests for the @@ -18815,7 +18815,7 @@ Mayencourt (2018-02-19). * drivers/mtd: mtd_config.c: Add still more error handling (to detect bad underlying flash implementations). Remove MTD_ERASE that was erasing data - block instead of erase block. This is a partial revert of 4f18b4. + block instead of erase block. This is a partial revert of 4f18b4. Reported-by: Pascal Speck * arch/arm/src/stm32l4: stm32l4_flash: change flash programming to use page buffer for unaligned writes. From Juha Niskanen (2018-02-19). diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index 3bac5ca5b5..c51731e543 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -487,7 +487,7 @@ As an example, all ARM processor architectures are provided under the arch/arm/ directory which is selected with the CONFIG_ARCH="arm" configuration option.

- Variants of the processor architecture may be provided in sub-directories of the + Variants of the processor architecture may be provided in sub-directories of the Extending this example, the ARMv7-M ARM family is supported by logic in arch/arm/include/armv7-m and arch/arm/src/armv7-m directories which are selected by the CONFIG_ARCH_CORTEXM3=y, CONFIG_ARCH_CORTEXM4=y, or CONFIG_ARCH_CORTEXM7=y configuration options

diff --git a/arch/arm/include/stm32f7/stm32f72xx73xx_irq.h b/arch/arm/include/stm32f7/stm32f72xx73xx_irq.h index fff6d6ddd9..0bad27ed49 100644 --- a/arch/arm/include/stm32f7/stm32f72xx73xx_irq.h +++ b/arch/arm/include/stm32f7/stm32f72xx73xx_irq.h @@ -33,8 +33,8 @@ * POSSIBILITY OF SUCH DAMAGE. * *Change Record: - * bf20171107 Created file. It's identical to stm32f74xx75xx_irq except for the - * exclusions noted by this tag, and the addition of the last IRQ + * bf20171107 Created file. It's identical to stm32f74xx75xx_irq except for the + * exclusions noted by this tag, and the addition of the last IRQ * for SDMMC2 (IRQ103). ****************************************************************************************************/ diff --git a/arch/arm/src/armv7-a/arm_vectors.S b/arch/arm/src/armv7-a/arm_vectors.S index 4157f25457..6fb9102e59 100644 --- a/arch/arm/src/armv7-a/arm_vectors.S +++ b/arch/arm/src/armv7-a/arm_vectors.S @@ -62,7 +62,7 @@ g_undeftmp: g_aborttmp: .word 0 /* Saved lr */ .word 0 /* Saved spsr */ - + #ifdef CONFIG_ARMV7A_DECODEFIQ g_fiqtmp: .word 0 /* Saved lr */ diff --git a/arch/arm/src/lc823450/lc823450_mtd.h b/arch/arm/src/lc823450/lc823450_mtd.h index 23aed34cb2..c5618babfb 100644 --- a/arch/arm/src/lc823450/lc823450_mtd.h +++ b/arch/arm/src/lc823450/lc823450_mtd.h @@ -71,7 +71,7 @@ #define LC823450_PART5_START (LC823450_PART4_START + LC823450_PART4_NBLOCKS) #define LC823450_PART5_NBLOCKS 32768 #define LC823450_PART6_START (LC823450_PART5_START + LC823450_PART5_NBLOCKS) -#define LC823450_PART6_NBLOCKS 131072 +#define LC823450_PART6_NBLOCKS 131072 #define LC823450_PART7_START (LC823450_PART6_START + LC823450_PART6_NBLOCKS) #define LC823450_PART7_NBLOCKS 32768 #define LC823450_PART8_START (LC823450_PART7_START + LC823450_PART7_NBLOCKS) diff --git a/arch/arm/src/lc823450/lc823450_sddrv_if.h b/arch/arm/src/lc823450/lc823450_sddrv_if.h index 0bef1eb2c3..660227abda 100644 --- a/arch/arm/src/lc823450/lc823450_sddrv_if.h +++ b/arch/arm/src/lc823450/lc823450_sddrv_if.h @@ -251,7 +251,7 @@ SINT_T fixedSdDrReadSector(UI_32 addr, UI_32 cnt, void *buf, SINT_T type, struct SdDrCfg_s *cfg); UI_32 sdif_get_status(UI_32); - + #if defined(__cplusplus) } #endif diff --git a/arch/arm/src/lc823450/lc823450_serial.c b/arch/arm/src/lc823450/lc823450_serial.c index 31e3341cff..d0d84fcd22 100644 --- a/arch/arm/src/lc823450/lc823450_serial.c +++ b/arch/arm/src/lc823450/lc823450_serial.c @@ -280,7 +280,7 @@ static uart_dev_t g_uart0port = .size = CONFIG_UART0_RXBUFSIZE, .buffer = g_uart0rxbuffer, }, - .xmit = + .xmit = { .size = CONFIG_UART0_TXBUFSIZE, .buffer = g_uart0txbuffer, diff --git a/arch/arm/src/lpc54xx/lpc54_emc.c b/arch/arm/src/lpc54xx/lpc54_emc.c index d4e597ef4f..8c9ed357ec 100644 --- a/arch/arm/src/lpc54xx/lpc54_emc.c +++ b/arch/arm/src/lpc54xx/lpc54_emc.c @@ -491,7 +491,7 @@ void lpc54_emc_sram_initialize(FAR uint32_t *extwait, unsigned int i; /* Initialize extended wait. */ - + DEBUGASSERT(statconfig != NULL && nchips > 0); if (extwait) diff --git a/arch/arm/src/lpc54xx/lpc54_emc.h b/arch/arm/src/lpc54xx/lpc54_emc.h index 54a26139df..cd0ebfcb34 100644 --- a/arch/arm/src/lpc54xx/lpc54_emc.h +++ b/arch/arm/src/lpc54xx/lpc54_emc.h @@ -175,7 +175,7 @@ struct emc_static_chip_config_s * read access in units of nanoseconds */ uint32_t waitreadpage; /* In page mode, the read after the first read * wait states in units of nanoseconds */ - uint32_t waitwrite; /* The delay from chip select to write access in + uint32_t waitwrite; /* The delay from chip select to write access in * units of nanoseconds */ uint32_t waitturn; /* The Bus turn-around time in units of * nanoseconds */ diff --git a/arch/arm/src/samd2l2/sam_usb.c b/arch/arm/src/samd2l2/sam_usb.c index 6aaeccb544..8479192aad 100644 --- a/arch/arm/src/samd2l2/sam_usb.c +++ b/arch/arm/src/samd2l2/sam_usb.c @@ -3793,16 +3793,16 @@ static void sam_hw_setup(struct sam_usbdev_s *priv) /* Load USB factory calibration values from NVRAM */ - calib_transn = getreg32(SYSCTRL_FUSES_USBTRANSN_ADDR) & + calib_transn = getreg32(SYSCTRL_FUSES_USBTRANSN_ADDR) & SYSCTRL_FUSES_USBTRANSN_MASK >> SYSCTRL_FUSES_USBTRANSN_SHIFT; - calib_transp = getreg32(SYSCTRL_FUSES_USBTRANSP_ADDR) & + calib_transp = getreg32(SYSCTRL_FUSES_USBTRANSP_ADDR) & SYSCTRL_FUSES_USBTRANSP_MASK >> SYSCTRL_FUSES_USBTRANSP_SHIFT; calib_trim = getreg32(SYSCTRL_FUSES_USBTRIM_ADDR) & SYSCTRL_FUSES_USBTRIM_MASK >> SYSCTRL_FUSES_USBTRIM_SHIFT; - padcalib = USB_PADCAL_TRANSP(calib_transp) | + padcalib = USB_PADCAL_TRANSP(calib_transp) | USB_PADCAL_TRANSN(calib_transn) | USB_PADCAL_TRIM(calib_trim); diff --git a/arch/arm/src/samd5e5/chip/sam_usart.h b/arch/arm/src/samd5e5/chip/sam_usart.h index baa2f8c824..ca82859366 100644 --- a/arch/arm/src/samd5e5/chip/sam_usart.h +++ b/arch/arm/src/samd5e5/chip/sam_usart.h @@ -294,7 +294,7 @@ #define USART_CTRLC_BRKLEN_SHIFT (8) /* Bits 8-9: LIN Master Break Length */ #define USART_CTRLC_BRKLEN_MASK (3 << USART_CTRLC_BRKLEN_SHIFT) # define USART_CTRLC_BRKLEN_13BITS (0 << USART_CTRLC_BRKLEN_SHIFT) /* 13 bit times */ -# define USART_CTRLC_BRKLEN_17BITS (1 << USART_CTRLC_BRKLEN_SHIFT) /* 17 bit times */ +# define USART_CTRLC_BRKLEN_17BITS (1 << USART_CTRLC_BRKLEN_SHIFT) /* 17 bit times */ # define USART_CTRLC_BRKLEN_21BITS (2 << USART_CTRLC_BRKLEN_SHIFT) /* 21 bit times */ # define USART_CTRLC_BRKLEN_26BITS (3 << USART_CTRLC_BRKLEN_SHIFT) /* 26 bit times */ #define USART_CTRLC_HDRDLY_SHIFT (10) /* Bits 10-11: LIN Master Header Delay */ diff --git a/arch/arm/src/stm32/chip.h b/arch/arm/src/stm32/chip.h index 73edab1d06..36f6254ae8 100644 --- a/arch/arm/src/stm32/chip.h +++ b/arch/arm/src/stm32/chip.h @@ -47,7 +47,7 @@ #include /* Include the chip interrupt definition file */ - + #include /* Include the chip pin configuration file */ diff --git a/arch/arm/src/stm32f7/chip/stm32f72xx73xx_rcc.h b/arch/arm/src/stm32f7/chip/stm32f72xx73xx_rcc.h index 7fa34305f8..9b1607f7ac 100644 --- a/arch/arm/src/stm32f7/chip/stm32f72xx73xx_rcc.h +++ b/arch/arm/src/stm32f7/chip/stm32f72xx73xx_rcc.h @@ -140,7 +140,7 @@ # define RCC_PLLCFG_PLLN(n) ((n) << RCC_PLLCFG_PLLN_SHIFT) /* n = 2..432 */ #define RCC_PLLCFG_PLLP_SHIFT (16) /* Bits 16-17: Main PLL (PLL) main system clock divider */ #define RCC_PLLCFG_PLLP_MASK (3 << RCC_PLLCFG_PLLP_SHIFT) -# define RCC_PLLCFG_PLLP(n) ((((n)>>1)-1)<< RCC_PLLCFG_PLLP_SHIFT) /* n=2,4,6,8 */ +# define RCC_PLLCFG_PLLP(n) ((((n)>>1)-1)<< RCC_PLLCFG_PLLP_SHIFT) /* n=2,4,6,8 */ # define RCC_PLLCFG_PLLP_2 (0 << RCC_PLLCFG_PLLP_SHIFT) /* 00: PLLP = 2 */ # define RCC_PLLCFG_PLLP_4 (1 << RCC_PLLCFG_PLLP_SHIFT) /* 01: PLLP = 4 */ # define RCC_PLLCFG_PLLP_6 (2 << RCC_PLLCFG_PLLP_SHIFT) /* 10: PLLP = 6 */ diff --git a/arch/arm/src/stm32f7/chip/stm32f72xx73xx_syscfg.h b/arch/arm/src/stm32f7/chip/stm32f72xx73xx_syscfg.h index 14eee6e5a6..4a341e1a91 100644 --- a/arch/arm/src/stm32f7/chip/stm32f72xx73xx_syscfg.h +++ b/arch/arm/src/stm32f7/chip/stm32f72xx73xx_syscfg.h @@ -54,7 +54,7 @@ #define STM32_SYSCFG_MEMRMP_OFFSET 0x0000 /* SYSCFG memory remap register */ #define STM32_SYSCFG_PMC_OFFSET 0x0004 /* SYSCFG peripheral mode configuration register */ - + #define STM32_SYSCFG_EXTICR_OFFSET(p) (0x0008 + ((p) & 0x000c)) /* Registers are displaced by 4! */ #define STM32_SYSCFG_EXTICR1_OFFSET 0x0008 /* SYSCFG external interrupt configuration register 1 */ #define STM32_SYSCFG_EXTICR2_OFFSET 0x000c /* SYSCFG external interrupt configuration register 2 */ diff --git a/arch/arm/src/stm32f7/chip/stm32f72xx73xx_uart.h b/arch/arm/src/stm32f7/chip/stm32f72xx73xx_uart.h index ea0c0dd29c..64d5599676 100644 --- a/arch/arm/src/stm32f7/chip/stm32f72xx73xx_uart.h +++ b/arch/arm/src/stm32f7/chip/stm32f72xx73xx_uart.h @@ -44,7 +44,7 @@ #include -#if defined(CONFIG_STM32F7_STM32F72XX) || defined(CONFIG_STM32F7_STM32F73XX) +#if defined(CONFIG_STM32F7_STM32F72XX) || defined(CONFIG_STM32F7_STM32F73XX) /************************************************************************************ * Pre-processor Definitions diff --git a/arch/arm/src/stm32f7/stm32_dma2d.c b/arch/arm/src/stm32f7/stm32_dma2d.c index cc71d58aab..5ac9a78b66 100644 --- a/arch/arm/src/stm32f7/stm32_dma2d.c +++ b/arch/arm/src/stm32f7/stm32_dma2d.c @@ -735,7 +735,7 @@ static void stm32_dma2d_lpfc(int lid, uint32_t blendmode, uint8_t alpha, /**************************************************************************** * Public Functions ****************************************************************************/ - + /**************************************************************************** * Name: stm32_dma2d_setclut * diff --git a/arch/avr/include/avr32/irq.h b/arch/avr/include/avr32/irq.h index e81b1bf91b..b334b8677d 100644 --- a/arch/avr/include/avr32/irq.h +++ b/arch/avr/include/avr32/irq.h @@ -185,7 +185,7 @@ static inline irqstate_t up_irq_save(void) /* Restore saved interrupt state */ static inline void up_irq_restore(irqstate_t flags) -{ +{ if ((flags & AVR32_SR_GM_MASK) == 0) { __asm__ __volatile__ ( diff --git a/arch/or1k/include/spr.h b/arch/or1k/include/spr.h index 190dabb02b..82a922a809 100644 --- a/arch/or1k/include/spr.h +++ b/arch/or1k/include/spr.h @@ -232,7 +232,7 @@ #define SPR_CPUCFGR_NSGF_SHIFT (0) #define SPR_CPUCFGR_NSGF_MASK (0xf << SPR_CPUCFGR_NSGF_SHIFT) -#define SPR_CPUCFGR_CGF (1 << 4) +#define SPR_CPUCFGR_CGF (1 << 4) #define SPR_CPUCFGR_OB32S (1 << 5) /* ORBIS32 Supported */ #define SPR_CPUCFGR_OB64S (1 << 6) /* ORBIS64 Supported */ #define SPR_CPUCFGR_OF32S (1 << 7) /* ORFPX32 Supported */ diff --git a/arch/or1k/src/common/up_task_start.c b/arch/or1k/src/common/up_task_start.c index 322fa46620..f84c6b6f8a 100644 --- a/arch/or1k/src/common/up_task_start.c +++ b/arch/or1k/src/common/up_task_start.c @@ -77,7 +77,7 @@ void up_task_start(main_t taskentry, int argc, FAR char *argv[]) { /* Let sys_call3() do all of the work */ - + sinfo("entry %p argc %d\n", taskentry, argc); sys_call3(SYS_task_start, (uintptr_t)taskentry, (uintptr_t)argc, diff --git a/arch/or1k/src/common/up_timer.c b/arch/or1k/src/common/up_timer.c index 7e7b6d5f2d..1351eca387 100644 --- a/arch/or1k/src/common/up_timer.c +++ b/arch/or1k/src/common/up_timer.c @@ -77,7 +77,7 @@ static int or1k_timer_isr(int irq, uint32_t *regs, void *arg) mtspr(SPR_TICK_TTMR, ttmr); sched_process_timer(); - + return OK; } @@ -89,7 +89,7 @@ static int or1k_timer_isr(int irq, uint32_t *regs, void *arg) * Name: or1k_timer_initialize * * Description: - * Initialize the OpenRISC Tick Timer unit + * Initialize the OpenRISC Tick Timer unit * ****************************************************************************/ @@ -104,6 +104,6 @@ void or1k_timer_initialize(void) mtspr(SPR_TICK_TTCR, 0); /* Write TTMR */ - - mtspr(SPR_TICK_TTMR, ttmr); + + mtspr(SPR_TICK_TTMR, ttmr); } diff --git a/arch/or1k/src/mor1kx/Make.defs b/arch/or1k/src/mor1kx/Make.defs index d8e48fa1e6..7f139671b4 100644 --- a/arch/or1k/src/mor1kx/Make.defs +++ b/arch/or1k/src/mor1kx/Make.defs @@ -81,7 +81,7 @@ ifeq ($(CONFIG_DEBUG_FEATURES),y) endif CHIP_ASRCS = -CHIP_CSRCS = +CHIP_CSRCS = ifneq ($(CONFIG_SCHED_TICKLESS),y) #CHIP_CSRCS += sam_timerisr.c diff --git a/arch/or1k/src/mor1kx/up_vectortab.S b/arch/or1k/src/mor1kx/up_vectortab.S index 2278ae1bc6..790fe5662b 100644 --- a/arch/or1k/src/mor1kx/up_vectortab.S +++ b/arch/or1k/src/mor1kx/up_vectortab.S @@ -250,7 +250,7 @@ _reset_vector: /* Set the stack pointer */ l.movhi r1,hi(_ebss); - l.ori r1,r1,lo(_ebss); + l.ori r1,r1,lo(_ebss); l.addi r1,r1,CONFIG_IDLETHREAD_STACKSIZE-4; l.ori r2,r1,0; l.nop @@ -262,7 +262,7 @@ _reset_vector: l.nop; /* Should never reach here */ - + l.j 0; l.nop; @@ -281,7 +281,7 @@ _data_page_fault: l.nop; l.j 0; l.nop; - + /* Instruction page fault */ .org 0x400 @@ -289,7 +289,7 @@ _instruction_page_fault: l.nop; l.j 0; l.nop; - + /* Tick Timer */ .org 0x500 @@ -354,7 +354,7 @@ _itlb_miss: /* Range exception */ - .org 0xB00 + .org 0xB00 _range_exception: l.nop; l.j 0; diff --git a/configs/bambino-200e/src/lpc43_max31855.c b/configs/bambino-200e/src/lpc43_max31855.c index bae3f955d8..95bfb4bbfd 100644 --- a/configs/bambino-200e/src/lpc43_max31855.c +++ b/configs/bambino-200e/src/lpc43_max31855.c @@ -96,7 +96,7 @@ int lpc43_max31855initialize(FAR const char *devpath, int bus, uint16_t devid) { snerr("ERROR: Error registering MAX31855\n"); } - + return ret; } diff --git a/configs/bambino-200e/src/lpc43_ssp.c b/configs/bambino-200e/src/lpc43_ssp.c index 3d46b0f906..9732289d99 100644 --- a/configs/bambino-200e/src/lpc43_ssp.c +++ b/configs/bambino-200e/src/lpc43_ssp.c @@ -76,12 +76,12 @@ void weak_function lpc43_sspdev_initialize(void) { snerr("ERROR: Error configuring chip select GPIO pin\n"); } - + lpc43_pin_config(PINCONFIG_MAX31855_CS2); ret = lpc43_gpio_config(GPIO_MAX31855_CS2); if (ret < 0) { - snerr("ERROR: Error configuring chip select GPIO pin\n") + snerr("ERROR: Error configuring chip select GPIO pin\n") } #endif } @@ -108,7 +108,7 @@ void lpc43_ssp0select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected) { lpc43_gpio_write(GPIO_MAX31855_CS1, !selected); } - + if (devid == SPIDEV_TEMPERATURE(1)) { lpc43_gpio_write(GPIO_MAX31855_CS2, !selected); @@ -157,7 +157,7 @@ void lpc43_ssp1select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected) { lpc43_gpio_write(GPIO_MAX31855_CS1, !selected); } - + if (devid == SPIDEV_TEMPERATURE(1)) { lpc43_gpio_write(GPIO_MAX31855_CS2, !selected); diff --git a/configs/imxrt1050-evk/src/imxrt_buttons.c b/configs/imxrt1050-evk/src/imxrt_buttons.c index f01cce3296..a44b59b9b0 100644 --- a/configs/imxrt1050-evk/src/imxrt_buttons.c +++ b/configs/imxrt1050-evk/src/imxrt_buttons.c @@ -18,7 +18,7 @@ * used to endorse or promote products derived from this software * without specific prior written permission. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORSMULTILINK + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE diff --git a/configs/lc823450-xgevk/README.txt b/configs/lc823450-xgevk/README.txt index c2e8023c56..27b8839d41 100644 --- a/configs/lc823450-xgevk/README.txt +++ b/configs/lc823450-xgevk/README.txt @@ -57,12 +57,12 @@ index 687f50ca..8418eff8 100644 +++ b/examples/ostest/waitpid.c @@ -54,7 +54,7 @@ ****************************************************************************/ - + #define RETURN_STATUS 14 -#define NCHILDREN 3 +#define NCHILDREN 2 #define PRIORITY 100 - + /**************************************************************************** Other Status diff --git a/configs/lpc4357-evb/README.txt b/configs/lpc4357-evb/README.txt index 08c3e0d4c7..9443e9e920 100644 --- a/configs/lpc4357-evb/README.txt +++ b/configs/lpc4357-evb/README.txt @@ -373,7 +373,7 @@ FPU Configuration Options ------------------------- There are two version of the FPU support built into the most NuttX Cortex-M4 -ports. +ports. 1. Non-Lazy Floating Point Register Save diff --git a/configs/metro-m4/src/sam_autoleds.c b/configs/metro-m4/src/sam_autoleds.c index 572c724108..307fd246f5 100644 --- a/configs/metro-m4/src/sam_autoleds.c +++ b/configs/metro-m4/src/sam_autoleds.c @@ -53,7 +53,7 @@ * ------------------- ---------------------------- ------ * SYMBOL Meaning LED * ------------------- ---------------------------- ------ - * + * * LED_STARTED NuttX has been started OFF * LED_HEAPALLOCATE Heap has been allocated OFF * LED_IRQSENABLED Interrupts enabled OFF diff --git a/configs/metro-m4/src/sam_boot.c b/configs/metro-m4/src/sam_boot.c index 825b22b398..331bbf597e 100644 --- a/configs/metro-m4/src/sam_boot.c +++ b/configs/metro-m4/src/sam_boot.c @@ -55,7 +55,7 @@ * Name: sam_board_initialize * * Description: - * All SAMD5/E5 architectures must provide the following entry point. + * All SAMD5/E5 architectures must provide the following entry point. * This entry point is called early in the initialization -- after all * memory has been configured and mapped but before any devices have been * initialized. diff --git a/configs/nucleo-f410rb/include/board.h b/configs/nucleo-f410rb/include/board.h index 7369b778c3..d8741e70ab 100644 --- a/configs/nucleo-f410rb/include/board.h +++ b/configs/nucleo-f410rb/include/board.h @@ -146,7 +146,7 @@ #define STM32_APB2_TIM11_CLKIN (STM32_PCLK2_FREQUENCY) /* Timer Frequencies, if APBx is set to 1, frequency is same to APBx - * otherwise frequency is 2xAPBx. + * otherwise frequency is 2xAPBx. * Note: TIM1,9,11 are on APB2, others on APB1 */ /* REVISIT */ diff --git a/configs/nucleo-f410rb/src/stm32_boot.c b/configs/nucleo-f410rb/src/stm32_boot.c index 98333b2877..d9dd87303e 100644 --- a/configs/nucleo-f410rb/src/stm32_boot.c +++ b/configs/nucleo-f410rb/src/stm32_boot.c @@ -80,7 +80,7 @@ void stm32_boardinitialize(void) #ifdef CONFIG_ARCH_BUTTONS /* Configure on-board BUTTONs if BUTTON support has been selected. */ - + board_button_initialize(); #endif } diff --git a/configs/nucleo-l476rg/src/stm32_gpio.c b/configs/nucleo-l476rg/src/stm32_gpio.c index c8ff89fe22..b5678fa304 100644 --- a/configs/nucleo-l476rg/src/stm32_gpio.c +++ b/configs/nucleo-l476rg/src/stm32_gpio.c @@ -330,7 +330,7 @@ int stm32l4_gpio_initialize(void) pincount++; } #endif - + return 0; } #endif /* CONFIG_DEV_GPIO && !CONFIG_GPIO_LOWER_HALF */ diff --git a/configs/or1k/src/or1k_autoled.c b/configs/or1k/src/or1k_autoled.c index dc6e515e04..a27e365f48 100644 --- a/configs/or1k/src/or1k_autoled.c +++ b/configs/or1k/src/or1k_autoled.c @@ -78,7 +78,7 @@ void board_autoled_initialize(void) /* Set the or1k GPIO direction register to output */ /* The Terasic C5G has 18 LEDs on GPIO0[0:17] */ - + *led_dir = 0x3fff; *led_data = 0x0; } diff --git a/configs/stm32f4discovery/README.txt b/configs/stm32f4discovery/README.txt index d0d60c48ce..ec1638edb3 100644 --- a/configs/stm32f4discovery/README.txt +++ b/configs/stm32f4discovery/README.txt @@ -1204,7 +1204,7 @@ Configuration Sub-directories 1. Prepare USB flash storage. This configuration depends on .WAV files provided to the system via a USB flash stick. There are some sample audio files at https://github.com/tdrozdovskiy/CS43L22-Audio-driver - and these steps will put those sample .WAV files onto the USB flash: + and these steps will put those sample .WAV files onto the USB flash: a. Format the USB flash storage into FAT. For example by next command diff --git a/configs/stm32f4discovery/src/stm32_lis3dsh.c b/configs/stm32f4discovery/src/stm32_lis3dsh.c index 600621786f..2e8435f402 100644 --- a/configs/stm32f4discovery/src/stm32_lis3dsh.c +++ b/configs/stm32f4discovery/src/stm32_lis3dsh.c @@ -105,7 +105,7 @@ int attach_disc_lis3dsh(FAR struct lis3dsh_config_s *config, xcpt_t interrupt_ha * Zero (OK) on success; a negated errno value on failure. * ************************************************************************************/ - + int stm32_lis3dshinitialize(FAR const char *devpath) { static struct lis3dsh_config_s acc0_config; @@ -113,7 +113,7 @@ int stm32_lis3dshinitialize(FAR const char *devpath) int ret; sninfo("Initializing LIS3DSH\n"); - + acc0_config.irq=22; acc0_config.spi_devid=0; acc0_config.attach = &attach_disc_lis3dsh; diff --git a/configs/stm32f746g-disco/include/board.h b/configs/stm32f746g-disco/include/board.h index 0fdefbb7bb..0a71112f34 100644 --- a/configs/stm32f746g-disco/include/board.h +++ b/configs/stm32f746g-disco/include/board.h @@ -406,7 +406,7 @@ /* Vertical Sync Polarity */ #define BOARD_LTDC_GCR_VSPOL 0 /* !LTDC_GCR_VSPOL */ /* Horicontal Sync Polarity */ -#define BOARD_LTDC_GCR_HSPOL 0 /* !LTDC_GCR_HSPOL */ +#define BOARD_LTDC_GCR_HSPOL 0 /* !LTDC_GCR_HSPOL */ /* GPIO pinset */ diff --git a/configs/stm32l476-mdk/src/stm32_autoleds.c b/configs/stm32l476-mdk/src/stm32_autoleds.c index 85efaa990d..52dcb90580 100644 --- a/configs/stm32l476-mdk/src/stm32_autoleds.c +++ b/configs/stm32l476-mdk/src/stm32_autoleds.c @@ -54,7 +54,7 @@ * * ------------------ ------------------------ ------ * SYMBOL Meaning LED - * ------------------ ------------------------ ------ + * ------------------ ------------------------ ------ * * LED_STARTED NuttX has been started OFF * LED_HEAPALLOCATE Heap has been allocated OFF diff --git a/drivers/analog/dac7571.c b/drivers/analog/dac7571.c index 2288dfc5e3..d404328a64 100644 --- a/drivers/analog/dac7571.c +++ b/drivers/analog/dac7571.c @@ -222,7 +222,7 @@ static int dac7571_send(FAR struct dac_dev_s *dev, FAR struct dac_msg_s *msg) /* Then perform the transfer. */ - ret = i2c_write(priv->i2c, &config, buffer, BUFFER_SIZE); + ret = i2c_write(priv->i2c, &config, buffer, BUFFER_SIZE); if (ret < 0) { aerr("ERROR: dac7571_send failed code:%d\n", ret); diff --git a/drivers/lcd/max7219.c b/drivers/lcd/max7219.c index 7054129558..f80d1e7731 100644 --- a/drivers/lcd/max7219.c +++ b/drivers/lcd/max7219.c @@ -841,7 +841,7 @@ static inline void up_clear(FAR struct max7219_dev_s *priv) * spi - An instance of the SPI interface to use to communicate * with the MAX7219. * devno - Device number to identify current display. - * + * * Returned Value: * Zero (OK) on success; a negated errno value on failure. * diff --git a/drivers/sensors/adxl372.c b/drivers/sensors/adxl372.c index 21b6581316..f01dde1a2b 100644 --- a/drivers/sensors/adxl372.c +++ b/drivers/sensors/adxl372.c @@ -570,7 +570,7 @@ static ssize_t adxl372_dvr_read(FAR void *instance_handle, FAR char *buffer, size_t buflen) { FAR struct adxl372_dev_s *priv = ((FAR struct adxl372_dev_s *)instance_handle); - union + union { int16_t d16; char d8[2]; diff --git a/drivers/sensors/apds9960.c b/drivers/sensors/apds9960.c index a082af777c..32c2da0370 100644 --- a/drivers/sensors/apds9960.c +++ b/drivers/sensors/apds9960.c @@ -218,16 +218,16 @@ static void apds9960_resetgesture(FAR struct apds9960_dev_s *priv) { priv->gesture_data.index = 0; priv->gesture_data.total_gestures = 0; - + priv->gesture_ud_delta = 0; priv->gesture_lr_delta = 0; - + priv->gesture_ud_count = 0; priv->gesture_lr_count = 0; - + priv->gesture_near_count = 0; priv->gesture_far_count = 0; - + priv->gesture_state = 0; } @@ -288,7 +288,7 @@ static int apds9960_setdefault(FAR struct apds9960_dev_s *priv) } /* Set LED driver strength to 100mA, AGAIN 4X and PGAIN 4X */ - + ret = apds9960_i2c_write8(priv, APDS9960_CONTROL, DEFAULT_CONTROL); if (ret < 0) { @@ -443,7 +443,7 @@ static int apds9960_setdefault(FAR struct apds9960_dev_s *priv) return ret; } - return OK; + return OK; } /**************************************************************************** @@ -600,7 +600,7 @@ static bool apds9960_isgestureavailable(FAR struct apds9960_dev_s *priv) { int ret; uint8_t val; - + /* Read value from GSTATUS register */ ret = apds9960_i2c_read8(priv, APDS9960_GSTATUS, &val); @@ -656,7 +656,7 @@ static bool apds9960_processgesture(FAR struct apds9960_dev_s *priv) priv->gesture_data.total_gestures); return false; } - + /* Check to make sure our data isn't out of bounds */ if ((priv->gesture_data.total_gestures <= 32) && \ @@ -678,7 +678,7 @@ static bool apds9960_processgesture(FAR struct apds9960_dev_s *priv) break; } } - + /* If one of the _first values is 0, then there is no good data */ if ((u_first == 0) || (d_first == 0) || \ @@ -712,14 +712,14 @@ static bool apds9960_processgesture(FAR struct apds9960_dev_s *priv) } } } - + /* Calculate the first vs. last ratio of up/down and left/right */ ud_ratio_first = ((u_first - d_first) * 100) / (u_first + d_first); lr_ratio_first = ((l_first - r_first) * 100) / (l_first + r_first); ud_ratio_last = ((u_last - d_last) * 100) / (u_last + d_last); lr_ratio_last = ((l_last - r_last) * 100) / (l_last + r_last); - + sninfo("Last Values: \n"); sninfo("U: %03d\n", u_last); sninfo("D: %03d\n", d_last); @@ -736,7 +736,7 @@ static bool apds9960_processgesture(FAR struct apds9960_dev_s *priv) ud_delta = ud_ratio_last - ud_ratio_first; lr_delta = lr_ratio_last - lr_ratio_first; - + sninfo("Deltas: \n"); sninfo("UD: %03d\n", ud_delta); sninfo("LR: %03d\n", lr_delta); @@ -745,11 +745,11 @@ static bool apds9960_processgesture(FAR struct apds9960_dev_s *priv) priv->gesture_ud_delta += ud_delta; priv->gesture_lr_delta += lr_delta; - + sninfo("Accumulations: \n"); sninfo("UD: %03d\n", priv->gesture_ud_delta); sninfo("LR: %03d\n", priv->gesture_lr_delta); - + /* Determine U/D gesture */ if (priv->gesture_ud_delta >= GESTURE_SENSITIVITY_1) @@ -767,7 +767,7 @@ static bool apds9960_processgesture(FAR struct apds9960_dev_s *priv) priv->gesture_ud_count = 0; } } - + /* Determine L/R gesture */ if (priv->gesture_lr_delta >= GESTURE_SENSITIVITY_1) @@ -804,7 +804,7 @@ static bool apds9960_processgesture(FAR struct apds9960_dev_s *priv) priv->gesture_far_count++; } } - + if ((priv->gesture_near_count >= 10) && \ (priv->gesture_far_count >= 2)) { @@ -833,7 +833,7 @@ static bool apds9960_processgesture(FAR struct apds9960_dev_s *priv) { priv->gesture_near_count++; } - + if (priv->gesture_near_count >= 10) { priv->gesture_ud_count = 0; @@ -843,13 +843,13 @@ static bool apds9960_processgesture(FAR struct apds9960_dev_s *priv) } } } - + sninfo(" UD_CT: %03d\n", priv->gesture_ud_count); sninfo(" LR_CT: %03d\n", priv->gesture_lr_count); sninfo(" NEAR_CT: %03d\n", priv->gesture_near_count); sninfo(" FAR_CT: %03d\n", priv->gesture_far_count); sninfo("----------------------\n"); - + return false; } @@ -996,7 +996,7 @@ static int apds9960_readgesture(FAR struct apds9960_dev_s *priv) int motion; int ret; int i; - + /* Make sure that power and gesture is on and data is valid */ if (!apds9960_isgestureavailable(priv)) @@ -1011,7 +1011,7 @@ static int apds9960_readgesture(FAR struct apds9960_dev_s *priv) /* Wait some time to collect next batch of FIFO data */ nxsig_usleep(FIFO_PAUSE_TIME); - + /* Get the contents of the STATUS register. Is data still valid? */ ret = apds9960_i2c_read8(priv, APDS9960_GSTATUS, &gstatus); @@ -1020,7 +1020,7 @@ static int apds9960_readgesture(FAR struct apds9960_dev_s *priv) snerr("ERROR: Failed to read APDS9960_GSTATUS!\n"); return ret; } - + /* If we have valid data, read in FIFO */ if ((gstatus & GVALID) == GVALID) @@ -1091,7 +1091,7 @@ static int apds9960_readgesture(FAR struct apds9960_dev_s *priv) //sninfo("gesture_motion = %d\n", gesture_motion); } } - + /* Reset data */ priv->gesture_data.index = 0; diff --git a/drivers/sensors/lsm330_spi.c b/drivers/sensors/lsm330_spi.c index 6a8d80490f..a99c28a951 100644 --- a/drivers/sensors/lsm330_spi.c +++ b/drivers/sensors/lsm330_spi.c @@ -1095,7 +1095,7 @@ static int lsm330_dvr_ioctl(FAR void *instance_handle, int cmd, * None * ******************************************************************************/ - + static void lsm330_dvr_exchange(FAR void *instance_handle, FAR const void *txbuffer, FAR void *rxbuffer, size_t nwords) diff --git a/drivers/usbdev/rndis_std.h b/drivers/usbdev/rndis_std.h index c90dfddae7..1a5b8e7997 100644 --- a/drivers/usbdev/rndis_std.h +++ b/drivers/usbdev/rndis_std.h @@ -173,7 +173,7 @@ struct rndis_query_cmplt uint32_t buffer[]; /* Buffer */ }; -struct rndis_set_msg +struct rndis_set_msg { struct rndis_command_header hdr; uint32_t objid; /* ObjectID */ diff --git a/drivers/usbdev/usbmsc.h b/drivers/usbdev/usbmsc.h index d0d93d3489..9f27b8a59d 100644 --- a/drivers/usbdev/usbmsc.h +++ b/drivers/usbdev/usbmsc.h @@ -310,7 +310,7 @@ #define USBMSC_MKEPBULKOUT(devDesc) ((devDesc)->epno[USBMSC_EP_BULKOUT_IDX]) #define USBMSC_EPOUTBULK_ATTR (USB_EP_ATTR_XFER_BULK) -#define USBMSC_MKEPBULKIN(devDesc) (USB_DIR_IN | (devDesc)->epno[USBMSC_EP_BULKIN_IDX]) +#define USBMSC_MKEPBULKIN(devDesc) (USB_DIR_IN | (devDesc)->epno[USBMSC_EP_BULKIN_IDX]) #define USBMSC_EPINBULK_ATTR (USB_EP_ATTR_XFER_BULK) #define USBMSC_HSBULKMAXPACKET (512) diff --git a/drivers/wireless/spirit/include/spirit_aes.h b/drivers/wireless/spirit/include/spirit_aes.h index 668cafe630..c54f94ef69 100644 --- a/drivers/wireless/spirit/include/spirit_aes.h +++ b/drivers/wireless/spirit/include/spirit_aes.h @@ -54,7 +54,7 @@ * In order to decrypt data, the user must manage the AES_END IRQ and have a * decryption key. There are two operative modes to make the data * decryption: - * + * * 1. Derive the decryption key from the encryption key and decrypt data * directly using the spirit_aes_derivekey_decrypt() function * @@ -126,7 +126,7 @@ int spirit_aes_enable(FAR struct spirit_library_s *spirit, enum spirit_functional_state_e newstate); /****************************************************************************** - * Name: + * Name: spirit_aes_write_datain * * Description: * Writes the data to encrypt or decrypt, or the encryption key for the @@ -151,7 +151,7 @@ int spirit_aes_write_datain(FAR struct spirit_library_s *spirit, FAR const uint8_t *buffer, uint8_t buflen); /****************************************************************************** - * Name: + * Name: spirit_aes_read_dataout * * Description: * Returns the encrypted or decrypted data or the decription key from the @@ -195,7 +195,7 @@ int spirit_aes_write_key(FAR struct spirit_library_s *spirit, FAR const uint8_t *key); /****************************************************************************** - * Name: + * Name: spirit_aes_read_key * * Description: * Returns the encryption/decryption key from the AES_KEY_IN register. @@ -247,7 +247,7 @@ int spirit_aes_enc2deckey(FAR struct spirit_library_s *spirit); int spirit_aes_encrypt(FAR struct spirit_library_s *spirit); /****************************************************************************** - * Name: + * Name: spirit_aes_decrypt * * Description: * Executes the decryption operation. diff --git a/drivers/wireless/spirit/include/spirit_directrf.h b/drivers/wireless/spirit/include/spirit_directrf.h index bbf412748c..79364f22a5 100644 --- a/drivers/wireless/spirit/include/spirit_directrf.h +++ b/drivers/wireless/spirit/include/spirit_directrf.h @@ -124,7 +124,7 @@ int spirit_directrf_set_rxmode(FAR struct spirit_library_s *spirit, enum spirit_directrx_e directrx); /****************************************************************************** - * Name: + * Name: spirit_directrf_get_rxmode * * Description: * Returns the DirectRF RX mode of SPIRIT. @@ -141,7 +141,7 @@ enum spirit_directrx_e spirit_directrf_get_rxmode(FAR struct spirit_library_s *spirit); /****************************************************************************** - * Name: + * Name: spirit_directrf_set_txmode * * Description: * Sets the TX mode of SPIRIT. @@ -159,7 +159,7 @@ int spirit_directrf_set_txmode(FAR struct spirit_library_s *spirit, enum spirit_directtx_e directtx); /****************************************************************************** - * Name: + * Name: spirit_directrf_get_txmode * * Description: * Returns the DirectRF TX mode of SPIRIT. diff --git a/drivers/wireless/spirit/include/spirit_pktmbus.h b/drivers/wireless/spirit/include/spirit_pktmbus.h index c8fe909fce..8cc1c46d39 100644 --- a/drivers/wireless/spirit/include/spirit_pktmbus.h +++ b/drivers/wireless/spirit/include/spirit_pktmbus.h @@ -258,7 +258,7 @@ int spirit_pktmbus_set_postamble(FAR struct spirit_library_s *spirit, uint8_t postamble); /****************************************************************************** - * Name: + * Name: spirit_pktmbus_get_postamble * * Description: * Returns how many chip sequence "01" are used in the postamble @@ -274,7 +274,7 @@ int spirit_pktmbus_set_postamble(FAR struct spirit_library_s *spirit, uint8_t spirit_pktmbus_get_postamble(FAR struct spirit_library_s *spirit); /****************************************************************************** - * Name: + * Name: spirit_pktmbus_set_submode * * Description: * Sets the MBUS submode used. diff --git a/drivers/wireless/spirit/lib/spirit_aes.c b/drivers/wireless/spirit/lib/spirit_aes.c index df2f5a3192..9b31e6a5b0 100644 --- a/drivers/wireless/spirit/lib/spirit_aes.c +++ b/drivers/wireless/spirit/lib/spirit_aes.c @@ -98,7 +98,7 @@ int spirit_aes_enable(FAR struct spirit_library_s *spirit, } /****************************************************************************** - * Name: + * Name: spirit_aes_write_datain * * Description: * Writes the data to encrypt or decrypt, or the encryption key for the @@ -149,7 +149,7 @@ int spirit_aes_write_datain(FAR struct spirit_library_s *spirit, } /****************************************************************************** - * Name: + * Name: spirit_aes_read_dataout * * Description: * Returns the encrypted or decrypted data or the decription key from the @@ -239,7 +239,7 @@ int spirit_aes_write_key(FAR struct spirit_library_s *spirit, } /****************************************************************************** - * Name: + * Name: spirit_aes_read_key * * Description: * Returns the encryption/decryption key from the AES_KEY_IN register. @@ -319,7 +319,7 @@ int spirit_aes_encrypt(FAR struct spirit_library_s *spirit) } /****************************************************************************** - * Name: + * Name: spirit_aes_decrypt * * Description: * Executes the decryption operation. diff --git a/drivers/wireless/spirit/lib/spirit_directrf.c b/drivers/wireless/spirit/lib/spirit_directrf.c index 2543acfc8b..61dc69e75c 100644 --- a/drivers/wireless/spirit/lib/spirit_directrf.c +++ b/drivers/wireless/spirit/lib/spirit_directrf.c @@ -91,7 +91,7 @@ int spirit_directrf_set_rxmode(FAR struct spirit_library_s *spirit, } /****************************************************************************** - * Name: + * Name: spirit_directrf_get_rxmode * * Description: * Returns the DirectRF RX mode of SPIRIT. @@ -119,7 +119,7 @@ enum spirit_directrx_e } /****************************************************************************** - * Name: + * Name: spirit_directrf_set_txmode * * Description: * Sets the TX mode of SPIRIT. @@ -162,7 +162,7 @@ int spirit_directrf_set_txmode(FAR struct spirit_library_s *spirit, } /****************************************************************************** - * Name: + * Name: spirit_directrf_get_txmode * * Description: * Returns the DirectRF TX mode of SPIRIT. diff --git a/drivers/wireless/spirit/lib/spirit_gpio.c b/drivers/wireless/spirit/lib/spirit_gpio.c index e7bc071b9d..fc4cad68e6 100644 --- a/drivers/wireless/spirit/lib/spirit_gpio.c +++ b/drivers/wireless/spirit/lib/spirit_gpio.c @@ -107,7 +107,7 @@ int spirit_gpio_enable_tempsensor(FAR struct spirit_library_s *spirit, DEBUGASSERT(IS_SPIRIT_FUNCTIONAL_STATE(newstate)); - /* Reads the ANA_FUNC_CONF0 register and mask the result to enable or disable + /* Reads the ANA_FUNC_CONF0 register and mask the result to enable or disable * the temperature sensor */ ret = spirit_reg_read(spirit, ANA_FUNC_CONF0_BASE, ®val, 1); diff --git a/drivers/wireless/spirit/lib/spirit_pktmbus.c b/drivers/wireless/spirit/lib/spirit_pktmbus.c index b110663be0..c95ea7dcd3 100644 --- a/drivers/wireless/spirit/lib/spirit_pktmbus.c +++ b/drivers/wireless/spirit/lib/spirit_pktmbus.c @@ -282,7 +282,7 @@ int spirit_pktmbus_set_postamble(FAR struct spirit_library_s *spirit, } /****************************************************************************** - * Name: + * Name: spirit_pktmbus_get_postamble * * Description: * Returns how many chip sequence "01" are used in the postamble @@ -309,7 +309,7 @@ uint8_t spirit_pktmbus_get_postamble(FAR struct spirit_library_s *spirit) } /****************************************************************************** - * Name: + * Name: spirit_pktmbus_set_submode * * Description: * Sets the MBUS submode used. diff --git a/fs/tmpfs/fs_tmpfs.c b/fs/tmpfs/fs_tmpfs.c index c50cd57862..a904433f11 100644 --- a/fs/tmpfs/fs_tmpfs.c +++ b/fs/tmpfs/fs_tmpfs.c @@ -1917,7 +1917,7 @@ static int tmpfs_opendir(FAR struct inode *mountpt, FAR const char *relpath, { dir->u.tmpfs.tf_tdo = tdo; dir->u.tmpfs.tf_index = 0; - + tmpfs_unlock_directory(tdo); } diff --git a/graphics/README.txt b/graphics/README.txt index c7cc7e3740..62c956ba6a 100644 --- a/graphics/README.txt +++ b/graphics/README.txt @@ -26,7 +26,7 @@ at the present, but here is the longer term roadmap: operations. The toolkit can be used for window-oriented graphics without NxWidgets and is built on top of NX. NXFONTS - A set of C graphics tools for presenting (bitmap) font images. - NX - The tiny NuttX windowing system. This includes the small-footprint + NX - The tiny NuttX windowing system. This includes the small-footprint multi-user implentation (NXMU as described below). NX can be used without NxWidgets and without NXTOOLKIT for raw access to window memory. NXGLIB - Low level graphics utilities and direct framebuffer rendering logic. diff --git a/include/lzf.h b/include/lzf.h index 81ffe777d8..d51ed2cd9f 100644 --- a/include/lzf.h +++ b/include/lzf.h @@ -4,17 +4,17 @@ * * Copyright (c) 2000-2008 Marc Alexander Lehmann * This algorithm is believed to be patent-free. - * + * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER- * CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO diff --git a/include/nuttx/lcd/max7219.h b/include/nuttx/lcd/max7219.h index ee027e99eb..c6b279b2f4 100644 --- a/include/nuttx/lcd/max7219.h +++ b/include/nuttx/lcd/max7219.h @@ -110,7 +110,7 @@ extern "C" * spi - An instance of the SPI interface to use to communicate * with the MAX7219. * devno - Device number to identify current display. - * + * * Returned Value: * Zero (OK) on success; a negated errno value on failure. * diff --git a/include/nuttx/net/radiodev.h b/include/nuttx/net/radiodev.h index eb144f2dff..c320779e81 100644 --- a/include/nuttx/net/radiodev.h +++ b/include/nuttx/net/radiodev.h @@ -143,7 +143,7 @@ struct radiodev_properties_s * * The radio network driver should then inform the network of the recipt * of a frame by calling sixlowpan_input() or ieee802154_input(). That - * single frame (or, perhaps, list of frames) should be provided as + * single frame (or, perhaps, list of frames) should be provided as * second argument of that call. * * The network will free the IOB by calling iob_free after it has diff --git a/include/nuttx/sensors/cluster_driver.h b/include/nuttx/sensors/cluster_driver.h index 3c08486c6c..5d22b56001 100644 --- a/include/nuttx/sensors/cluster_driver.h +++ b/include/nuttx/sensors/cluster_driver.h @@ -45,7 +45,7 @@ * priority" priority level. This mechanism is commonly supported by writing * the collection/processing task as a kernel driver worker thread that can * access multiple sensors. - * + * * A clean way to implement this is to implement this collection/processing * mechanism is as a driver that has efficient kernel-to-kernel access to * other sensor leaf-drivers that support the cluster driver interface. @@ -175,7 +175,7 @@ extern "C" * leaf driver's register function. * It is passed as a parameter to the leaf driver's * driver_open() and driver_close() functions. - * + * * Returned Value: * Zero (OK) on success; a negated errno value on failure. * diff --git a/libs/README.txt b/libs/README.txt index 2c1fbff37e..96af7366a3 100644 --- a/libs/README.txt +++ b/libs/README.txt @@ -15,7 +15,7 @@ creatures. The have these properties: 3. When used by the OS, some special care must be taken to assure that the OS logic does not disrupt the user's errno value and that the OS does not create inappropriate cancellation points. - + For example, sem_wait() is both a cancellation point and modifies the errno value. So within the FLAT build and without kernel version for the PROTECTED and KERNEL builds, the special internal OS interface diff --git a/libs/libc/lzf/lzf.h b/libs/libc/lzf/lzf.h index ca37c729c5..01f887c977 100644 --- a/libs/libc/lzf/lzf.h +++ b/libs/libc/lzf/lzf.h @@ -2,17 +2,17 @@ * libs/libc/lzf/lzf.h * * Copyright (c) 2000-2007 Marc Alexander Lehmann - * + * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER- * CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO diff --git a/libs/libc/lzf/lzf_c.c b/libs/libc/lzf/lzf_c.c index 11e31e371f..308068e6ee 100644 --- a/libs/libc/lzf/lzf_c.c +++ b/libs/libc/lzf/lzf_c.c @@ -2,17 +2,17 @@ * libs/libc/lzf/lzf_c.c * * Copyright (c) 2000-2010 Marc Alexander Lehmann - * + * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER- * CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO @@ -429,7 +429,7 @@ genhdr: header = (FAR struct lzf_type1_header_s *) ((uintptr_t)out_data - LZF_TYPE1_HDR_SIZE); - + header->lzf_magic[0] = 'Z'; header->lzf_magic[1] = 'V'; header->lzf_type = LZF_TYPE1_HDR; diff --git a/libs/libc/lzf/lzf_d.c b/libs/libc/lzf/lzf_d.c index fb174baa96..ec66b6210d 100644 --- a/libs/libc/lzf/lzf_d.c +++ b/libs/libc/lzf/lzf_d.c @@ -2,17 +2,17 @@ * libs/libc/lzf/lzf_c.c * * Copyright (c) 2000-2010 Marc Alexander Lehmann - * + * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER- * CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO @@ -58,7 +58,7 @@ * ****************************************************************************/ -unsigned int lzf_decompress (FAR const void *const in_data, +unsigned int lzf_decompress (FAR const void *const in_data, unsigned int in_len, FAR void *out_data, unsigned int out_len) { diff --git a/libs/libc/math/__cos.c b/libs/libc/math/__cos.c index 1520dcd777..e91a6cc714 100644 --- a/libs/libc/math/__cos.c +++ b/libs/libc/math/__cos.c @@ -38,7 +38,7 @@ * POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************/ - + /* __cos( x, y ) * * kernel cos function on [-pi/4, pi/4], pi/4 ~ 0.785398164 diff --git a/libs/libc/misc/lib_ncompress.c b/libs/libc/misc/lib_ncompress.c index 942edc4353..752bf3f94e 100644 --- a/libs/libc/misc/lib_ncompress.c +++ b/libs/libc/misc/lib_ncompress.c @@ -71,7 +71,7 @@ # define ARGS(a) () #endif -#define LARGS(a) () /* Relay on include files for libary func defs. +#define LARGS(a) () /* Relay on include files for libary func defs. */ #ifndef SIG_TYPE @@ -90,7 +90,7 @@ # define OBUFSIZ BUFSIZ /* Default output buffer size */ #endif -#define MAXPATHLEN 1024 /* MAXPATHLEN - maximum length of a pathname we +#define MAXPATHLEN 1024 /* MAXPATHLEN - maximum length of a pathname we * allow */ #define SIZE_INNER_LOOP 256 /* Size of the inter (fast) compress loop */ @@ -112,7 +112,7 @@ #define INIT_BITS 9 /* initial number of bits/code */ #ifndef SACREDMEM - /* + /* * SACREDMEM is the amount of physical memory saved for others; compress * will hog the rest. */ @@ -120,7 +120,7 @@ #endif #ifndef USERMEM - /* + /* * Set USERMEM to the maximum amount of physical user memory available * in bytes. USERMEM is used to determine the maximum BITS that can be used * for compression. @@ -320,7 +320,7 @@ int block_mode = BLOCK_MODE; /* Block compress mode -C compatible with 2.0 */ int maxbits = BITS; /* user settable max # bits/code */ int zcat_flg = 0; /* Write output on stdout, suppress messages */ int recursive = 0; /* compress directories */ -int exit_code = -1; /* Exitcode of compress (-1 no file compressed) +int exit_code = -1; /* Exitcode of compress (-1 no file compressed) */ char_type inbuf[IBUFSIZ + 64]; /* Input buffer */ @@ -436,7 +436,7 @@ int primetab[256] = /* Special secudary hash table. */ /* * compress fdin to fdout * - * Algorithm: use open addressing double hashing (no chaining) on the + * Algorithm: use open addressing double hashing (no chaining) on the * prefix code / next character combination. We do a variant of Knuth's * algorithm D (vol. 3, sec. 6.4) along with G. Knott's relatively-prime * secondary probe. Here, the modular division first probe is gives way @@ -541,8 +541,8 @@ void compress(int fdin, int fdout) } else rat = (bytes_in << 8) / (bytes_out + (outbits >> 3)); /* 8 - * fractional - * bits + * fractional + * bits */ if (rat >= ratio) ratio = (int)rat; diff --git a/libs/libc/signal/sigwait.c b/libs/libc/signal/sigwait.c index 927472e5cc..d50fb07e73 100644 --- a/libs/libc/signal/sigwait.c +++ b/libs/libc/signal/sigwait.c @@ -62,17 +62,17 @@ * suspended until one or more becomes pending. The signals defined by set * will been blocked at the time of the call to sigwait(); otherwise the * behavior is undefined. The effect of sigwait() on the signal actions - * for the signals in set is unspecified. + * for the signals in set is unspecified. * * If more than one thread is using sigwait() to wait for the same * signal, no more than one of these threads will return from sigwait() * with the signal number. Which thread returns from sigwait() if more - * than a single thread is waiting is unspecified. + * than a single thread is waiting is unspecified. * * Should any of the multiple pending signals in the range SIGRTMIN to * SIGRTMAX be selected, it shall be the lowest numbered one. The selection * order between realtime and non-realtime signals, or between multiple - * pending non-realtime signals, is unspecified. + * pending non-realtime signals, is unspecified. * * Input Parameters: * set - The set of pending signals to wait for @@ -81,7 +81,7 @@ * Returned Value: * Upon successful completion, sigwait() stores the signal number of the * received signal at the location referenced by sig and returns zero. - * Otherwise, an error number is returned to indicate the error. + * Otherwise, an error number is returned to indicate the error. * ****************************************************************************/ diff --git a/libs/libc/unistd/lib_sysconf.c b/libs/libc/unistd/lib_sysconf.c index adea708e04..7f51d9e99e 100644 --- a/libs/libc/unistd/lib_sysconf.c +++ b/libs/libc/unistd/lib_sysconf.c @@ -63,7 +63,7 @@ * values used for name. * * Variable Value of Name - * + * * {AIO_LISTIO_MAX} _SC_AIO_LISTIO_MAX * {AIO_MAX} _SC_AIO_MAX * {AIO_PRIO_DELTA_MAX} _SC_AIO_PRIO_DELTA_MAX diff --git a/net/ipforward/ipfwd_poll.c b/net/ipforward/ipfwd_poll.c index bae659990b..be6c50c87f 100644 --- a/net/ipforward/ipfwd_poll.c +++ b/net/ipforward/ipfwd_poll.c @@ -60,7 +60,7 @@ * * Description: * Generic output conversion hook. Only needed for IEEE802.15.4 (and - * other, non-standard packet radios) for now but this is a point where + * other, non-standard packet radios) for now but this is a point where * support for other conversions may be provided. * ****************************************************************************/ diff --git a/net/route/ramroute.h b/net/route/ramroute.h index 3acaea7c47..2705fd3646 100644 --- a/net/route/ramroute.h +++ b/net/route/ramroute.h @@ -200,7 +200,7 @@ void net_freeroute_ipv6(FAR struct net_route_ipv6_s *route); * Name: (various low-level list operations) * * Description: - * Perform operations on in-memory routing table lists + * Perform operations on in-memory routing table lists * * Input Parameters: * entry - A pointer to the new entry to add to the list diff --git a/sched/sched/sched_reprioritize.c b/sched/sched/sched_reprioritize.c index 3c65eec35f..3d88accdfe 100644 --- a/sched/sched/sched_reprioritize.c +++ b/sched/sched/sched_reprioritize.c @@ -69,7 +69,7 @@ * * Returned Value: * On success, sched_reporioritize() returns 0 (OK). On error, a negated - * errno value is returned. + * errno value is returned. * * EINVAL The parameter 'param' is invalid or does not make sense for the * current scheduling policy. diff --git a/wireless/bluetooth/bt_conn.h b/wireless/bluetooth/bt_conn.h index d7ed3404db..ff86e2a1ae 100644 --- a/wireless/bluetooth/bt_conn.h +++ b/wireless/bluetooth/bt_conn.h @@ -388,7 +388,7 @@ FAR struct bt_conn_s *bt_conn_create_le(FAR const bt_addr_le_t *peer); * Input Parameters: * conn - The connection to send the command on. * rand, ediv - Values to use for the encryption key - * ltk - + * ltk - * * Returned Value: * Zero is returned on success; a negated errno value is returned on any diff --git a/wireless/bluetooth/bt_smp.h b/wireless/bluetooth/bt_smp.h index 12c4bab840..bae3de8a68 100644 --- a/wireless/bluetooth/bt_smp.h +++ b/wireless/bluetooth/bt_smp.h @@ -10,21 +10,21 @@ * * Copyright (c) 2016, Intel Corporation * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. - * + * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. - * + * * 3. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE diff --git a/wireless/pktradio/pktradio_loopback.c b/wireless/pktradio/pktradio_loopback.c index 0523c947e6..1aaf9174c8 100644 --- a/wireless/pktradio/pktradio_loopback.c +++ b/wireless/pktradio/pktradio_loopback.c @@ -675,7 +675,7 @@ static int lo_addmac(FAR struct net_driver_s *dev, FAR const uint8_t *mac) { #if CONFIG_PKTRADIO_ADDRLEN == 1 ninfo("MAC: %02x\n", mac[0]); - + #elif CONFIG_PKTRADIO_ADDRLEN == 2 ninfo("MAC: %02x:%02x\n", mac[0], mac[1]); @@ -713,7 +713,7 @@ static int lo_rmmac(FAR struct net_driver_s *dev, FAR const uint8_t *mac) { #if CONFIG_PKTRADIO_ADDRLEN == 1 ninfo("MAC: %02x\n", mac[0]); - + #elif CONFIG_PKTRADIO_ADDRLEN == 2 ninfo("MAC: %02x:%02x\n", mac[0], mac[1]);