Hiruka Hana / Gyro_Accelerometre

Dependents:   Gyro_Accelerometre2

Committer:
SandrineO
Date:
Tue Feb 20 15:58:26 2018 +0000
Revision:
0:07281ea3b26b
temps r?el

Who changed what in which revision?

UserRevisionLine numberNew contents of line
SandrineO 0:07281ea3b26b 1 /* mbed Microcontroller Library
SandrineO 0:07281ea3b26b 2 * Copyright (c) 2016 ARM Limited
SandrineO 0:07281ea3b26b 3 *
SandrineO 0:07281ea3b26b 4 * Licensed under the Apache License, Version 2.0 (the "License");
SandrineO 0:07281ea3b26b 5 * you may not use this file except in compliance with the License.
SandrineO 0:07281ea3b26b 6 * You may obtain a copy of the License at
SandrineO 0:07281ea3b26b 7 *
SandrineO 0:07281ea3b26b 8 * http://www.apache.org/licenses/LICENSE-2.0
SandrineO 0:07281ea3b26b 9 *
SandrineO 0:07281ea3b26b 10 * Unless required by applicable law or agreed to in writing, software
SandrineO 0:07281ea3b26b 11 * distributed under the License is distributed on an "AS IS" BASIS,
SandrineO 0:07281ea3b26b 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
SandrineO 0:07281ea3b26b 13 * See the License for the specific language governing permissions and
SandrineO 0:07281ea3b26b 14 * limitations under the License.
SandrineO 0:07281ea3b26b 15 */
SandrineO 0:07281ea3b26b 16
SandrineO 0:07281ea3b26b 17 #ifndef MBED_MBED_RTX_H
SandrineO 0:07281ea3b26b 18 #define MBED_MBED_RTX_H
SandrineO 0:07281ea3b26b 19
SandrineO 0:07281ea3b26b 20 #include <stdint.h>
SandrineO 0:07281ea3b26b 21
SandrineO 0:07281ea3b26b 22 #if defined(TARGET_NUMAKER_PFM_NUC472)
SandrineO 0:07281ea3b26b 23
SandrineO 0:07281ea3b26b 24 // RTX 4 only config below, for backward-compability
SandrineO 0:07281ea3b26b 25
SandrineO 0:07281ea3b26b 26 #ifndef OS_TASKCNT
SandrineO 0:07281ea3b26b 27 #define OS_TASKCNT 14
SandrineO 0:07281ea3b26b 28 #endif
SandrineO 0:07281ea3b26b 29 #ifndef OS_MAINSTKSIZE
SandrineO 0:07281ea3b26b 30 #define OS_MAINSTKSIZE 256
SandrineO 0:07281ea3b26b 31 #endif
SandrineO 0:07281ea3b26b 32 #ifndef OS_CLOCK
SandrineO 0:07281ea3b26b 33 #define OS_CLOCK 84000000
SandrineO 0:07281ea3b26b 34 #endif
SandrineO 0:07281ea3b26b 35
SandrineO 0:07281ea3b26b 36 #if defined(__CC_ARM)
SandrineO 0:07281ea3b26b 37 extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Base[];
SandrineO 0:07281ea3b26b 38 extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Length[];
SandrineO 0:07281ea3b26b 39 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
SandrineO 0:07281ea3b26b 40 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
SandrineO 0:07281ea3b26b 41 #define HEAP_START ((unsigned char*) Image$$ARM_LIB_HEAP$$ZI$$Base)
SandrineO 0:07281ea3b26b 42 #define HEAP_SIZE ((uint32_t) Image$$ARM_LIB_HEAP$$ZI$$Length)
SandrineO 0:07281ea3b26b 43 #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base)
SandrineO 0:07281ea3b26b 44 #define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length)
SandrineO 0:07281ea3b26b 45 #elif defined(__GNUC__)
SandrineO 0:07281ea3b26b 46 extern uint32_t __StackTop[];
SandrineO 0:07281ea3b26b 47 extern uint32_t __StackLimit[];
SandrineO 0:07281ea3b26b 48 extern uint32_t __end__[];
SandrineO 0:07281ea3b26b 49 extern uint32_t __HeapLimit[];
SandrineO 0:07281ea3b26b 50 #define HEAP_START ((unsigned char*)__end__)
SandrineO 0:07281ea3b26b 51 #define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START))
SandrineO 0:07281ea3b26b 52 #define ISR_STACK_START ((unsigned char*)__StackLimit)
SandrineO 0:07281ea3b26b 53 #define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
SandrineO 0:07281ea3b26b 54 #elif defined(__ICCARM__)
SandrineO 0:07281ea3b26b 55 /* No region declarations needed */
SandrineO 0:07281ea3b26b 56 #else
SandrineO 0:07281ea3b26b 57 #error "no toolchain defined"
SandrineO 0:07281ea3b26b 58 #endif
SandrineO 0:07281ea3b26b 59
SandrineO 0:07281ea3b26b 60 #elif defined(TARGET_NUMAKER_PFM_M453)
SandrineO 0:07281ea3b26b 61
SandrineO 0:07281ea3b26b 62 // RTX 4 only config below, for backward-compability
SandrineO 0:07281ea3b26b 63
SandrineO 0:07281ea3b26b 64 #ifndef OS_TASKCNT
SandrineO 0:07281ea3b26b 65 #define OS_TASKCNT 14
SandrineO 0:07281ea3b26b 66 #endif
SandrineO 0:07281ea3b26b 67 #ifndef OS_MAINSTKSIZE
SandrineO 0:07281ea3b26b 68 #define OS_MAINSTKSIZE 256
SandrineO 0:07281ea3b26b 69 #endif
SandrineO 0:07281ea3b26b 70 #ifndef OS_CLOCK
SandrineO 0:07281ea3b26b 71 #define OS_CLOCK 72000000
SandrineO 0:07281ea3b26b 72 #endif
SandrineO 0:07281ea3b26b 73
SandrineO 0:07281ea3b26b 74 #if defined(__CC_ARM)
SandrineO 0:07281ea3b26b 75 extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Base[];
SandrineO 0:07281ea3b26b 76 extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Length[];
SandrineO 0:07281ea3b26b 77 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
SandrineO 0:07281ea3b26b 78 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
SandrineO 0:07281ea3b26b 79 #define HEAP_START ((unsigned char*) Image$$ARM_LIB_HEAP$$ZI$$Base)
SandrineO 0:07281ea3b26b 80 #define HEAP_SIZE ((uint32_t) Image$$ARM_LIB_HEAP$$ZI$$Length)
SandrineO 0:07281ea3b26b 81 #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base)
SandrineO 0:07281ea3b26b 82 #define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length)
SandrineO 0:07281ea3b26b 83 #elif defined(__GNUC__)
SandrineO 0:07281ea3b26b 84 extern uint32_t __StackTop[];
SandrineO 0:07281ea3b26b 85 extern uint32_t __StackLimit[];
SandrineO 0:07281ea3b26b 86 extern uint32_t __end__[];
SandrineO 0:07281ea3b26b 87 extern uint32_t __HeapLimit[];
SandrineO 0:07281ea3b26b 88 #define HEAP_START ((unsigned char*)__end__)
SandrineO 0:07281ea3b26b 89 #define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START))
SandrineO 0:07281ea3b26b 90 #define ISR_STACK_START ((unsigned char*)__StackLimit)
SandrineO 0:07281ea3b26b 91 #define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
SandrineO 0:07281ea3b26b 92 #elif defined(__ICCARM__)
SandrineO 0:07281ea3b26b 93 /* No region declarations needed */
SandrineO 0:07281ea3b26b 94 #else
SandrineO 0:07281ea3b26b 95 #error "no toolchain defined"
SandrineO 0:07281ea3b26b 96 #endif
SandrineO 0:07281ea3b26b 97
SandrineO 0:07281ea3b26b 98 #endif
SandrineO 0:07281ea3b26b 99
SandrineO 0:07281ea3b26b 100 #endif // MBED_MBED_RTX_H