Merge pull request #405 from g-oikonomou/contrib/led-hal/no-led-support
Allow the LED HAL to work on platforms without LEDs
This commit is contained in:
commit
3a8be60c09
@ -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