mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Standardize naming of user LEDs interface functions
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* configs/arduino-due/src/sam_userleds.c
|
||||
*
|
||||
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -88,10 +88,10 @@
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sam_ledinit
|
||||
* Name: board_userled_initialize
|
||||
****************************************************************************/
|
||||
|
||||
void sam_ledinit(void)
|
||||
void board_userled_initialize(void)
|
||||
{
|
||||
/* Configure LED1-2 GPIOs for output */
|
||||
|
||||
@@ -101,10 +101,10 @@ void sam_ledinit(void)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sam_setled
|
||||
* Name: board_userled
|
||||
****************************************************************************/
|
||||
|
||||
void sam_setled(int led, bool ledon)
|
||||
void board_userled(int led, bool ledon)
|
||||
{
|
||||
uint32_t ledcfg;
|
||||
|
||||
@@ -131,10 +131,10 @@ void sam_setled(int led, bool ledon)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: sam_setleds
|
||||
* Name: board_userled_all
|
||||
****************************************************************************/
|
||||
|
||||
void sam_setleds(uint8_t ledset)
|
||||
void board_userled_all(uint8_t ledset)
|
||||
{
|
||||
bool ledon;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user