Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Committer:
sahilmgandhi
Date:
Sun May 14 23:18:57 2017 +0000
Revision:
18:6a4db94011d3
Publishing again

Who changed what in which revision?

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