2014-09-09 11:12:39 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2015-02-12 13:53:29 +01:00
|
|
|
* @ingroup boards_samr21-xpro
|
2014-09-09 11:12:39 +02:00
|
|
|
* @{
|
|
|
|
*
|
2015-05-22 07:34:41 +02:00
|
|
|
* @file
|
2015-05-27 13:20:31 +02:00
|
|
|
* @brief Board specific implementations for the Atmel SAM R21 Xplained
|
|
|
|
* Pro board
|
2014-09-09 11:12:39 +02:00
|
|
|
*
|
|
|
|
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
|
2015-05-27 13:20:31 +02:00
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
2014-09-09 11:12:39 +02:00
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
#include "cpu.h"
|
|
|
|
|
|
|
|
void board_init(void)
|
|
|
|
{
|
|
|
|
/* initialize the CPU */
|
|
|
|
cpu_init();
|
2015-05-27 13:20:31 +02:00
|
|
|
/* initialize the boards LED at pin PA19 */
|
2015-05-27 13:18:53 +02:00
|
|
|
LED_PORT.DIRSET.reg = (1 << LED_PIN);
|
|
|
|
LED_PORT.OUTSET.reg = (1 << LED_PIN);
|
2015-04-04 16:09:06 +02:00
|
|
|
LED_PORT.PINCFG[LED_PIN].bit.PULLEN = false;
|
2014-09-09 11:12:39 +02:00
|
|
|
}
|