Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/led: add LEDX_IS_PRESENT defines #20637

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions drivers/include/led.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,49 +46,66 @@ extern "C" {
#define LED0_ON /**< defined empty */
#define LED0_OFF /**< defined empty */
#define LED0_TOGGLE /**< defined empty */
#else
#define LED0_IS_PRESENT /**< indicate that LED0 is present */
#endif

#ifndef LED1_ON
#define LED1_ON /**< defined empty */
#define LED1_OFF /**< defined empty */
#define LED1_TOGGLE /**< defined empty */
#else
#define LED1_IS_PRESENT /**< indicate that LED1 is present */
#endif

#ifndef LED2_ON
#define LED2_ON /**< defined empty */
#define LED2_OFF /**< defined empty */
#define LED2_TOGGLE /**< defined empty */
#else
#define LED2_IS_PRESENT /**< indicate that LED2 is present */
#endif

#ifndef LED3_ON
#define LED3_ON /**< defined empty */
#define LED3_OFF /**< defined empty */
#define LED3_TOGGLE /**< defined empty */
#else
#define LED3_IS_PRESENT /**< indicate that LED3 is present */
#endif

#ifndef LED4_ON
#define LED4_ON /**< defined empty */
#define LED4_OFF /**< defined empty */
#define LED4_TOGGLE /**< defined empty */
#else
#define LED4_IS_PRESENT /**< indicate that LED4 is present */
#endif

#ifndef LED5_ON
#define LED5_ON /**< defined empty */
#define LED5_OFF /**< defined empty */
#define LED5_TOGGLE /**< defined empty */
#else
#define LED5_IS_PRESENT /**< indicate that LED5 is present */
#endif

#ifndef LED6_ON
#define LED6_ON /**< defined empty */
#define LED6_OFF /**< defined empty */
#define LED6_TOGGLE /**< defined empty */
#else
#define LED6_IS_PRESENT /**< indicate that LED6 is present */
#endif

#ifndef LED7_ON
#define LED7_ON /**< defined empty */
#define LED7_OFF /**< defined empty */
#define LED7_TOGGLE /**< defined empty */
#else
#define LED7_IS_PRESENT /**< indicate that LED7 is present */
#endif

/** @} */

/**
Expand Down
Loading