2014-06-11 14:59:24 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 INRIA
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
2016-10-13 09:32:43 +02:00
|
|
|
* Copyright (C) 2016 TriaGnoSys GmbH
|
2014-06-11 14:59:24 +02: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 cpu_stm32f1
|
|
|
|
* @{
|
|
|
|
*
|
2015-05-22 07:34:41 +02:00
|
|
|
* @file
|
2014-06-11 14:59:24 +02:00
|
|
|
* @brief Implementation of the kernel cpu functions
|
|
|
|
*
|
|
|
|
* @author Stefan Pfeiffer <stefan.pfeiffer@fu-berlin.de>
|
|
|
|
* @author Alaeddine Weslati <alaeddine.weslati@inria.fr>
|
|
|
|
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
|
2014-09-29 14:53:59 +02:00
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
2015-10-26 17:20:36 +01:00
|
|
|
* @author Nick van IJzendoorn <nijzendoorn@engineering-spirit.nl>
|
2016-10-13 09:32:43 +02:00
|
|
|
* @author Víctor Ariño <victor.arino@zii.aero>
|
2014-06-11 14:59:24 +02:00
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "cpu.h"
|
2017-04-26 13:03:12 +02:00
|
|
|
#include "stmclk.h"
|
2017-01-20 11:18:38 +01:00
|
|
|
#include "periph/init.h"
|
2014-09-29 14:53:59 +02:00
|
|
|
|
2014-06-11 14:59:24 +02:00
|
|
|
void cpu_init(void)
|
|
|
|
{
|
2015-05-27 23:08:25 +02:00
|
|
|
/* initialize the Cortex-M core */
|
|
|
|
cortexm_init();
|
2017-04-26 13:03:12 +02:00
|
|
|
/* initialize the system clock as configured in the periph_conf.h */
|
|
|
|
stmclk_init_sysclk();
|
2017-01-20 11:18:38 +01:00
|
|
|
/* trigger static peripheral initialization */
|
|
|
|
periph_init();
|
2014-09-29 14:53:59 +02:00
|
|
|
}
|