2018-02-27 14:05:36 +01:00
|
|
|
/*
|
2018-03-26 21:51:52 +02:00
|
|
|
* Copyright (C) 2018 Kaspar Schleiser <kaspar@schleiser.de>
|
|
|
|
* 2016 RWTH Aachen, Josua Arndt
|
2018-02-27 14:05:36 +01:00
|
|
|
*
|
|
|
|
* 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
|
2018-03-26 21:51:52 +02:00
|
|
|
* @brief Board specific LED initialization
|
2018-02-27 14:05:36 +01:00
|
|
|
*
|
|
|
|
* @author Josua Arndt <jarndt@ias.rwth-aachen.de>
|
2018-03-26 21:51:52 +02:00
|
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
2018-02-27 14:05:36 +01:00
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
#include "cpu.h"
|
|
|
|
|
2018-03-26 21:51:52 +02:00
|
|
|
void led_init(void)
|
2018-02-27 14:05:36 +01:00
|
|
|
{
|
|
|
|
/* 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);
|
|
|
|
}
|