From df63fbd1ac1085d1a570c28a17d8425de32d7b78 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 4 Nov 2016 13:45:25 +0100 Subject: score: Add The aim of this file is to encapsulate CPU port implementation details. This helps to hide implementation details from which indirectly includes . --- cpukit/score/cpu/sh/Makefile.am | 1 + cpukit/score/cpu/sh/preinstall.am | 4 ++++ cpukit/score/cpu/sh/rtems/score/cpuimpl.h | 30 ++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 cpukit/score/cpu/sh/rtems/score/cpuimpl.h (limited to 'cpukit/score/cpu/sh') diff --git a/cpukit/score/cpu/sh/Makefile.am b/cpukit/score/cpu/sh/Makefile.am index 68be19fffa..b480b1aa26 100644 --- a/cpukit/score/cpu/sh/Makefile.am +++ b/cpukit/score/cpu/sh/Makefile.am @@ -5,6 +5,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/types.h include_rtems_score_HEADERS += rtems/score/sh.h include_rtems_score_HEADERS += rtems/score/sh_io.h diff --git a/cpukit/score/cpu/sh/preinstall.am b/cpukit/score/cpu/sh/preinstall.am index c7b29acba4..08d2352709 100644 --- a/cpukit/score/cpu/sh/preinstall.am +++ b/cpukit/score/cpu/sh/preinstall.am @@ -31,6 +31,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/types.h: rtems/score/types.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/types.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/types.h diff --git a/cpukit/score/cpu/sh/rtems/score/cpuimpl.h b/cpukit/score/cpu/sh/rtems/score/cpuimpl.h new file mode 100644 index 0000000000..6b8b601cb0 --- /dev/null +++ b/cpukit/score/cpu/sh/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 + +#ifndef ASM + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* ASM */ + +#endif /* _RTEMS_SCORE_CPUIMPL_H */ -- cgit v1.2.3