/* * Copyright (C) 2018 Kaspar Schleiser * 2016 RWTH Aachen, Josua Arndt * * 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_jiminy-mega256rfr2 * @{ * * @file * @brief Board specific LED initialization * * @author Josua Arndt * @author Kaspar Schleiser * * @} */ #include "board.h" #include "cpu.h" void led_init(void) { /* initialize the board LED (connected to pin PB7) */ /* Ports Pins as Output */ LED_PORT_DDR |= LED2_MASK | LED1_MASK | LED0_MASK; /* All Pins Low so LEDs are off */ LED_PORT &= ~(LED2_MASK | LED1_MASK | LED0_MASK); }