configs/: Remove dangling spaces at the end of lines in *.c and *.h files.
This commit is contained in:
parent
44545781e5
commit
c67b807f43
1
TODO
1
TODO
@ -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,
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
@ -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);
|
||||
|
@ -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).
|
||||
|
@ -67,5 +67,5 @@
|
||||
|
||||
void board_autoled_on(int led)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
@ -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};
|
||||
*/
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
*/
|
||||
|
||||
|
@ -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
|
||||
*
|
||||
* ----------------------------------------
|
||||
|
@ -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
|
||||
*
|
||||
* ----------------------------------------
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
*
|
||||
* ----------------------------------------
|
||||
|
@ -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.
|
||||
*/
|
||||
|
||||
|
@ -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};
|
||||
*/
|
||||
|
@ -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};
|
||||
*/
|
||||
|
@ -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
|
||||
|
@ -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};
|
||||
*/
|
||||
|
@ -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:
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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:
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -88,7 +88,7 @@ int stm32_max6675initialize(FAR const char *devpath)
|
||||
}
|
||||
|
||||
/* Then register the barometer sensor */
|
||||
|
||||
|
||||
ret = max6675_register(devpath, spi);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user