mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Remove prototypes for all user LED interfaces from board.h header files
This commit is contained in:
@@ -202,12 +202,12 @@
|
||||
* Both can be illuminated by driving the GPIO output to ground (low).
|
||||
*/
|
||||
|
||||
/* LED index values for use with sam_setled() */
|
||||
/* LED index values for use with board_userled() */
|
||||
|
||||
#define BOARD_D301 0
|
||||
#define BOARD_NLEDS 1
|
||||
|
||||
/* LED bits for use with sam_setleds() */
|
||||
/* LED bits for use with board_userled_all() */
|
||||
|
||||
#define BOARD_D301_BIT (1 << BOARD_D301)
|
||||
|
||||
@@ -260,7 +260,8 @@
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
#define EXTERN extern "C"
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
@@ -280,22 +281,6 @@ extern "C" {
|
||||
|
||||
void sam_boardinitialize(void);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: sam_ledinit, sam_setled, and sam_setleds
|
||||
*
|
||||
* Description:
|
||||
* If CONFIG_ARCH_LEDS is defined, then NuttX will control the on-board LEDs. If
|
||||
* CONFIG_ARCH_LEDS is not defined, then the following interfaces are available to
|
||||
* control the LEDs from user applications.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
#ifndef CONFIG_ARCH_LEDS
|
||||
void sam_ledinit(void);
|
||||
void sam_setled(int led, bool ledon);
|
||||
void sam_setleds(uint8_t ledset);
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user