2014-03-26 18:13:43 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
|
|
*
|
2014-08-23 15:43:13 +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-03-26 18:13:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2014-06-06 12:01:14 +02:00
|
|
|
* @addtogroup cpu_cortex-m3
|
2014-03-26 18:13:43 +01:00
|
|
|
* @{
|
|
|
|
*
|
2014-10-21 16:52:30 +02:00
|
|
|
* @file
|
2014-06-06 12:01:14 +02:00
|
|
|
* @brief Basic definitions for the Cortex-M3 common module
|
2014-03-26 18:13:43 +01:00
|
|
|
*
|
|
|
|
* When ever you want to do something hardware related, that is accessing MCUs registers directly,
|
|
|
|
* just include this file. It will then make sure that the MCU specific headers are included.
|
|
|
|
*
|
|
|
|
* @author Stefan Pfeiffer <stefan.pfeiffer@fu-berlin.de>
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CORTEXM_COMMON_H
|
|
|
|
#define __CORTEXM_COMMON_H
|
|
|
|
|
|
|
|
#include "cpu-conf.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* For downwards compatibility with old RIOT code.
|
|
|
|
* TODO: remove once core was adjusted
|
|
|
|
*/
|
|
|
|
#include "irq.h"
|
2014-10-13 10:53:20 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-03-26 18:13:43 +01:00
|
|
|
#define eINT enableIRQ
|
|
|
|
#define dINT disableIRQ
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Initialization of the CPU
|
|
|
|
*/
|
|
|
|
void cpu_init(void);
|
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2014-03-26 18:13:43 +01:00
|
|
|
|
|
|
|
#endif /* __CORTEXM_COMMON_H */
|
|
|
|
/** @} */
|