configs/: Remove dangling spaces at the end of lines in *.c and *.h files.

This commit is contained in:
Gregory Nutt 2017-06-28 13:21:20 -06:00
parent 44545781e5
commit c67b807f43
31 changed files with 61 additions and 62 deletions

1
TODO
View File

@ -1239,7 +1239,6 @@ o Network (net/, drivers/net)
be supported in order to support ping6 on a 6LoWPAN network.
If RFC 6775 were implemented, then arbitrary IPv6 addresses,
including addresses from DHCPv6 could be used.
can
UPDATE: With IPv6 neighbor discovery, any IPv6 address may
be associated with any short or extended address. In fact,

View File

@ -145,7 +145,7 @@
* briefly while the assertion is handled. You will probably never see this.
*
* Flashing RED:
* - In the event of a fatal crash,
* - In the event of a fatal crash,
* extinguished and the RED component will FLASH at a 2Hz rate.
*/
/* RED GREEN BLUE */

View File

@ -3,7 +3,7 @@
*
* Copyright (C) 2014 Droidifi LLC. All rights reserved.
* Author: Jim Ewing <jim@droidifi.com>
*
*
* Adapted from code Copyright (C) 2014 Texas Instruments Incorporated
*
* Redistribution and use in source and binary forms, with or without

View File

@ -237,7 +237,7 @@
* Name: stm32_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the Mikroe Clicker2 STM32
* Called to configure SPI chip select GPIO pins for the Mikroe Clicker2 STM32
* board.
*
****************************************************************************/

View File

@ -212,14 +212,14 @@ static void adxl345_enable(FAR struct adxl345_config_s *state, bool enable)
kl_configgpio(GPIO_ADXL345_INT1);
(void)kl_gpioirqattach(GPIO_ADXL345_INT1, adxl345_interrupt, NULL);
kl_gpioirqenable(GPIO_ADXL345_INT1);
kl_gpioirqenable(GPIO_ADXL345_INT1);
}
else
{
/* Configure the interrupt with a NULL handler to disable it */
(void)kl_gpioirqattach(GPIO_ADXL345_INT1, NULL, NULL);
kl_gpioirqdisable(GPIO_ADXL345_INT1);
kl_gpioirqdisable(GPIO_ADXL345_INT1);
}
leave_critical_section(flags);

View File

@ -287,7 +287,7 @@
#define LED_PANIC 3 /* Flashing */
/* UART Pins ****************************************************************/
/*
/*
* The following definitions must be provided so that the LPC43 serial
* driver can set up the U[S]ART for the serial console properly (see the
* file arch/arc/src/lpc43xx/lpc43*_pinconf.h for more info).

View File

@ -67,5 +67,5 @@
void board_autoled_on(int led)
{
}

View File

@ -95,7 +95,7 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {3};
/* Configurations of pins used byte each ADC channels
*
* {GPIO_ADC1_IN1, GPIO_ADC1_IN2, GPIO_ADC1_IN3, GPIO_ADC1_IN4, GPIO_ADC1_IN5,
* {GPIO_ADC1_IN1, GPIO_ADC1_IN2, GPIO_ADC1_IN3, GPIO_ADC1_IN4, GPIO_ADC1_IN5,
* GPIO_ADC1_IN6, GPIO_ADC1_IN7, GPIO_ADC1_IN8, GPIO_ADC1_IN9, GPIO_ADC1_IN10,
* GPIO_ADC1_IN11, GPIO_ADC1_IN12, GPIO_ADC1_IN13, GPIO_ADC1_IN15};
*/

View File

