Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Committer:
sahilmgandhi
Date:
Sat Jun 03 00:22:44 2017 +0000
Revision:
46:b156ef445742
Parent:
18:6a4db94011d3
Final code for internal battlebot competition.

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_MAX32600)
sahilmgandhi 18:6a4db94011d3 21
sahilmgandhi 18:6a4db94011d3 22 #ifndef INITIAL_SP
sahilmgandhi 18:6a4db94011d3 23 #define INITIAL_SP (0x20008000UL)
sahilmgandhi 18:6a4db94011d3 24 #endif
sahilmgandhi 18:6a4db94011d3 25 #ifndef OS_TASKCNT
sahilmgandhi 18:6a4db94011d3 26 #define OS_TASKCNT 14
sahilmgandhi 18:6a4db94011d3 27 #endif
sahilmgandhi 18:6a4db94011d3 28 #ifndef OS_MAINSTKSIZE
sahilmgandhi 18:6a4db94011d3 29 #define OS_MAINSTKSIZE 256
sahilmgandhi 18:6a4db94011d3 30 #endif
sahilmgandhi 18:6a4db94011d3 31 #ifndef OS_CLOCK
sahilmgandhi 18:6a4db94011d3 32 #define OS_CLOCK 24000000
sahilmgandhi 18:6a4db94011d3 33 #endif
sahilmgandhi 18:6a4db94011d3 34
sahilmgandhi 18:6a4db94011d3 35 #elif defined(TARGET_MAX32610)
sahilmgandhi 18:6a4db94011d3 36
sahilmgandhi 18:6a4db94011d3 37 #ifndef INITIAL_SP
sahilmgandhi 18:6a4db94011d3 38 #define INITIAL_SP (0x20008000UL)
sahilmgandhi 18:6a4db94011d3 39 #endif
sahilmgandhi 18:6a4db94011d3 40 #ifndef OS_TASKCNT
sahilmgandhi 18:6a4db94011d3 41 #define OS_TASKCNT 14
sahilmgandhi 18:6a4db94011d3 42 #endif
sahilmgandhi 18:6a4db94011d3 43 #ifndef OS_MAINSTKSIZE
sahilmgandhi 18:6a4db94011d3 44 #define OS_MAINSTKSIZE 256
sahilmgandhi 18:6a4db94011d3 45 #endif
sahilmgandhi 18:6a4db94011d3 46 #ifndef OS_CLOCK
sahilmgandhi 18:6a4db94011d3 47 #define OS_CLOCK 24000000
sahilmgandhi 18:6a4db94011d3 48 #endif
sahilmgandhi 18:6a4db94011d3 49
sahilmgandhi 18:6a4db94011d3 50 #elif defined(TARGET_MAX32620)
sahilmgandhi 18:6a4db94011d3 51
sahilmgandhi 18:6a4db94011d3 52 #ifndef INITIAL_SP
sahilmgandhi 18:6a4db94011d3 53 #define INITIAL_SP (0x20040000UL)
sahilmgandhi 18:6a4db94011d3 54 #endif
sahilmgandhi 18:6a4db94011d3 55 #ifndef OS_TASKCNT
sahilmgandhi 18:6a4db94011d3 56 #define OS_TASKCNT 14
sahilmgandhi 18:6a4db94011d3 57 #endif
sahilmgandhi 18:6a4db94011d3 58 #ifndef OS_MAINSTKSIZE
sahilmgandhi 18:6a4db94011d3 59 #define OS_MAINSTKSIZE 256
sahilmgandhi 18:6a4db94011d3 60 #endif
sahilmgandhi 18:6a4db94011d3 61 #ifndef OS_CLOCK
sahilmgandhi 18:6a4db94011d3 62 #define OS_CLOCK 48000000
sahilmgandhi 18:6a4db94011d3 63 #endif
sahilmgandhi 18:6a4db94011d3 64
sahilmgandhi 18:6a4db94011d3 65 #elif defined(TARGET_MAX32625)
sahilmgandhi 18:6a4db94011d3 66
sahilmgandhi 18:6a4db94011d3 67 #ifndef INITIAL_SP
sahilmgandhi 18:6a4db94011d3 68 #define INITIAL_SP (0x20028000UL)
sahilmgandhi 18:6a4db94011d3 69 #endif
sahilmgandhi 18:6a4db94011d3 70 #ifndef OS_TASKCNT
sahilmgandhi 18:6a4db94011d3 71 #define OS_TASKCNT 14
sahilmgandhi 18:6a4db94011d3 72 #endif
sahilmgandhi 18:6a4db94011d3 73 #ifndef OS_MAINSTKSIZE
sahilmgandhi 18:6a4db94011d3 74 #define OS_MAINSTKSIZE 256
sahilmgandhi 18:6a4db94011d3 75 #endif
sahilmgandhi 18:6a4db94011d3 76 #ifndef OS_CLOCK
sahilmgandhi 18:6a4db94011d3 77 #define OS_CLOCK 96000000
sahilmgandhi 18:6a4db94011d3 78 #endif
sahilmgandhi 18:6a4db94011d3 79
sahilmgandhi 18:6a4db94011d3 80 #elif defined(TARGET_MAX32630)
sahilmgandhi 18:6a4db94011d3 81
sahilmgandhi 18:6a4db94011d3 82 #ifndef INITIAL_SP
sahilmgandhi 18:6a4db94011d3 83 #define INITIAL_SP (0x20080000UL)
sahilmgandhi 18:6a4db94011d3 84 #endif
sahilmgandhi 18:6a4db94011d3 85 #ifndef OS_TASKCNT
sahilmgandhi 18:6a4db94011d3 86 #define OS_TASKCNT 14
sahilmgandhi 18:6a4db94011d3 87 #endif
sahilmgandhi 18:6a4db94011d3 88 #ifndef OS_MAINSTKSIZE
sahilmgandhi 18:6a4db94011d3 89 #define OS_MAINSTKSIZE 256
sahilmgandhi 18:6a4db94011d3 90 #endif
sahilmgandhi 18:6a4db94011d3 91 #ifndef OS_CLOCK
sahilmgandhi 18:6a4db94011d3 92 #define OS_CLOCK 96000000
sahilmgandhi 18:6a4db94011d3 93 #endif
sahilmgandhi 18:6a4db94011d3 94
sahilmgandhi 18:6a4db94011d3 95 #endif
sahilmgandhi 18:6a4db94011d3 96
sahilmgandhi 18:6a4db94011d3 97 #endif // MBED_MBED_RTX_H