2014-09-17 15:08:57 +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:54:34 +01:00
|
|
|
* @ingroup boards_spark-core
|
2014-09-17 15:08:57 +02:00
|
|
|
* @{
|
|
|
|
*
|
2015-02-12 13:54:34 +01:00
|
|
|
* @file
|
2014-09-17 15:08:57 +02:00
|
|
|
* @brief Board specific implementations for the spark-core board
|
|
|
|
*
|
|
|
|
* @author Christian Mehlis <mehlis@inf.fu-berlin.de>
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "board.h"
|
2016-03-11 18:04:26 +01:00
|
|
|
#include "periph/gpio.h"
|
2014-09-17 15:08:57 +02:00
|
|
|
|
|
|
|
void board_init(void)
|
|
|
|
{
|
2016-03-11 18:04:26 +01:00
|
|
|
|
2014-09-17 15:08:57 +02:00
|
|
|
/* disable systick interrupt, set by the spark bootloader */
|
|
|
|
SysTick->CTRL = 0;
|
|
|
|
/* signal to spark bootloader: do not enable IWDG! set Stop Mode Flag! */
|
|
|
|
BKP->DR9 = 0xAFFF;
|
|
|
|
}
|