1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/stm32f1/cpu.c

41 lines
1.1 KiB
C
Raw Normal View History

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
* @{
*
* @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>
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
* @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"
#include "stmclk.h"
#include "periph/init.h"
2014-06-11 14:59:24 +02:00
void cpu_init(void)
{
/* initialize the Cortex-M core */
cortexm_init();
/* initialize the system clock as configured in the periph_conf.h */
stmclk_init_sysclk();
/* trigger static peripheral initialization */
periph_init();
}