2015-04-10 16:44:37 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2014 Wind River Systems, Inc.
|
|
|
|
*
|
2015-10-06 11:00:37 -05:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2015-04-10 16:44:37 -07:00
|
|
|
*
|
2015-10-06 11:00:37 -05:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2015-04-10 16:44:37 -07:00
|
|
|
*
|
2015-10-06 11:00:37 -05:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
2015-04-10 16:44:37 -07:00
|
|
|
*/
|
|
|
|
|
2015-12-04 10:09:39 -05:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief ARM specific nanokernel interface header
|
|
|
|
*
|
2015-10-20 09:42:33 -07:00
|
|
|
* This header contains the ARM specific nanokernel interface. It is
|
|
|
|
* included by the nanokernel interface architecture-abstraction header
|
|
|
|
* (nanokernel/cpu.h)
|
2015-07-01 17:22:39 -04:00
|
|
|
*/
|
2015-04-10 16:44:37 -07:00
|
|
|
|
|
|
|
#ifndef _ARM_ARCH__H_
|
|
|
|
#define _ARM_ARCH__H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-10-04 09:34:11 -04:00
|
|
|
/* APIs need to support non-byte addressable architectures */
|
2015-06-01 13:39:43 -04:00
|
|
|
|
|
|
|
#define OCTET_TO_SIZEOFUNIT(X) (X)
|
|
|
|
#define SIZEOFUNIT_TO_OCTET(X) (X)
|
|
|
|
|
2015-06-17 11:16:57 -04:00
|
|
|
#ifdef CONFIG_CPU_CORTEX_M
|
2015-08-20 16:46:11 -04:00
|
|
|
#include <arch/arm/cortex_m/exc.h>
|
|
|
|
#include <arch/arm/cortex_m/irq.h>
|
|
|
|
#include <arch/arm/cortex_m/error.h>
|
|
|
|
#include <arch/arm/cortex_m/misc.h>
|
|
|
|
#include <arch/arm/cortex_m/scs.h>
|
|
|
|
#include <arch/arm/cortex_m/scb.h>
|
|
|
|
#include <arch/arm/cortex_m/nvic.h>
|
|
|
|
#include <arch/arm/cortex_m/memory_map.h>
|
|
|
|
#include <arch/arm/cortex_m/gdb_stub.h>
|
|
|
|
#include <arch/arm/cortex_m/asm_inline.h>
|
2015-09-18 15:57:27 -04:00
|
|
|
#include <arch/arm/cortex_m/addr_types.h>
|
2015-04-10 16:44:37 -07:00
|
|
|
#endif
|
|
|
|
|
2015-05-26 10:21:42 -04:00
|
|
|
#define STACK_ALIGN 4
|
|
|
|
|
2015-04-10 16:44:37 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _ARM_ARCH__H_ */
|