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_MCU_NRF51822)
sahilmgandhi 18:6a4db94011d3 21
sahilmgandhi 18:6a4db94011d3 22 #ifndef INITIAL_SP
sahilmgandhi 18:6a4db94011d3 23 # if defined(TARGET_MCU_NORDIC_32K)
sahilmgandhi 18:6a4db94011d3 24 # define INITIAL_SP (0x20008000UL)
sahilmgandhi 18:6a4db94011d3 25 # elif defined(TARGET_MCU_NORDIC_16K)
sahilmgandhi 18:6a4db94011d3 26 # define INITIAL_SP (0x20004000UL)
sahilmgandhi 18:6a4db94011d3 27 # endif
sahilmgandhi 18:6a4db94011d3 28 #endif
sahilmgandhi 18:6a4db94011d3 29
sahilmgandhi 18:6a4db94011d3 30 #ifndef OS_TASKCNT
sahilmgandhi 18:6a4db94011d3 31 #define OS_TASKCNT 6
sahilmgandhi 18:6a4db94011d3 32 #endif
sahilmgandhi 18:6a4db94011d3 33 #ifndef OS_MAINSTKSIZE
sahilmgandhi 18:6a4db94011d3 34 #define OS_MAINSTKSIZE 512
sahilmgandhi 18:6a4db94011d3 35 #endif
sahilmgandhi 18:6a4db94011d3 36 #ifndef OS_CLOCK
sahilmgandhi 18:6a4db94011d3 37 #define OS_CLOCK 32768
sahilmgandhi 18:6a4db94011d3 38 #endif
sahilmgandhi 18:6a4db94011d3 39 #ifndef OS_SYSTICK
sahilmgandhi 18:6a4db94011d3 40 #define OS_SYSTICK 0
sahilmgandhi 18:6a4db94011d3 41 #endif
sahilmgandhi 18:6a4db94011d3 42
sahilmgandhi 18:6a4db94011d3 43 #elif defined(TARGET_MCU_NRF52832)
sahilmgandhi 18:6a4db94011d3 44
sahilmgandhi 18:6a4db94011d3 45 #ifndef INITIAL_SP
sahilmgandhi 18:6a4db94011d3 46 #define INITIAL_SP (0x20010000UL)
sahilmgandhi 18:6a4db94011d3 47 #endif
sahilmgandhi 18:6a4db94011d3 48 #ifndef OS_TASKCNT
sahilmgandhi 18:6a4db94011d3 49 #define OS_TASKCNT 6
sahilmgandhi 18:6a4db94011d3 50 #endif
sahilmgandhi 18:6a4db94011d3 51 #ifndef OS_MAINSTKSIZE
sahilmgandhi 18:6a4db94011d3 52 #define OS_MAINSTKSIZE 512
sahilmgandhi 18:6a4db94011d3 53 #endif
sahilmgandhi 18:6a4db94011d3 54 #ifndef OS_CLOCK
sahilmgandhi 18:6a4db94011d3 55 #define OS_CLOCK 64000000
sahilmgandhi 18:6a4db94011d3 56 #endif
sahilmgandhi 18:6a4db94011d3 57
sahilmgandhi 18:6a4db94011d3 58 #elif defined(TARGET_MCU_NRF52840)
sahilmgandhi 18:6a4db94011d3 59
sahilmgandhi 18:6a4db94011d3 60 #ifndef INITIAL_SP
sahilmgandhi 18:6a4db94011d3 61 #define INITIAL_SP (0x20040000UL)
sahilmgandhi 18:6a4db94011d3 62 #endif
sahilmgandhi 18:6a4db94011d3 63 #ifndef OS_TASKCNT
sahilmgandhi 18:6a4db94011d3 64 #define OS_TASKCNT 24
sahilmgandhi 18:6a4db94011d3 65 #endif
sahilmgandhi 18:6a4db94011d3 66 #ifndef OS_MAINSTKSIZE
sahilmgandhi 18:6a4db94011d3 67 #define OS_MAINSTKSIZE 2048
sahilmgandhi 18:6a4db94011d3 68 #endif
sahilmgandhi 18:6a4db94011d3 69 #ifndef OS_CLOCK
sahilmgandhi 18:6a4db94011d3 70 #define OS_CLOCK 64000000
sahilmgandhi 18:6a4db94011d3 71 #endif
sahilmgandhi 18:6a4db94011d3 72
sahilmgandhi 18:6a4db94011d3 73 #endif // defined(TARGET_MCU_NRF51822)...
sahilmgandhi 18:6a4db94011d3 74
sahilmgandhi 18:6a4db94011d3 75 #endif // #ifndef MBED_MBED_RTX_H