Fix nxstyle issue

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-06-06 21:16:53 +08:00
committed by Abdelatif Guettouche
parent 7a18ebe459
commit 24262a4ddb
68 changed files with 251 additions and 262 deletions
@@ -32,6 +32,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
****************************************************************************/
/* There are three LEDs on board the SAM4L Xplained Pro board: The EDBG
* controls two of the LEDs, a power LED and a status LED. There is only
* one user controllable LED, a yellow LED labeled LED0 near the SAM4L USB
@@ -106,8 +107,8 @@ void board_userled(int led, bool ledon)
*
* Description:
* If CONFIG_ARCH_LEDS is defined, then NuttX will control the on-board
* LEDs. If CONFIG_ARCH_LEDS is not defined, then the board_userled_all() is
* available to control the LED0 from user application logic. NOTE: since
* LEDs. If CONFIG_ARCH_LEDS is not defined, then the board_userled_all()
* is available to control the LED0 from user application logic. NOTE: since
* there is only a single LED on-board, this is function is not very useful.
*
****************************************************************************/
@@ -86,7 +86,8 @@ void board_userled(int led, bool ledon)
void board_userled_all(uint32_t ledset)
{
sam_gpiowrite(GPIO_D301, (ledset & BOARD_D301_BIT) ? LED_D301_ON : LED_D301_OFF);
sam_gpiowrite(GPIO_D301,
(ledset & BOARD_D301_BIT) ? LED_D301_ON : LED_D301_OFF);
}
#endif /* !CONFIG_ARCH_LEDS */