@ -163,7 +163,7 @@
#define STM32_APB2_TIM11_CLKIN (2*STM32_PCLK1_FREQUENCY)
/* Timer Frequencies, if APBx is set to 1, frequency is same to APBx
* otherwise frequency is 2xAPBx.
* otherwise frequency is 2xAPBx.
* Note: TIM1,8 are on APB2, others on APB1
*/
/* REVISIT */
@ -177,7 +177,7 @@
#define BOARD_TIM7_FREQUENCY (2*STM32_PCLK1_FREQUENCY)
#define BOARD_TIM8_FREQUENCY (2*STM32_PCLK2_FREQUENCY)
/* SDIO dividers. Note that slower clocking is required when DMA is disabled
/* SDIO dividers. Note that slower clocking is required when DMA is disabled
* in order to avoid RX overrun/TX underrun errors due to delayed responses
* to service FIFOs in interrupt driven mode. These values have not been
* tuned!!!
@ -185,7 +185,7 @@
* HCLK=72MHz, SDIOCLK=72MHz, SDIO_CK=HCLK/(178+2)=400 KHz
*/
/* REVISIT */
#define SDIO_INIT_CLKDIV (178 << SDIO_CLKCR_CLKDIV_SHIFT)
/* DMA ON: HCLK=72 MHz, SDIOCLK=72MHz, SDIO_CK=HCLK/(2+2)=18 MHz
@ -194,9 +194,9 @@
/* REVISIT */
#ifdef CONFIG_SDIO_DMA
# define SDIO_MMCXFR_CLKDIV (2 << SDIO_CLKCR_CLKDIV_SHIFT)
# define SDIO_MMCXFR_CLKDIV (2 << SDIO_CLKCR_CLKDIV_SHIFT)
#else
# define SDIO_MMCXFR_CLKDIV (3 << SDIO_CLKCR_CLKDIV_SHIFT)
# define SDIO_MMCXFR_CLKDIV (3 << SDIO_CLKCR_CLKDIV_SHIFT)
#endif
/* DMA ON: HCLK=72 MHz, SDIOCLK=72MHz, SDIO_CK=HCLK/(1+2)=24 MHz

View File

@ -103,7 +103,7 @@ void up_leds(int r, int g ,int b, int freqs)
void up_ioinit(void)
{
/* Configure the GPIO pins as inputs. NOTE that EXTI interrupts are
/* Configure the GPIO pins as inputs. NOTE that EXTI interrupts are
* configured for all pins.
*/

View File

@ -156,7 +156,7 @@
* SAI1PLL output R (ADC1) clock frequency = SAI1VCO frequency / PLLSAI1R, PLLR = 2, 4, 6, or 8, or 0 to disable
*
* We will configure like this
*
*
* PLLSAI1 disabled
*
* ----------------------------------------
@ -173,7 +173,7 @@
* SAI2PLL output R (ADC2) clock frequency = SAI2VCO frequency / PLLSAI2R, PLLR = 2, 4, 6, or 8, or 0 to disable
*
* We will configure like this
*
*
* PLLSAI2 disabled
*
* ----------------------------------------

View File

@ -156,7 +156,7 @@
* SAI1PLL output R (ADC1) clock frequency = SAI1VCO frequency / PLLSAI1R, PLLR = 2, 4, 6, or 8, or 0 to disable
*
* We will configure like this
*
*
* PLLSAI1 disabled
*
* ----------------------------------------
@ -173,7 +173,7 @@
* SAI2PLL output R (ADC2) clock frequency = SAI2VCO frequency / PLLSAI2R, PLLR = 2, 4, 6, or 8, or 0 to disable
*
* We will configure like this
*
*
* PLLSAI2 disabled
*
* ----------------------------------------

View File

@ -56,7 +56,7 @@
#define HAVE_PROC 1
#define HAVE_RTC_DRIVER 1
#define HAVE_MMCSD 1
#if !defined(CONFIG_FS_PROCFS)
# undef HAVE_PROC
#endif

View File

@ -156,7 +156,7 @@
* SAI1PLL output R (ADC1) clock frequency = SAI1VCO frequency / PLLSAI1R, PLLR = 2, 4, 6, or 8, or 0 to disable
*
* We will configure like this
*
*
* PLLSAI1 disabled
*
* ----------------------------------------
@ -173,7 +173,7 @@
* SAI2PLL output R (ADC2) clock frequency = SAI2VCO frequency / PLLSAI2R, PLLR = 2, 4, 6, or 8, or 0 to disable
*
* We will configure like this
*
*
* PLLSAI2 disabled
*
* ----------------------------------------

View File

