mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
mbed_crash_data_offsets.h
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2006-2013 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #ifndef MBED_CRASH_DATA_INFO_H 00017 #define MBED_CRASH_DATA_INFO_H 00018 00019 #include "platform/mbed_retarget.h" 00020 #include "platform/mbed_toolchain.h" 00021 00022 #ifdef __cplusplus 00023 extern "C" { 00024 #endif 00025 00026 #if MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED 00027 #if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) 00028 extern uint32_t Image$$RW_m_crash_data$$ZI$$Base[]; 00029 extern uint32_t Image$$RW_m_crash_data$$ZI$$Size; 00030 #define __CRASH_DATA_RAM_START__ Image$$RW_m_crash_data$$ZI$$Base 00031 #define __CRASH_DATA_RAM_SIZE__ Image$$RW_m_crash_data$$ZI$$Size 00032 #elif defined(__ICCARM__) 00033 extern uint32_t __CRASH_DATA_RAM_START__[]; 00034 extern uint32_t __CRASH_DATA_RAM_END__[]; 00035 #define __CRASH_DATA_RAM_SIZE__ (__CRASH_DATA_RAM_END__ - __CRASH_DATA_RAM_START__) 00036 #elif defined(__GNUC__) 00037 extern uint32_t __CRASH_DATA_RAM_START__[]; 00038 extern uint32_t __CRASH_DATA_RAM_END__[]; 00039 #define __CRASH_DATA_RAM_SIZE__ (__CRASH_DATA_RAM_END__ - __CRASH_DATA_RAM_START__) 00040 #endif /* defined(__CC_ARM) */ 00041 00042 /* Offset definitions for context capture */ 00043 #define FAULT_CONTEXT_OFFSET (0x0) 00044 #define FAULT_CONTEXT_SIZE (0x80 / 4) //32 words(128 bytes) for Fault Context 00045 #define ERROR_CONTEXT_OFFSET (FAULT_CONTEXT_OFFSET + FAULT_CONTEXT_SIZE) 00046 #define ERROR_CONTEXT_SIZE (0x80 / 4) //32 words(128 bytes) bytes for Error Context 00047 #define FAULT_CONTEXT_LOCATION (__CRASH_DATA_RAM_START__ + FAULT_CONTEXT_OFFSET) 00048 #define ERROR_CONTEXT_LOCATION (__CRASH_DATA_RAM_START__ + ERROR_CONTEXT_OFFSET) 00049 #endif 00050 00051 #ifdef __cplusplus 00052 } 00053 #endif 00054 00055 #endif 00056 00057 00058
Generated on Tue Jul 12 2022 20:41:15 by 1.7.2