Allow the LED HAL to work on platforms without LEDs
This commit is contained in:
parent
941d8457b4
commit
84a74907f3
@ -97,7 +97,11 @@ leds_toggle(leds_mask_t ledv)
|
|||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#else /* LEDS_LEGACY_API */
|
#else /* LEDS_LEGACY_API */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
#if LEDS_COUNT
|
||||||
extern const leds_t leds_arch_leds[];
|
extern const leds_t leds_arch_leds[];
|
||||||
|
#else
|
||||||
|
static const leds_t *leds_arch_leds = NULL;
|
||||||
|
#endif
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
leds_init()
|
leds_init()
|
||||||
|
Loading…
Reference in New Issue
Block a user