1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/atmega_common: provide dummy implementation for led_init()

This commit is contained in:
Benjamin Valentin 2019-10-09 23:31:00 +02:00 committed by Benjamin Valentin
parent ad81a9df8a
commit 6617c5c768

View File

@ -29,6 +29,13 @@
void led_init(void);
/*
* Add an empty led_init() as fall back.
* If at link time another implementation of led_init() not marked as weak
* (a.k.a. a strong symbol) is present, it will be linked in instead.
*/
void __attribute__((weak)) led_init(void) {}
void board_init(void)
{
#ifdef CPU_ATMEGA32U4