diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-04 13:45:25 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-07 07:39:41 +0100 |
commit | df63fbd1ac1085d1a570c28a17d8425de32d7b78 (patch) | |
tree | 156a9558dde73ef999f90c37006523b6045de8b5 /cpukit/score/cpu/m32c | |
parent | score: Optimize self-contained mutexes (diff) | |
download | rtems-df63fbd1ac1085d1a570c28a17d8425de32d7b78.tar.bz2 |
score: Add <rtems/score/cpuimpl.h>
The aim of this file is to encapsulate CPU port implementation details.
This helps to hide implementation details from <rtems.h> which
indirectly includes <rtems/score/cpu.h>.
Diffstat (limited to 'cpukit/score/cpu/m32c')
-rw-r--r-- | cpukit/score/cpu/m32c/Makefile.am | 1 | ||||
-rw-r--r-- | cpukit/score/cpu/m32c/preinstall.am | 4 | ||||
-rw-r--r-- | cpukit/score/cpu/m32c/rtems/score/cpuimpl.h | 30 |
3 files changed, 35 insertions, 0 deletions
diff --git a/cpukit/score/cpu/m32c/Makefile.am b/cpukit/score/cpu/m32c/Makefile.am index 7f284b271f..993cf4b4d3 100644 --- a/cpukit/score/cpu/m32c/Makefile.am +++ b/cpukit/score/cpu/m32c/Makefile.am @@ -7,6 +7,7 @@ include_rtems_HEADERS = rtems/asm.h include_rtems_scoredir = $(includedir)/rtems/score include_rtems_score_HEADERS = rtems/score/cpu.h +include_rtems_score_HEADERS += rtems/score/cpuimpl.h include_rtems_score_HEADERS += rtems/score/m32c.h include_rtems_score_HEADERS += rtems/score/cpu_asm.h include_rtems_score_HEADERS += rtems/score/types.h diff --git a/cpukit/score/cpu/m32c/preinstall.am b/cpukit/score/cpu/m32c/preinstall.am index 8525e22137..3e12ca477d 100644 --- a/cpukit/score/cpu/m32c/preinstall.am +++ b/cpukit/score/cpu/m32c/preinstall.am @@ -40,6 +40,10 @@ $(PROJECT_INCLUDE)/rtems/score/cpu.h: rtems/score/cpu.h $(PROJECT_INCLUDE)/rtems $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/cpu.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/cpu.h +$(PROJECT_INCLUDE)/rtems/score/cpuimpl.h: rtems/score/cpuimpl.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/cpuimpl.h +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/cpuimpl.h + $(PROJECT_INCLUDE)/rtems/score/m32c.h: rtems/score/m32c.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/m32c.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/m32c.h diff --git a/cpukit/score/cpu/m32c/rtems/score/cpuimpl.h b/cpukit/score/cpu/m32c/rtems/score/cpuimpl.h new file mode 100644 index 0000000000..6b8b601cb0 --- /dev/null +++ b/cpukit/score/cpu/m32c/rtems/score/cpuimpl.h @@ -0,0 +1,30 @@ +/** + * @file + * + * @brief CPU Port Implementation API + */ + +/* + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifndef _RTEMS_SCORE_CPUIMPL_H +#define _RTEMS_SCORE_CPUIMPL_H + +#include <rtems/score/cpu.h> + +#ifndef ASM + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* ASM */ + +#endif /* _RTEMS_SCORE_CPUIMPL_H */ |