2017-11-21 16:22:33 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2017 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-06-01 12:09:16 +02:00
|
|
|
* @ingroup boards_common_nrf52
|
2017-11-21 16:22:33 +01:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
2018-01-10 14:31:34 +01:00
|
|
|
* @brief Board initialization for the nRF52xxx DK
|
2017-11-21 16:22:33 +01:00
|
|
|
*
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "cpu.h"
|
|
|
|
#include "board.h"
|
|
|
|
|
|
|
|
void board_init(void)
|
|
|
|
{
|
|
|
|
/* initialize the boards LEDs */
|
2018-01-12 23:27:19 +01:00
|
|
|
LED_PORT->DIRSET = (LED_MASK);
|
|
|
|
LED_PORT->OUTSET = (LED_MASK);
|
2017-11-21 16:22:33 +01:00
|
|
|
|
|
|
|
/* initialize the CPU */
|
|
|
|
cpu_init();
|
|
|
|
}
|