mbed library sources. Supersedes mbed-src. Edited target satm32f446 for user USART3 pins
Fork of mbed-dev by
targets/TARGET_RENESAS/mbed_rtx.h@188:3f10722804f9, 2018-07-30 (annotated)
- Committer:
- ua1arn
- Date:
- Mon Jul 30 12:31:10 2018 +0000
- Revision:
- 188:3f10722804f9
- Parent:
- 186:707f6e361f3e
before add multi-configuration USB descriptors
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Anna Bridge |
180:96ed750bd169 | 1 | /* mbed Microcontroller Library |
Anna Bridge |
180:96ed750bd169 | 2 | * Copyright (c) 2016 ARM Limited |
Anna Bridge |
180:96ed750bd169 | 3 | * |
Anna Bridge |
180:96ed750bd169 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Anna Bridge |
180:96ed750bd169 | 5 | * you may not use this file except in compliance with the License. |
Anna Bridge |
180:96ed750bd169 | 6 | * You may obtain a copy of the License at |
Anna Bridge |
180:96ed750bd169 | 7 | * |
Anna Bridge |
180:96ed750bd169 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Anna Bridge |
180:96ed750bd169 | 9 | * |
Anna Bridge |
180:96ed750bd169 | 10 | * Unless required by applicable law or agreed to in writing, software |
Anna Bridge |
180:96ed750bd169 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Anna Bridge |
180:96ed750bd169 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Anna Bridge |
180:96ed750bd169 | 13 | * See the License for the specific language governing permissions and |
Anna Bridge |
180:96ed750bd169 | 14 | * limitations under the License. |
Anna Bridge |
180:96ed750bd169 | 15 | */ |
Anna Bridge |
180:96ed750bd169 | 16 | #ifndef MBED_MBED_RTX_H |
Anna Bridge |
180:96ed750bd169 | 17 | #define MBED_MBED_RTX_H |
Anna Bridge |
180:96ed750bd169 | 18 | |
Anna Bridge |
180:96ed750bd169 | 19 | #include <stdint.h> |
Anna Bridge |
180:96ed750bd169 | 20 | |
AnnaBridge | 184:08ed48f1de7f | 21 | #if defined(TARGET_RZ_A1H) || defined(TARGET_VK_RZ_A1H) || defined(TARGET_GR_LYCHEE) |
Anna Bridge |
180:96ed750bd169 | 22 | |
Anna Bridge |
180:96ed750bd169 | 23 | #if defined(__CC_ARM) |
Anna Bridge |
180:96ed750bd169 | 24 | extern char Image$$ARM_LIB_STACK$$Base[]; |
Anna Bridge |
180:96ed750bd169 | 25 | extern char Image$$ARM_LIB_STACK$$ZI$$Limit[]; |
Anna Bridge |
180:96ed750bd169 | 26 | extern char Image$$ARM_LIB_HEAP$$Base[]; |
Anna Bridge |
180:96ed750bd169 | 27 | #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$Base) |
Anna Bridge |
180:96ed750bd169 | 28 | #define ISR_STACK_SIZE ((uint32_t)((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Limit - (uint32_t)Image$$ARM_LIB_STACK$$Base)) |
Anna Bridge |
180:96ed750bd169 | 29 | #define INITIAL_SP (Image$$ARM_LIB_STACK$$ZI$$Limit) |
Anna Bridge |
180:96ed750bd169 | 30 | #define HEAP_START ((unsigned char*)Image$$ARM_LIB_HEAP$$Base) |
Anna Bridge |
180:96ed750bd169 | 31 | #define HEAP_SIZE ((uint32_t)((uint32_t)ISR_STACK_START - (uint32_t)HEAP_START)) |
Anna Bridge |
180:96ed750bd169 | 32 | #elif defined(__GNUC__) |
Anna Bridge |
180:96ed750bd169 | 33 | extern uint32_t __StackTop; |
Anna Bridge |
180:96ed750bd169 | 34 | extern uint32_t __StackLimit; |
Anna Bridge |
180:96ed750bd169 | 35 | extern uint32_t __end__; |
Anna Bridge |
180:96ed750bd169 | 36 | #define ISR_STACK_START ((unsigned char*)&__StackLimit) |
Anna Bridge |
180:96ed750bd169 | 37 | #define ISR_STACK_SIZE ((uint32_t)((uint32_t)&__StackTop - (uint32_t)&__StackLimit)) |
Anna Bridge |
180:96ed750bd169 | 38 | #define INITIAL_SP (&__StackTop) |
Anna Bridge |
180:96ed750bd169 | 39 | #define HEAP_START ((unsigned char*)&__end__) |
Anna Bridge |
180:96ed750bd169 | 40 | #define HEAP_SIZE ((uint32_t)((uint32_t)ISR_STACK_START - (uint32_t)HEAP_START)) |
Anna Bridge |
180:96ed750bd169 | 41 | #elif defined(__ICCARM__) |
Anna Bridge |
180:96ed750bd169 | 42 | /* No region declarations needed */ |
Anna Bridge |
180:96ed750bd169 | 43 | #else |
Anna Bridge |
180:96ed750bd169 | 44 | #error "no toolchain defined" |
Anna Bridge |
180:96ed750bd169 | 45 | #endif |
AnnaBridge | 181:57724642e740 | 46 | #endif |
Anna Bridge |
180:96ed750bd169 | 47 | |
Anna Bridge |
180:96ed750bd169 | 48 | #endif // MBED_MBED_RTX_H |