2018-03-26 21:51:15 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin, Hinnerk van Bruinehsen
|
|
|
|
* 2015-18 Kaspar Schleiser <kaspar@schleiser.de>
|
|
|
|
* 2016 Laurent Navet <laurent.navet@gmail.com>
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup boards_common_arduino-atmega
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Common led initialization for Arduino Atmega boards
|
|
|
|
*
|
|
|
|
* @author Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de>
|
|
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
|
|
|
* @author Laurent Navet <laurent.navet@gmail.com>
|
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
#include "cpu.h"
|
|
|
|
#include "periph/gpio.h"
|
|
|
|
|
2020-08-13 17:23:24 +02:00
|
|
|
void __attribute__((weak)) led_init(void)
|
2018-03-26 21:51:15 +02:00
|
|
|
{
|
|
|
|
/* initialize the on-board LED */
|
|
|
|
gpio_init(LED0_PIN, GPIO_OUT);
|
|
|
|
LED0_OFF;
|
|
|
|
}
|