diff --git a/configs/dk-tm4c129x/src/tm4c_autoleds.c b/configs/dk-tm4c129x/src/tm4c_autoleds.c index 15bea1debef..a4e6b3c86fe 100644 --- a/configs/dk-tm4c129x/src/tm4c_autoleds.c +++ b/configs/dk-tm4c129x/src/tm4c_autoleds.c @@ -75,49 +75,49 @@ void tm4c_ledinit(void) void board_led_on(int led) { -/* --------------- ------- ---- ----- -------------------- - * STATE VALUE RED GREEN BLUE - * --------------- ------- ---- ----- -------------------- - * LED_STARTED 0 OFF OFF ON - * LED_HEAPALLOCATE 1 NC NC NC - * LED_IRQSENABLED 1 NC NC NC - * LED_STACKCREATED 2 OFF ON OFF - * LED_INIRQ 1 NC NC NC - * LED_SIGNAL 1 NC NC NC - * LED_ASSERTION 1 NC NC NC - * LED_PANIC 3 ON OFF OFF (flashing 2Hz) - * --------------- ------- ---- ----- -------------------- - * - * A high output illuminates the LED. - */ + /* --------------- ------- ---- ----- -------------------- + * STATE VALUE RED GREEN BLUE + * --------------- ------- ---- ----- -------------------- + * LED_STARTED 0 OFF OFF ON + * LED_HEAPALLOCATE 1 NC NC NC + * LED_IRQSENABLED 1 NC NC NC + * LED_STACKCREATED 2 OFF ON OFF + * LED_INIRQ 1 NC NC NC + * LED_SIGNAL 1 NC NC NC + * LED_ASSERTION 1 NC NC NC + * LED_PANIC 3 ON OFF OFF (flashing 2Hz) + * --------------- ------- ---- ----- -------------------- + * + * A high output illuminates the LED. + */ - switch (led) - { - case 0: /* R=OFF, G=OFF, B=ON */ - /* Previous state was all OFF */ + switch (led) + { + case 0: /* R=OFF, G=OFF, B=ON */ + /* Previous state was all OFF */ - tiva_gpiowrite(GPIO_LED_B, true); - break; + tiva_gpiowrite(GPIO_LED_B, true); + break; - default: - case 1: /* No change */ - break; + default: + case 1: /* No change */ + break; - case 2: /* R=OFF, G=ON, B=OFF */ - /* Previous state was all: R=OFF, G=OFF, B=ON */ + case 2: /* R=OFF, G=ON, B=OFF */ + /* Previous state was all: R=OFF, G=OFF, B=ON */ - tiva_gpiowrite(GPIO_LED_G, true); - tiva_gpiowrite(GPIO_LED_B, false); - break; + tiva_gpiowrite(GPIO_LED_G, true); + tiva_gpiowrite(GPIO_LED_B, false); + break; - case 3: /* R=ON, G=OFF, B=OFF */ - /* Previous state was all: R=OFF, G=Unknown, B=Unknown */ + case 3: /* R=ON, G=OFF, B=OFF */ + /* Previous state was all: R=OFF, G=Unknown, B=Unknown */ - tiva_gpiowrite(GPIO_LED_R, true); - tiva_gpiowrite(GPIO_LED_G, false); - tiva_gpiowrite(GPIO_LED_B, false); - break; - } + tiva_gpiowrite(GPIO_LED_R, true); + tiva_gpiowrite(GPIO_LED_G, false); + tiva_gpiowrite(GPIO_LED_B, false); + break; + } } /**************************************************************************** @@ -126,35 +126,35 @@ void board_led_on(int led) void board_led_off(int led) { -/* --------------- ------- ---- ----- -------------------- - * STATE VALUE RED GREEN BLUE - * --------------- ------- ---- ----- -------------------- - * LED_STARTED 0 OFF OFF ON - * LED_HEAPALLOCATE 1 NC NC NC - * LED_IRQSENABLED 1 NC NC NC - * LED_STACKCREATED 2 OFF ON OFF - * LED_INIRQ 1 NC NC NC - * LED_SIGNAL 1 NC NC NC - * LED_ASSERTION 1 NC NC NC - * LED_PANIC 3 ON OFF OFF (flashing 2Hz) - * --------------- ------- ---- ----- -------------------- - * - * A high output illuminates the LED. - */ + /* --------------- ------- ---- ----- -------------------- + * STATE VALUE RED GREEN BLUE + * --------------- ------- ---- ----- -------------------- + * LED_STARTED 0 OFF OFF ON + * LED_HEAPALLOCATE 1 NC NC NC + * LED_IRQSENABLED 1 NC NC NC + * LED_STACKCREATED 2 OFF ON OFF + * LED_INIRQ 1 NC NC NC + * LED_SIGNAL 1 NC NC NC + * LED_ASSERTION 1 NC NC NC + * LED_PANIC 3 ON OFF OFF (flashing 2Hz) + * --------------- ------- ---- ----- -------------------- + * + * A high output illuminates the LED. + */ - switch (led) - { - case 0: /* Will not happen */ - case 1: /* No change */ - case 2: /* Will not happen */ - default: - break; + switch (led) + { + case 0: /* Will not happen */ + case 1: /* No change */ + case 2: /* Will not happen */ + default: + break; - case 3: /* R=OFF, G=OFF, B=OFF */ - /* Previous state was all: R=ON, G=OFF, B=OFF */ + case 3: /* R=OFF, G=OFF, B=OFF */ + /* Previous state was all: R=ON, G=OFF, B=OFF */ - tiva_gpiowrite(GPIO_LED_R, false); - } + tiva_gpiowrite(GPIO_LED_R, false); + } } #endif /* CONFIG_ARCH_LEDS */ diff --git a/configs/ea3131/src/lpc31_fillpage.c b/configs/ea3131/src/lpc31_fillpage.c index fc2157ee94c..52b1a118f5f 100644 --- a/configs/ea3131/src/lpc31_fillpage.c +++ b/configs/ea3131/src/lpc31_fillpage.c @@ -296,8 +296,8 @@ static inline void lpc31_initsrc(void) /* Are we already initialized? */ - if (!g_pgsrc.initialized) - { + if (!g_pgsrc.initialized) + { /* No... the initialize now */ pgllvdbg("Initializing\n"); diff --git a/configs/ea3152/src/lpc31_fillpage.c b/configs/ea3152/src/lpc31_fillpage.c index 6ac24b688b7..1c06ca9489e 100644 --- a/configs/ea3152/src/lpc31_fillpage.c +++ b/configs/ea3152/src/lpc31_fillpage.c @@ -296,8 +296,8 @@ static inline void lpc31_initsrc(void) /* Are we already initialized? */ - if (!g_pgsrc.initialized) - { + if (!g_pgsrc.initialized) + { /* No... the initialize now */ pgllvdbg("Initializing\n"); diff --git a/configs/ez80f910200zco/src/ez80_leds.c b/configs/ez80f910200zco/src/ez80_leds.c index 4a8495ba267..f13210e3280 100644 --- a/configs/ez80f910200zco/src/ez80_leds.c +++ b/configs/ez80f910200zco/src/ez80_leds.c @@ -302,7 +302,7 @@ void board_led_off(int led) * Name: up_timerhook ****************************************************************************/ - void up_timerhook(void) +void up_timerhook(void) { if (g_cathoderow > 6) { diff --git a/configs/mirtoo/src/pic32_leds.c b/configs/mirtoo/src/pic32_leds.c index b362c1afadb..8e1f503c327 100644 --- a/configs/mirtoo/src/pic32_leds.c +++ b/configs/mirtoo/src/pic32_leds.c @@ -120,7 +120,7 @@ struct led_setting_s }; #endif - /**************************************************************************** +/**************************************************************************** * Private Data ****************************************************************************/ /* If CONFIG_ARCH_LEDS is defined then NuttX will control the LEDs. The diff --git a/configs/moteino-mega/src/avr_leds.c b/configs/moteino-mega/src/avr_leds.c index 916d81aad29..bcebcea322b 100644 --- a/configs/moteino-mega/src/avr_leds.c +++ b/configs/moteino-mega/src/avr_leds.c @@ -110,16 +110,16 @@ void atmega_ledinit(void) void board_led_on(int led) { - /* ON OFF - * LED_STARTED 0 OFF ON (never happens) - * LED_HEAPALLOCATE 0 OFF ON (never happens) - * LED_IRQSENABLED 0 OFF ON (never happens) - * LED_STACKCREATED 1 ON ON (never happens) - * LED_INIRQ 2 OFF NC (momentary) - * LED_SIGNAL 2 OFF NC (momentary) - * LED_ASSERTION 2 OFF NC (momentary) - * LED_PANIC 0 OFF ON (1Hz flashing) - */ + /* ON OFF + * LED_STARTED 0 OFF ON (never happens) + * LED_HEAPALLOCATE 0 OFF ON (never happens) + * LED_IRQSENABLED 0 OFF ON (never happens) + * LED_STACKCREATED 1 ON ON (never happens) + * LED_INIRQ 2 OFF NC (momentary) + * LED_SIGNAL 2 OFF NC (momentary) + * LED_ASSERTION 2 OFF NC (momentary) + * LED_PANIC 0 OFF ON (1Hz flashing) + */ switch (led) { @@ -152,16 +152,16 @@ void board_led_on(int led) void board_led_off(int led) { - /* ON OFF - * LED_STARTED 0 OFF ON (never happens) - * LED_HEAPALLOCATE 0 OFF ON (never happens) - * LED_IRQSENABLED 0 OFF ON (never happens) - * LED_STACKCREATED 1 ON ON (never happens) - * LED_INIRQ 2 OFF NC (momentary) - * LED_SIGNAL 2 OFF NC (momentary) - * LED_ASSERTION 2 OFF NC (momentary) - * LED_PANIC 0 OFF ON (1Hz flashing) - */ + /* ON OFF + * LED_STARTED 0 OFF ON (never happens) + * LED_HEAPALLOCATE 0 OFF ON (never happens) + * LED_IRQSENABLED 0 OFF ON (never happens) + * LED_STACKCREATED 1 ON ON (never happens) + * LED_INIRQ 2 OFF NC (momentary) + * LED_SIGNAL 2 OFF NC (momentary) + * LED_ASSERTION 2 OFF NC (momentary) + * LED_PANIC 0 OFF ON (1Hz flashing) + */ switch (led) { diff --git a/configs/olimex-lpc-h3131/src/lpc31_mem.c b/configs/olimex-lpc-h3131/src/lpc31_mem.c index a99e6baf417..0783101e123 100644 --- a/configs/olimex-lpc-h3131/src/lpc31_mem.c +++ b/configs/olimex-lpc-h3131/src/lpc31_mem.c @@ -109,11 +109,11 @@ static uint32_t lpc31_ns2clk(uint32_t ns, uint32_t hclk2) { - /* delay (ns) * hclk (Hz) / scale (ns/sec) = cycles - * - * Example: ns=80, hclk2=90000000 - * clocks = 80 * 90000000 / 1000000000 + 1 = 8 (actual 7.2 cycles) - */ + /* delay (ns) * hclk (Hz) / scale (ns/sec) = cycles + * + * Example: ns=80, hclk2=90000000 + * clocks = 80 * 90000000 / 1000000000 + 1 = 8 (actual 7.2 cycles) + */ uint64_t tmp = (uint64_t)ns * (uint64_t)hclk2 / 1000000000ull; if (tmp > 0) diff --git a/configs/pcblogic-pic32mx/src/pic32mx_lcd1602.c b/configs/pcblogic-pic32mx/src/pic32mx_lcd1602.c index 34a9fc20505..fbe83f0f578 100644 --- a/configs/pcblogic-pic32mx/src/pic32mx_lcd1602.c +++ b/configs/pcblogic-pic32mx/src/pic32mx_lcd1602.c @@ -37,7 +37,7 @@ * ****************************************************************************/ - /* LCD pin mapping (see configs/pcblogic-pic32mx/README.txt) +/* LCD pin mapping (see configs/pcblogic-pic32mx/README.txt) * * ----------------------------------- ---------- ---------------------------------- * PIC32 LCD1602 PCBLogic PIN diff --git a/configs/pic32mx-starterkit/src/pic32mx_leds.c b/configs/pic32mx-starterkit/src/pic32mx_leds.c index dd6c3769abb..3f6ee66911f 100644 --- a/configs/pic32mx-starterkit/src/pic32mx_leds.c +++ b/configs/pic32mx-starterkit/src/pic32mx_leds.c @@ -125,7 +125,7 @@ struct led_setting_s }; #endif - /**************************************************************************** +/**************************************************************************** * Private Data ****************************************************************************/ /* If CONFIG_ARCH_LEDS is defined then NuttX will control the LEDs. The diff --git a/configs/pic32mx-starterkit/src/pic32mx_usbdev.c b/configs/pic32mx-starterkit/src/pic32mx_usbdev.c index 0ae14f26030..c94014119a0 100644 --- a/configs/pic32mx-starterkit/src/pic32mx_usbdev.c +++ b/configs/pic32mx-starterkit/src/pic32mx_usbdev.c @@ -105,7 +105,7 @@ void weak_function pic32mx_usbdevinitialize(void) */ #ifdef CONFIG_USBHOST - // pic32mx_configgpio(GPIO_USB_VBUSON); + //pic32mx_configgpio(GPIO_USB_VBUSON); #endif /* "If the host PC sends a GetStatus (device) request, the firmware must respond @@ -120,7 +120,7 @@ void weak_function pic32mx_usbdevinitialize(void) */ #ifdef CONFIG_USB_PWRSENSE - // pic32mx_configgpio(GPIO_USB_PWRSENSE); + //pic32mx_configgpio(GPIO_USB_PWRSENSE); #endif } diff --git a/configs/pic32mx7mmb/src/pic32_leds.c b/configs/pic32mx7mmb/src/pic32_leds.c index c73509726e1..4237a50d310 100644 --- a/configs/pic32mx7mmb/src/pic32_leds.c +++ b/configs/pic32mx7mmb/src/pic32_leds.c @@ -128,7 +128,7 @@ struct led_setting_s }; #endif - /**************************************************************************** +/**************************************************************************** * Private Data ****************************************************************************/ /* If CONFIG_ARCH_LEDS is defined then NuttX will control the LEDs. The diff --git a/configs/pic32mx7mmb/src/pic32_usbdev.c b/configs/pic32mx7mmb/src/pic32_usbdev.c index 0296292c95a..7ad0985e5ba 100644 --- a/configs/pic32mx7mmb/src/pic32_usbdev.c +++ b/configs/pic32mx7mmb/src/pic32_usbdev.c @@ -105,7 +105,7 @@ void weak_function pic32mx_usbdevinitialize(void) */ #ifdef CONFIG_USBHOST - // pic32mx_configgpio(GPIO_USB_VBUSON); + //pic32mx_configgpio(GPIO_USB_VBUSON); #endif /* "If the host PC sends a GetStatus (device) request, the firmware must respond @@ -120,7 +120,7 @@ void weak_function pic32mx_usbdevinitialize(void) */ #ifdef CONFIG_USB_PWRSENSE - // pic32mx_configgpio(GPIO_USB_PWRSENSE); + //pic32mx_configgpio(GPIO_USB_PWRSENSE); #endif } diff --git a/configs/samv71-xult/src/sam_buttons.c b/configs/samv71-xult/src/sam_buttons.c index 63df27e04f1..c3a2501f8cd 100644 --- a/configs/samv71-xult/src/sam_buttons.c +++ b/configs/samv71-xult/src/sam_buttons.c @@ -153,10 +153,10 @@ void board_button_initialize(void) { uint32_t regval; - /* PB12 is set up as a system flash ERASE pin when the firmware boots. To - * use the SW1, PB12 has to be configured as a normal regular I/O pin in - * the MATRIX module. For more information see the SAM V71 datasheet. - */ + /* PB12 is set up as a system flash ERASE pin when the firmware boots. To + * use the SW1, PB12 has to be configured as a normal regular I/O pin in + * the MATRIX module. For more information see the SAM V71 datasheet. + */ regval = getreg32(SAM_MATRIX_CCFG_SYSIO); regval |= MATRIX_CCFG_SYSIO_SYSIO12; diff --git a/configs/shenzhou/src/stm32_ili93xx.c b/configs/shenzhou/src/stm32_ili93xx.c index 41391f6c0d3..b9bdf13f382 100644 --- a/configs/shenzhou/src/stm32_ili93xx.c +++ b/configs/shenzhou/src/stm32_ili93xx.c @@ -1859,7 +1859,8 @@ static inline int stm32_lcdinitialize(FAR struct stm32_dev_s *priv) lcddbg("LCD type: %d\n", priv->type); return ret; } - /************************************************************************************ + +/************************************************************************************ * Public Functions ************************************************************************************/ diff --git a/configs/spark/src/stm32_nsh.c b/configs/spark/src/stm32_nsh.c index f99b2785542..f737d022536 100644 --- a/configs/spark/src/stm32_nsh.c +++ b/configs/spark/src/stm32_nsh.c @@ -290,6 +290,6 @@ int usbmsc_archinitialize(void) #if defined(CONFIG_NSH_ARCHINIT) return OK; #else - return board_app_initialize(); + return board_app_initialize(); #endif } diff --git a/configs/spark/src/stm32_userleds.c b/configs/spark/src/stm32_userleds.c index e1ebe87c180..9fb16df98f0 100644 --- a/configs/spark/src/stm32_userleds.c +++ b/configs/spark/src/stm32_userleds.c @@ -130,7 +130,7 @@ void up_setled(int led, bool ledon) void up_setleds(uint8_t ledset, uint8_t led_states_set) { - led_states_set ^= LED_ACTIVE_LOW; + led_states_set ^= LED_ACTIVE_LOW; if ((ledset & BOARD_USR_LED_BIT) == 0) { stm32_gpiowrite(GPIO_LED1, (led_states_set & BOARD_USR_LED_BIT) == 0); diff --git a/configs/stm3220g-eval/src/stm32_lcd.c b/configs/stm3220g-eval/src/stm32_lcd.c index d173cb2c081..07308796f73 100644 --- a/configs/stm3220g-eval/src/stm32_lcd.c +++ b/configs/stm3220g-eval/src/stm32_lcd.c @@ -1118,7 +1118,7 @@ static inline void stm3220g_lcdinitialize(void) } } - /************************************************************************************** +/************************************************************************************** * Public Functions **************************************************************************************/ diff --git a/configs/stm3240g-eval/src/stm32_lcd.c b/configs/stm3240g-eval/src/stm32_lcd.c index c1f92d77453..c358ffd1eb2 100644 --- a/configs/stm3240g-eval/src/stm32_lcd.c +++ b/configs/stm3240g-eval/src/stm32_lcd.c @@ -1117,7 +1117,7 @@ static inline void stm3240g_lcdinitialize(void) } } - /************************************************************************************** +/************************************************************************************** * Public Functions **************************************************************************************/ diff --git a/configs/stm32f746g-disco/src/stm32_spi.c b/configs/stm32f746g-disco/src/stm32_spi.c index b3155a78021..e33e284e784 100644 --- a/configs/stm32f746g-disco/src/stm32_spi.c +++ b/configs/stm32f746g-disco/src/stm32_spi.c @@ -160,8 +160,8 @@ uint8_t stm32_spi3status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) #ifdef CONFIG_STM32F7_SPI4 void stm32_spi4select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected) { - spidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert"); -}} + spidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert"); +} uint8_t stm32_spi4status(FAR struct spi_dev_s *dev, enum spi_dev_e devid) { diff --git a/configs/sure-pic32mx/src/pic32mx_autoleds.c b/configs/sure-pic32mx/src/pic32mx_autoleds.c index 4ddedeea27c..38e3052d109 100644 --- a/configs/sure-pic32mx/src/pic32mx_autoleds.c +++ b/configs/sure-pic32mx/src/pic32mx_autoleds.c @@ -114,7 +114,7 @@ struct led_setting_s uint8_t error : 2; }; - /**************************************************************************** +/**************************************************************************** * Private Data ****************************************************************************/ diff --git a/configs/sure-pic32mx/src/pic32mx_lcd1602.c b/configs/sure-pic32mx/src/pic32mx_lcd1602.c index 23a9ac7af28..20f4b704e0e 100644 --- a/configs/sure-pic32mx/src/pic32mx_lcd1602.c +++ b/configs/sure-pic32mx/src/pic32mx_lcd1602.c @@ -37,7 +37,7 @@ * ****************************************************************************/ - /* LCD pin mapping (see configs/sure-pic32mx/README.txt) +/* LCD pin mapping (see configs/sure-pic32mx/README.txt) * * --------------------- ---------- ---------------------------------- * PIC32 Sure JP1 Sure Signal Description diff --git a/configs/sure-pic32mx/src/pic32mx_spi.c b/configs/sure-pic32mx/src/pic32mx_spi.c index 63f967e4db5..cfb99a33637 100644 --- a/configs/sure-pic32mx/src/pic32mx_spi.c +++ b/configs/sure-pic32mx/src/pic32mx_spi.c @@ -105,10 +105,9 @@ # undef PIC32_HAVE_SD - /* The Sure DB-DP11212 PIC32 General Purpose Demo Board has an SOIC (Flash or +/* The Sure DB-DP11212 PIC32 General Purpose Demo Board has an SOIC (Flash or * EEPROM) connected on SPI2: * - * * TMS/AN10/PMA13/RB10 UTIL_WP FLASH (U4) WP * TDO/AN11/PMA12/RB11 UTIL_CS FLASH (U4) CS */ diff --git a/configs/sure-pic32mx/src/pic32mx_usbdev.c b/configs/sure-pic32mx/src/pic32mx_usbdev.c index e1f14e525fd..d9d964c0063 100644 --- a/configs/sure-pic32mx/src/pic32mx_usbdev.c +++ b/configs/sure-pic32mx/src/pic32mx_usbdev.c @@ -117,7 +117,7 @@ void weak_function pic32mx_usbdevinitialize(void) */ #ifdef CONFIG_USBHOST - // pic32mx_configgpio(GPIO_USB_VBUSON); + //pic32mx_configgpio(GPIO_USB_VBUSON); #endif /* "If the host PC sends a GetStatus (device) request, the firmware must respond @@ -132,7 +132,7 @@ void weak_function pic32mx_usbdevinitialize(void) */ #ifdef CONFIG_USB_PWRSENSE - // pic32mx_configgpio(GPIO_USB_PWRSENSE); + //pic32mx_configgpio(GPIO_USB_PWRSENSE); #endif } diff --git a/configs/teensy-2.0/src/at90usb_leds.c b/configs/teensy-2.0/src/at90usb_leds.c index 72348b369ad..e7721b9a6ad 100644 --- a/configs/teensy-2.0/src/at90usb_leds.c +++ b/configs/teensy-2.0/src/at90usb_leds.c @@ -110,16 +110,16 @@ void at90usb_ledinit(void) void board_led_on(int led) { - /* ON OFF - * LED_STARTED 0 OFF ON (never happens) - * LED_HEAPALLOCATE 0 OFF ON (never happens) - * LED_IRQSENABLED 0 OFF ON (never happens) - * LED_STACKCREATED 1 ON ON (never happens) - * LED_INIRQ 2 OFF NC (momentary) - * LED_SIGNAL 2 OFF NC (momentary) - * LED_ASSERTION 2 OFF NC (momentary) - * LED_PANIC 0 OFF ON (1Hz flashing) - */ + /* ON OFF + * LED_STARTED 0 OFF ON (never happens) + * LED_HEAPALLOCATE 0 OFF ON (never happens) + * LED_IRQSENABLED 0 OFF ON (never happens) + * LED_STACKCREATED 1 ON ON (never happens) + * LED_INIRQ 2 OFF NC (momentary) + * LED_SIGNAL 2 OFF NC (momentary) + * LED_ASSERTION 2 OFF NC (momentary) + * LED_PANIC 0 OFF ON (1Hz flashing) + */ switch (led) { @@ -152,16 +152,16 @@ void board_led_on(int led) void board_led_off(int led) { - /* ON OFF - * LED_STARTED 0 OFF ON (never happens) - * LED_HEAPALLOCATE 0 OFF ON (never happens) - * LED_IRQSENABLED 0 OFF ON (never happens) - * LED_STACKCREATED 1 ON ON (never happens) - * LED_INIRQ 2 OFF NC (momentary) - * LED_SIGNAL 2 OFF NC (momentary) - * LED_ASSERTION 2 OFF NC (momentary) - * LED_PANIC 0 OFF ON (1Hz flashing) - */ + /* ON OFF + * LED_STARTED 0 OFF ON (never happens) + * LED_HEAPALLOCATE 0 OFF ON (never happens) + * LED_IRQSENABLED 0 OFF ON (never happens) + * LED_STACKCREATED 1 ON ON (never happens) + * LED_INIRQ 2 OFF NC (momentary) + * LED_SIGNAL 2 OFF NC (momentary) + * LED_ASSERTION 2 OFF NC (momentary) + * LED_PANIC 0 OFF ON (1Hz flashing) + */ switch (led) { diff --git a/configs/tm4c123g-launchpad/src/tm4c_adc.c b/configs/tm4c123g-launchpad/src/tm4c_adc.c index f452a433e9a..c4494b5579c 100644 --- a/configs/tm4c123g-launchpad/src/tm4c_adc.c +++ b/configs/tm4c123g-launchpad/src/tm4c_adc.c @@ -76,7 +76,7 @@ #ifdef CONFIG_TIVA_ADC int board_adc_initialize(void) - { +{ # if defined (CONFIG_TIVA_ADC) && defined (CONFIG_ADC) static bool initialized = false; int ret; diff --git a/configs/ubw32/src/pic32_leds.c b/configs/ubw32/src/pic32_leds.c index d8cf7f2691d..fc81592e3cf 100644 --- a/configs/ubw32/src/pic32_leds.c +++ b/configs/ubw32/src/pic32_leds.c @@ -125,7 +125,7 @@ struct led_setting_s }; #endif - /**************************************************************************** +/**************************************************************************** * Private Data ****************************************************************************/ /* If CONFIG_ARCH_LEDS is defined then NuttX will control the LEDs. The diff --git a/configs/us7032evb1/shterm/shterm.c b/configs/us7032evb1/shterm/shterm.c index 0655815fbbb..83284d493b9 100644 --- a/configs/us7032evb1/shterm/shterm.c +++ b/configs/us7032evb1/shterm/shterm.c @@ -609,8 +609,8 @@ int main(int argc, char **argv, char **envp) tty.c_cflag &= ~(CSIZE|PARENB); tty.c_cflag |= CS8; - (void)cfsetispeed(&tty, speed); - (void)cfsetospeed(&tty, speed); + (void)cfsetispeed(&tty, speed); + (void)cfsetospeed(&tty, speed); ret = tcsetattr(g_fd, TCSANOW, &tty); if (ret < 0)