Relocate macros for supporting non-byte addressible architectures

Moves these macros to the main public API include file for each
supported architecture, since the <arch>type.h include file is
to be eliminated.

Change-Id: Ia87b9c0bed1501bcce7f363bd4155f7ef642376a
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
Allan Stephens 2015-06-01 13:39:43 -04:00 committed by Anas Nashif
commit 03a2abe737
6 changed files with 15 additions and 13 deletions

View file

@ -49,6 +49,11 @@ extern "C" {
#include <cputype.h>
#endif
/* APIs need to support non-byte addressible architectures */
#define OCTET_TO_SIZEOFUNIT(X) (X)
#define SIZEOFUNIT_TO_OCTET(X) (X)
#ifdef CONFIG_CPU_CORTEXM
#include <arch/arm/CortexM/init.h>
#include <arch/arm/CortexM/exc.h>