hal_tick.h changed for the L432KC target in TARGET/../device/ in order to reassign the system ticker from TIM2 to TIM7, since TIM2 was needed as a 32bit encoder counter.

Dependents:   Nucleo_L432KC_Quadrature_Decoder_with_ADC_and_DAC

Fork of mbed-dev by mbed official

Committer:
<>
Date:
Tue Dec 20 17:27:56 2016 +0000
Revision:
153:fa9ff456f731
Parent:
149:156823d33999
This updates the lib to the mbed lib v132

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 149:156823d33999 1 /* mbed Microcontroller Library
<> 149:156823d33999 2 * Copyright (c) 2016 ARM Limited
<> 149:156823d33999 3 *
<> 149:156823d33999 4 * Licensed under the Apache License, Version 2.0 (the "License");
<> 149:156823d33999 5 * you may not use this file except in compliance with the License.
<> 149:156823d33999 6 * You may obtain a copy of the License at
<> 149:156823d33999 7 *
<> 149:156823d33999 8 * http://www.apache.org/licenses/LICENSE-2.0
<> 149:156823d33999 9 *
<> 149:156823d33999 10 * Unless required by applicable law or agreed to in writing, software
<> 149:156823d33999 11 * distributed under the License is distributed on an "AS IS" BASIS,
<> 149:156823d33999 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 149:156823d33999 13 * See the License for the specific language governing permissions and
<> 149:156823d33999 14 * limitations under the License.
<> 149:156823d33999 15 */
<> 149:156823d33999 16
<> 149:156823d33999 17 #ifndef MBED_MBED_RTX_H
<> 149:156823d33999 18 #define MBED_MBED_RTX_H
<> 149:156823d33999 19
<> 149:156823d33999 20 #include "clocking.h"
<> 149:156823d33999 21
<> 149:156823d33999 22 #ifndef OS_CLOCK
<> 149:156823d33999 23 #define OS_CLOCK REFERENCE_FREQUENCY
<> 149:156823d33999 24 #endif
<> 149:156823d33999 25
<> 153:fa9ff456f731 26 #if defined(__CC_ARM)
<> 153:fa9ff456f731 27 extern uint32_t HEAP$$Base;
<> 153:fa9ff456f731 28 extern uint32_t HEAP$$Limit;
<> 153:fa9ff456f731 29 extern uint32_t STACK$$Limit;
<> 153:fa9ff456f731 30 extern uint32_t STACK$$Base;
<> 153:fa9ff456f731 31 #ifndef INITIAL_SP
<> 153:fa9ff456f731 32 #define INITIAL_SP ((uint32_t)&STACK$$Limit)
<> 153:fa9ff456f731 33 #endif
<> 153:fa9ff456f731 34 #define ISR_STACK_START ((uint32_t)&STACK$$Base)
<> 153:fa9ff456f731 35 #define ISR_STACK_SIZE ((uint32_t) ((uint32_t)&STACK$$Limit - (uint32_t)&STACK$$Base))
<> 153:fa9ff456f731 36 #define HEAP_START ((unsigned char*) ((uint32_t)&HEAP$$Base))
<> 153:fa9ff456f731 37 #define HEAP_SIZE ((uint32_t) ((uint32_t)&HEAP$$Limit - (uint32_t)&HEAP$$Base))
<> 153:fa9ff456f731 38 #endif
<> 153:fa9ff456f731 39
<> 149:156823d33999 40 #if defined(TARGET_EFM32GG_STK3700)
<> 149:156823d33999 41
<> 149:156823d33999 42 #ifndef INITIAL_SP
<> 149:156823d33999 43 #define INITIAL_SP (0x20020000UL)
<> 149:156823d33999 44 #endif
<> 149:156823d33999 45
<> 149:156823d33999 46 #ifndef OS_TASKCNT
<> 149:156823d33999 47 #define OS_TASKCNT 14
<> 149:156823d33999 48 #endif
<> 149:156823d33999 49 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 50 #define OS_MAINSTKSIZE 256
<> 149:156823d33999 51 #endif
<> 149:156823d33999 52
<> 149:156823d33999 53 #elif defined(TARGET_EFM32HG_STK3400)
<> 149:156823d33999 54
<> 149:156823d33999 55 #ifndef INITIAL_SP
<> 149:156823d33999 56 #define INITIAL_SP (0x20002000UL)
<> 149:156823d33999 57 #endif
<> 149:156823d33999 58
<> 149:156823d33999 59 #ifndef OS_TASKCNT
<> 149:156823d33999 60 #define OS_TASKCNT 6
<> 149:156823d33999 61 #endif
<> 149:156823d33999 62 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 63 #define OS_MAINSTKSIZE 112
<> 149:156823d33999 64 #endif
<> 149:156823d33999 65
<> 149:156823d33999 66 #elif defined(TARGET_EFM32LG_STK3600)
<> 149:156823d33999 67
<> 149:156823d33999 68 #ifndef INITIAL_SP
<> 149:156823d33999 69 #define INITIAL_SP (0x20008000UL)
<> 149:156823d33999 70 #endif
<> 149:156823d33999 71
<> 149:156823d33999 72 #ifndef OS_TASKCNT
<> 149:156823d33999 73 #define OS_TASKCNT 14
<> 149:156823d33999 74 #endif
<> 149:156823d33999 75 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 76 #define OS_MAINSTKSIZE 128
<> 149:156823d33999 77 #endif
<> 149:156823d33999 78
<> 149:156823d33999 79 #elif defined(TARGET_EFM32PG_STK3401)
<> 149:156823d33999 80
<> 149:156823d33999 81 #ifndef INITIAL_SP
<> 149:156823d33999 82 #define INITIAL_SP (0x20008000UL)
<> 149:156823d33999 83 #endif
<> 149:156823d33999 84
<> 149:156823d33999 85 #ifndef OS_TASKCNT
<> 149:156823d33999 86 #define OS_TASKCNT 14
<> 149:156823d33999 87 #endif
<> 149:156823d33999 88 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 89 #define OS_MAINSTKSIZE 128
<> 149:156823d33999 90 #endif
<> 149:156823d33999 91
<> 149:156823d33999 92 #elif defined(TARGET_EFM32WG_STK3800)
<> 149:156823d33999 93
<> 149:156823d33999 94 #ifndef INITIAL_SP
<> 149:156823d33999 95 #define INITIAL_SP (0x20008000UL)
<> 149:156823d33999 96 #endif
<> 149:156823d33999 97
<> 149:156823d33999 98 #ifndef OS_TASKCNT
<> 149:156823d33999 99 #define OS_TASKCNT 14
<> 149:156823d33999 100 #endif
<> 149:156823d33999 101 #ifndef OS_MAINSTKSIZE
<> 149:156823d33999 102 #define OS_MAINSTKSIZE 128
<> 149:156823d33999 103 #endif
<> 149:156823d33999 104
<> 153:fa9ff456f731 105 #elif defined(TARGET_EFR32MG1)
<> 153:fa9ff456f731 106
<> 153:fa9ff456f731 107 #ifndef INITIAL_SP
<> 153:fa9ff456f731 108 #define INITIAL_SP (0x20007C00UL)
<> 153:fa9ff456f731 109 #endif
<> 153:fa9ff456f731 110
<> 153:fa9ff456f731 111 #ifndef OS_TASKCNT
<> 153:fa9ff456f731 112 #define OS_TASKCNT 5
<> 153:fa9ff456f731 113 #endif
<> 153:fa9ff456f731 114 #ifndef OS_MAINSTKSIZE
<> 153:fa9ff456f731 115 #define OS_MAINSTKSIZE 256
<> 153:fa9ff456f731 116 #endif
<> 153:fa9ff456f731 117
<> 149:156823d33999 118 #endif
<> 149:156823d33999 119
<> 149:156823d33999 120 #endif // MBED_MBED_RTX_H