Remove dangling whitespace

This commit is contained in:
Gregory Nutt 2015-10-04 15:28:03 -06:00
parent b6930e442b
commit fc58f7e538
9 changed files with 74 additions and 79 deletions

View File

@ -24,36 +24,34 @@
void cc3200_ledinit(void)
{
uint32_t led1_port;
uint8_t led1_pin;
uint32_t led2_port;
uint8_t led2_pin;
uint32_t led3_port;
uint8_t led3_pin;
uint8_t x=16;
uint32_t led1_port;
uint8_t led1_pin;
uint32_t led2_port;
uint8_t led2_pin;
uint32_t led3_port;
uint8_t led3_pin;
uint8_t x=16;
putreg32(getreg32(0x44025000 + 0x00000058) | 0x00000001, 0x44025000 + 0x00000058);
while(--x)
;
putreg32(getreg32(0x44025000 + 0x00000058) | 0x00000001, 0x44025000 + 0x00000058);
while(--x)
;
cc3200_pin_type_gpio(PIN_01, PIN_MODE_0, false);
cc3200_set_gpio_dir(TIVA_GPIOB_BASE, 0x4, GPIO_DIR_MODE_OUT);
cc3200_pin_type_gpio(PIN_02, PIN_MODE_0, false);
cc3200_set_gpio_dir(TIVA_GPIOB_BASE, 0x8, GPIO_DIR_MODE_OUT);
cc3200_pin_type_gpio(PIN_01, PIN_MODE_0, false);
cc3200_set_gpio_dir(TIVA_GPIOB_BASE, 0x4, GPIO_DIR_MODE_OUT);
cc3200_pin_type_gpio(PIN_64, PIN_MODE_0, false);
cc3200_set_gpio_dir(TIVA_GPIOB_BASE, 0x2, GPIO_DIR_MODE_OUT);
cc3200_get_gpio_port_pin(LED1_GPIO, &led1_port, &led1_pin);
cc3200_get_gpio_port_pin(LED2_GPIO, &led2_port, &led2_pin);
cc3200_get_gpio_port_pin(LED3_GPIO, &led3_port, &led3_pin);
cc3200_set_gpio(LED1_GPIO, led1_port, led1_pin, 0);
cc3200_set_gpio(LED2_GPIO, led2_port, led2_pin, 0);
cc3200_set_gpio(LED3_GPIO, led3_port, led3_pin, 0);
cc3200_pin_type_gpio(PIN_02, PIN_MODE_0, false);
cc3200_set_gpio_dir(TIVA_GPIOB_BASE, 0x8, GPIO_DIR_MODE_OUT);
cc3200_pin_type_gpio(PIN_64, PIN_MODE_0, false);
cc3200_set_gpio_dir(TIVA_GPIOB_BASE, 0x2, GPIO_DIR_MODE_OUT);
cc3200_get_gpio_port_pin(LED1_GPIO, &led1_port, &led1_pin);
cc3200_get_gpio_port_pin(LED2_GPIO, &led2_port, &led2_pin);
cc3200_get_gpio_port_pin(LED3_GPIO, &led3_port, &led3_pin);
cc3200_set_gpio(LED1_GPIO, led1_port, led1_pin, 0);
cc3200_set_gpio(LED2_GPIO, led2_port, led2_pin, 0);
cc3200_set_gpio(LED3_GPIO, led3_port, led3_pin, 0);
}
/****************************************************************************
@ -62,32 +60,32 @@ void cc3200_ledinit(void)
void cc3200_ledon(int led)
{
unsigned int led1_port;
unsigned char led1_pin;
unsigned int led2_port;
unsigned char led2_pin;
unsigned int led3_port;
unsigned char led3_pin;
cc3200_get_gpio_port_pin(LED1_GPIO, &led1_port, &led1_pin);
cc3200_get_gpio_port_pin(LED2_GPIO, &led2_port, &led2_pin);
cc3200_get_gpio_port_pin(LED3_GPIO, &led3_port, &led3_pin);
switch (led)
unsigned int led1_port;
unsigned char led1_pin;
unsigned int led2_port;
unsigned char led2_pin;
unsigned int led3_port;
unsigned char led3_pin;
cc3200_get_gpio_port_pin(LED1_GPIO, &led1_port, &led1_pin);
cc3200_get_gpio_port_pin(LED2_GPIO, &led2_port, &led2_pin);
cc3200_get_gpio_port_pin(LED3_GPIO, &led3_port, &led3_pin);
switch (led)
{
/* All */
default:
case 0:
cc3200_set_gpio(LED1_GPIO, led1_port, led1_pin, 1);
cc3200_set_gpio(LED2_GPIO, led2_port, led2_pin, 1);
cc3200_set_gpio(LED3_GPIO, led3_port, led3_pin, 1);
cc3200_set_gpio(LED1_GPIO, led1_port, led1_pin, 1);
cc3200_set_gpio(LED2_GPIO, led2_port, led2_pin, 1);
cc3200_set_gpio(LED3_GPIO, led3_port, led3_pin, 1);
break;
/* GREEN */
case 1:
cc3200_set_gpio(LED3_GPIO, led3_port, led3_pin, 1);
cc3200_set_gpio(LED3_GPIO, led3_port, led3_pin, 1);
break;
/* YELLOW */
@ -99,9 +97,8 @@ void cc3200_ledon(int led)
/* RED */
case 3:
cc3200_set_gpio(LED1_GPIO, led1_port, led1_pin, 1);
break;
cc3200_set_gpio(LED1_GPIO, led1_port, led1_pin, 1);
break;
}
}
@ -111,33 +108,32 @@ void cc3200_ledon(int led)
void cc3200_ledoff(int led)
{
unsigned int led1_port;
unsigned char led1_pin;
unsigned int led2_port;
unsigned char led2_pin;
unsigned int led3_port;
unsigned char led3_pin;
unsigned int led1_port;
unsigned char led1_pin;
unsigned int led2_port;
unsigned char led2_pin;
unsigned int led3_port;
unsigned char led3_pin;
cc3200_get_gpio_port_pin(LED1_GPIO, &led1_port, &led1_pin);
cc3200_get_gpio_port_pin(LED2_GPIO, &led2_port, &led2_pin);
cc3200_get_gpio_port_pin(LED3_GPIO, &led3_port, &led3_pin);
switch (led)
cc3200_get_gpio_port_pin(LED1_GPIO, &led1_port, &led1_pin);
cc3200_get_gpio_port_pin(LED2_GPIO, &led2_port, &led2_pin);
cc3200_get_gpio_port_pin(LED3_GPIO, &led3_port, &led3_pin);
switch (led)
{
/* All */
default:
case 0:
cc3200_set_gpio(LED1_GPIO, led1_port, led1_pin, 0);
cc3200_set_gpio(LED2_GPIO, led2_port, led2_pin, 0);
cc3200_set_gpio(LED3_GPIO, led3_port, led3_pin, 0);
cc3200_set_gpio(LED1_GPIO, led1_port, led1_pin, 0);
cc3200_set_gpio(LED2_GPIO, led2_port, led2_pin, 0);
cc3200_set_gpio(LED3_GPIO, led3_port, led3_pin, 0);
break;
/* GREEN */
case 1:
cc3200_set_gpio(LED3_GPIO, led3_port, led3_pin, 0);
cc3200_set_gpio(LED3_GPIO, led3_port, led3_pin, 0);
break;
/* YELLOW */
@ -149,8 +145,7 @@ void cc3200_ledoff(int led)
/* RED */
case 3:
cc3200_set_gpio(LED1_GPIO, led1_port, led1_pin, 0);
break;
cc3200_set_gpio(LED1_GPIO, led1_port, led1_pin, 0);
break;
}
}

