mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
35 lines
907 B
C
35 lines
907 B
C
/*
|
|
* 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"
|
|
|
|
void __attribute__((weak)) led_init(void)
|
|
{
|
|
/* initialize the on-board LED */
|
|
gpio_init(LED0_PIN, GPIO_OUT);
|
|
LED0_OFF;
|
|
}
|