2014-11-19 16:31:33 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
2013-11-09 00:43:35 +01:00
|
|
|
*
|
2014-07-31 19:45:27 +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.
|
2014-11-19 16:31:33 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup cpu_lpc1768
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Implementation of the CPU initialization
|
2013-11-09 00:43:35 +01:00
|
|
|
*
|
2014-11-19 16:31:33 +01:00
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
* @}
|
2013-11-09 00:43:35 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "cpu.h"
|
2023-01-02 18:08:35 +01:00
|
|
|
#include "kernel_init.h"
|
2017-01-20 11:18:38 +01:00
|
|
|
#include "periph/init.h"
|
2019-04-10 11:07:05 +02:00
|
|
|
#include "stdio_base.h"
|
2013-11-09 00:43:35 +01:00
|
|
|
|
2014-11-19 16:31:33 +01:00
|
|
|
/**
|
|
|
|
* @brief Initialize the CPU, set IRQ priorities
|
|
|
|
*/
|
|
|
|
void cpu_init(void)
|
2014-02-15 17:27:50 +01:00
|
|
|
{
|
2015-05-27 23:06:19 +02:00
|
|
|
/* initialize the Cortex-M core */
|
|
|
|
cortexm_init();
|
2019-04-10 11:07:05 +02:00
|
|
|
/* initialize stdio prior to periph_init() to allow use of DEBUG() there */
|
2023-01-02 18:08:35 +01:00
|
|
|
early_init();
|
2017-01-20 11:18:38 +01:00
|
|
|
/* trigger static peripheral initialization */
|
|
|
|
periph_init();
|
2014-02-15 17:27:50 +01:00
|
|
|
}
|