View File

@ -373,7 +373,7 @@ static void ajoy_enable(FAR const struct ajoy_lowerhalf_s *lower,
falling = ((press & bit) != 0);
rising = ((release & bit) != 0);
illvdbg("GPIO %d: rising: %d falling: %d\n",
i, rising, falling);

View File

@ -86,7 +86,7 @@
void board_led_initialize(void)
{
/* Configure LED_STATUS GPIO for output */
stm32_configgpio(GPIO_LED_STATUS);
}
@ -98,7 +98,7 @@ void board_led_on(int led)
{
if(led == LED_STARTED)
stm32_gpiowrite(GPIO_LED_STATUS, true);
if(led == LED_ASSERTION || led == LED_PANIC)
stm32_gpiowrite(GPIO_LED_STATUS, false);
}
@ -111,7 +111,7 @@ void board_led_off(int led)
{
if(led == LED_STARTED)
stm32_gpiowrite(GPIO_LED_STATUS, false);
if(led == LED_ASSERTION || led == LED_PANIC)
stm32_gpiowrite(GPIO_LED_STATUS, true);
}

View File

@ -463,7 +463,7 @@ static void sam_putreg(uint8_t regaddr, FAR const uint8_t *buffer, unsigned int
/* Write the multi-byte register value */
for (; buflen > 0; buflen--)
for (; buflen > 0; buflen--)
{
LCD_DATA = *buffer++;
}
@ -484,7 +484,7 @@ static void sam_getreg(uint8_t regaddr, FAR uint8_t *buffer, unsigned int buflen
/* Read the multi-byte register value */
for (; buflen > 0; buflen--)
for (; buflen > 0; buflen--)
{
*buffer++ = LCD_DATA;
}
@ -1136,7 +1136,7 @@ static void sam_lcd9341_initialize(void)
buffer[2] = 0x27;
buffer[3] = 0x00;
sam_putreg(ILI9341_DISPLAY_FUNCTION_CTL, buffer, 4);
/* Set window area*/
sam_setwindow(0, 0, SAM_XRES, SAM_YRES);

View File

@ -280,7 +280,7 @@ static bool sam_inserted(FAR const struct automount_lower_s *lower)
* None
*
************************************************************************************/
void sam_automount_initialize(void)
{
FAR void *handle;
@ -318,7 +318,7 @@ void sam_automount_initialize(void)
* sure that everything has settle down.
*
* Input Parameters:
* slotno - Identifies the HSMCI0 slot: HSMCI0_SLOTNO or HSMCI1_SLOTNO. There is a
* slotno - Identifies the HSMCI0 slot: HSMCI0_SLOTNO or HSMCI1_SLOTNO. There is a
* terminology problem here: Each HSMCI supports two slots, slot A and slot B.
* Only slot A is used. So this is not a really a slot, but an HSCMI peripheral
* number.
@ -331,7 +331,7 @@ void sam_automount_initialize(void)
* Interrupts are disabled.
*
************************************************************************************/
void sam_automount_event(int slotno, bool inserted)
{
FAR const struct sam_automount_config_s *config;

View File

@ -113,7 +113,7 @@ static const struct djoy_lowerhalf_s g_djoylower =
* Name: djoy_supported
*
* Description:
* Return the set of buttons supported on the discrete joystick device
* Return the set of buttons supported on the discrete joystick device
*
****************************************************************************/
@ -207,7 +207,7 @@ static void djoy_enable(FAR const struct djoy_lowerhalf_s *lower,
falling = ((press & bit) != 0);
rising = ((release & bit) != 0);
illvdbg("GPIO %d: rising: %d falling: %d\n",
i, rising, falling);

View File

@ -91,7 +91,7 @@ int stm32_bmp180initialize(FAR const char *devpath)
}
/* Then register the barometer sensor */
ret = bmp180_register(devpath, i2c);
if (ret < 0)
{

View File

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

View File

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