@ -103,7 +103,7 @@ void up_leds(int r, int g ,int b, int freqs)
void up_ioinit(void)
{
/* Configure the GPIO pins as inputs. NOTE that EXTI interrupts are
/* Configure the GPIO pins as inputs. NOTE that EXTI interrupts are
* configured for all pins.
*/

View File

@ -95,7 +95,7 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {3};
/* Configurations of pins used byte each ADC channels
*
* {GPIO_ADC1_IN1, GPIO_ADC1_IN2, GPIO_ADC1_IN3, GPIO_ADC1_IN4, GPIO_ADC1_IN5,
* {GPIO_ADC1_IN1, GPIO_ADC1_IN2, GPIO_ADC1_IN3, GPIO_ADC1_IN4, GPIO_ADC1_IN5,
* GPIO_ADC1_IN6, GPIO_ADC1_IN7, GPIO_ADC1_IN8, GPIO_ADC1_IN9, GPIO_ADC1_IN10,
* GPIO_ADC1_IN11, GPIO_ADC1_IN12, GPIO_ADC1_IN13, GPIO_ADC1_IN15};
*/

View File

@ -97,7 +97,7 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {1};
/* Configurations of pins used byte each ADC channels
*
* {GPIO_ADC1_IN1, GPIO_ADC1_IN2, GPIO_ADC1_IN3, GPIO_ADC1_IN4, GPIO_ADC1_IN5,
* {GPIO_ADC1_IN1, GPIO_ADC1_IN2, GPIO_ADC1_IN3, GPIO_ADC1_IN4, GPIO_ADC1_IN5,
* GPIO_ADC1_IN6, GPIO_ADC1_IN7, GPIO_ADC1_IN8, GPIO_ADC1_IN9, GPIO_ADC1_IN10,
* GPIO_ADC1_IN11, GPIO_ADC1_IN12, GPIO_ADC1_IN13, GPIO_ADC1_IN15};
*/

View File

@ -2,7 +2,7 @@
* configs/olimex-stm32-h407/include/board.h
*
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
* Author: Gregory Nutt <gnutt@nuttx.org>
* Modified for H407 Neil Hancock
*
* Redistribution and use in source and binary forms, with or without

View File

@ -97,7 +97,7 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {1};
/* Configurations of pins used byte each ADC channels
*
* {GPIO_ADC1_IN1, GPIO_ADC1_IN2, GPIO_ADC1_IN3, GPIO_ADC1_IN4, GPIO_ADC1_IN5,
* {GPIO_ADC1_IN1, GPIO_ADC1_IN2, GPIO_ADC1_IN3, GPIO_ADC1_IN4, GPIO_ADC1_IN5,
* GPIO_ADC1_IN6, GPIO_ADC1_IN7, GPIO_ADC1_IN8, GPIO_ADC1_IN9, GPIO_ADC1_IN10,
* GPIO_ADC1_IN11, GPIO_ADC1_IN12, GPIO_ADC1_IN13, GPIO_ADC1_IN15};
*/

View File

@ -181,8 +181,8 @@
#define BUTTON_USER_BIT (1 << BUTTON_USER)
/* Pin disambiguation ***************************************************************/
/* Alternative pin selections are provided with a numeric suffix like _1, _2, etc.
* Drivers, however, will use the pin selection without the numeric suffix.
/* Alternative pin selections are provided with a numeric suffix like _1, _2, etc.
* Drivers, however, will use the pin selection without the numeric suffix.
* Additional definitions are required in this board.h file. For example, if we
* wanted the PCK0on PB26, then the following definition should appear in the
* board.h header file for that board:

View File

@ -811,7 +811,7 @@ void weak_function sam_usbinitialize(void);
* Name: stm32_usbhost_initialize
*
* Description:
* Called at application startup time to initialize the USB host functionality.
* Called at application startup time to initialize the USB host functionality.
* This function will start a thread that will monitor for device connection/
* disconnection events.
*

View File

@ -228,8 +228,8 @@
#define BOARD_EBICS3_NAND_DATAADDR 0x60000000
/* Pin disambiguation ***************************************************************/
/* Alternative pin selections are provided with a numeric suffix like _1, _2, etc.
* Drivers, however, will use the pin selection without the numeric suffix.
/* Alternative pin selections are provided with a numeric suffix like _1, _2, etc.
* Drivers, however, will use the pin selection without the numeric suffix.
* Additional definitions are required in this board.h file. For example, if we
* wanted the PCK0on PB26, then the following definition should appear in the
* board.h header file for that board:

View File

@ -108,7 +108,7 @@ static const struct gpio_operations_s gpint_ops =
static struct simgpio_dev_s g_gpin =
{
.gpio =
.gpio =
{
.gp_pintype = GPIO_INPUT_PIN,
.gp_ops = &gpin_ops,
@ -117,7 +117,7 @@ static struct simgpio_dev_s g_gpin =
static struct simgpio_dev_s g_gpout =
{
.gpio =
.gpio =
{
.gp_pintype = GPIO_OUTPUT_PIN,
.gp_ops = &gpout_ops,
@ -128,7 +128,7 @@ static struct simgpint_dev_s g_gpint =
{
.simgpio =
{
.gpio =
.gpio =
{
.gp_pintype = GPIO_INTERRUPT_PIN,
.gp_ops = &gpint_ops,
@ -171,14 +171,14 @@ static int gpout_write(FAR struct gpio_dev_s *dev, bool value)
gpioinfo("Writing %d\n", (int)value);
simgpio->value = value;
return OK;
return OK;
}
static int gpint_attach(FAR struct gpio_dev_s *dev,
pin_interrupt_t callback)
{
FAR struct simgpint_dev_s *simgpint = (FAR struct simgpint_dev_s *)dev;
gpioinfo("Cancel 1 second timer\n");
wd_cancel(simgpint->wdog);

View File

@ -224,11 +224,11 @@
/* Alternate function pin selections ************************************************/
/* USART
*
*
* USART1: Hardwired to embedded STLinkV2 hardware debugger
* RX (PC5)
* TX (PC4)
*
*
* USART2: Connect to an external UART<->RS232 transceiver for use as console.
* RX (PA3)
* TX (PA2)
@ -237,30 +237,30 @@
#define GPIO_USART2_RX GPIO_USART2_RX_2
#define GPIO_USART2_TX GPIO_USART2_TX_2
/* SPI
*
* SPI1: Hardwired to ST L3GD20 MEMS device
/* SPI
*
* SPI1: Hardwired to ST L3GD20 MEMS device
* MISO (PA6)
* MSOI (PA7)
* SCK (PA5)
*/
* SCK (PA5)
*/
#define GPIO_SPI1_MISO GPIO_SPI1_MISO_1
#define GPIO_SPI1_MOSI GPIO_SPI1_MOSI_1
#define GPIO_SPI1_SCK GPIO_SPI1_SCK_1
/* I2C
*
*
* I2C1: Accessible via expansion headers
* SCL (PA15)
* SDA (PA14)
* SMBA (PB5)
*
* I2C2: Accessible via expansion headers
* SMBA (PB5)
*
* I2C2: Accessible via expansion headers
* SCL (PA9)
* SDA (PA10)
* SMBA (PB12)
*/
*/
#ifdef CONFIG_STM32_I2C1
#define GPIO_I2C1_SCL GPIO_I2C1_SCL_1

View File

@ -88,7 +88,7 @@ int stm32_max6675initialize(FAR const char *devpath)
}
/* Then register the barometer sensor */
ret = max6675_register(devpath, spi);
if (ret < 0)
{

View File

@ -2,7 +2,7 @@
* configs/stm32f4discovery/src/stm32_rgbled.c
*
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Author: Alan Carvalho de Assis <acassis@gmail.com>
* Author: Alan Carvalho de Assis <acassis@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View File

@ -36,7 +36,7 @@
/* AT24 Serial EEPROM
*
* A AT24C512 Serial EEPPROM was used for tested I2C. There are no I2C
* devices on-board the Launchpad, but an external serial EEPROM module
* devices on-board the Launchpad, but an external serial EEPROM module
* module was used.
*
* The Serial EEPROM was mounted on an external adaptor board and connected

View File

@ -130,10 +130,10 @@
/* LED definitions ******************************************************************/
/* The TWR-K64F120M has four LEDs:
*
* 1. D5 / Green LED PTE6
* 2. D6 / Yellow LED PTE7
* 3. D7 / Orange LED PTE8
* 4 D9 / Blue LED PTE9
* 1. D5 / Green LED PTE6
* 2. D6 / Yellow LED PTE7
* 3. D7 / Orange LED PTE8
* 4 D9 / Blue LED PTE9
*
* LED4 is reservered for user.
* The 3 first LEDs are encoded as follows:

View File

@ -102,7 +102,7 @@ int board_app_initialize(uintptr_t arg)
return ret;
}
#endif
#ifdef HAVE_MMCSD
/* Initialize the MMC/SD driver and possible automount */

View File

@ -52,10 +52,10 @@
/* The TWR-K64F120M has four LEDs:
*
* 1. D5 / Green LED PTE6
* 2. D6 / Yellow LED PTE7
* 3. D7 / Orange LED PTE8
* 4 D9 / Blue LED PTE9
* 1. D5 / Green LED PTE6
* 2. D6 / Yellow LED PTE7
* 3. D7 / Orange LED PTE8
* 4 D9 / Blue LED PTE9
*
* LED4 is reservered for user.
*/

View File

@ -222,7 +222,7 @@ TODO See README
*/
#endif
/* SDHC
/* SDHC
important notice: on TWR-K64F120M, R521 (close to the SD card holder) is not placed,
hence WRPROTEC is always ON. Either place a 4.7KOhm resistor or change PIN config
to PULLDOWN, loosing Write Protect function */