Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Committer:
sahilmgandhi
Date:
Fri May 26 17:21:04 2017 +0000
Revision:
34:69342782fb68
Parent:
18:6a4db94011d3
Added small reverse turns before the break so that we can stop faster.

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 u-blox
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_PERIPHERALNAMES_H
sahilmgandhi 18:6a4db94011d3 18 #define MBED_PERIPHERALNAMES_H
sahilmgandhi 18:6a4db94011d3 19
sahilmgandhi 18:6a4db94011d3 20 #include "cmsis.h"
sahilmgandhi 18:6a4db94011d3 21
sahilmgandhi 18:6a4db94011d3 22 #ifdef __cplusplus
sahilmgandhi 18:6a4db94011d3 23 extern "C" {
sahilmgandhi 18:6a4db94011d3 24 #endif
sahilmgandhi 18:6a4db94011d3 25
sahilmgandhi 18:6a4db94011d3 26 #define STDIO_UART_TX UART0_TX
sahilmgandhi 18:6a4db94011d3 27 #define STDIO_UART_RX UART0_RX
sahilmgandhi 18:6a4db94011d3 28
sahilmgandhi 18:6a4db94011d3 29 typedef enum {
sahilmgandhi 18:6a4db94011d3 30 SERIAL_CONFIG_UARTLP_RX_UART0_TX,
sahilmgandhi 18:6a4db94011d3 31 SERIAL_CONFIG_UART0_RX_UART0_TX,
sahilmgandhi 18:6a4db94011d3 32 SERIAL_CONFIG_UART1_RX_UART1_TX,
sahilmgandhi 18:6a4db94011d3 33 MAX_NUM_SERIAL_CONFIGS
sahilmgandhi 18:6a4db94011d3 34 } SerialConfig;
sahilmgandhi 18:6a4db94011d3 35
sahilmgandhi 18:6a4db94011d3 36 typedef enum {
sahilmgandhi 18:6a4db94011d3 37 PIN_FUNCTION_UNCLAIMED = 0,
sahilmgandhi 18:6a4db94011d3 38 PIN_FUNCTION_GPIO = 1,
sahilmgandhi 18:6a4db94011d3 39 PIN_FUNCTION_PWM0 = 2,
sahilmgandhi 18:6a4db94011d3 40 PIN_FUNCTION_PWM0B = 3,
sahilmgandhi 18:6a4db94011d3 41 PIN_FUNCTION_PWM1 = 4,
sahilmgandhi 18:6a4db94011d3 42 PIN_FUNCTION_PWM1B = 5,
sahilmgandhi 18:6a4db94011d3 43 PIN_FUNCTION_SSP0TXD = 6,
sahilmgandhi 18:6a4db94011d3 44 PIN_FUNCTION_SSP0RXD = 7,
sahilmgandhi 18:6a4db94011d3 45 PIN_FUNCTION_SSP0TRX = 8,
sahilmgandhi 18:6a4db94011d3 46 PIN_FUNCTION_SSP0CLK = 9,
sahilmgandhi 18:6a4db94011d3 47 PIN_FUNCTION_SSP0FSS = 10,
sahilmgandhi 18:6a4db94011d3 48 PIN_FUNCTION_SSP1CLK = 11,
sahilmgandhi 18:6a4db94011d3 49 PIN_FUNCTION_SSP1FSS = 12,
sahilmgandhi 18:6a4db94011d3 50 PIN_FUNCTION_SSP1TXD = 13,
sahilmgandhi 18:6a4db94011d3 51 PIN_FUNCTION_SSP1RXD = 14,
sahilmgandhi 18:6a4db94011d3 52 PIN_FUNCTION_SSP1TRX = 15,
sahilmgandhi 18:6a4db94011d3 53 PIN_FUNCTION_I2C0 = 16,
sahilmgandhi 18:6a4db94011d3 54 PIN_FUNCTION_I2C1 = 17,
sahilmgandhi 18:6a4db94011d3 55 PIN_FUNCTION_UART0_TXD = 18,
sahilmgandhi 18:6a4db94011d3 56 PIN_FUNCTION_UART0_TXIR = 19,
sahilmgandhi 18:6a4db94011d3 57 PIN_FUNCTION_UART0_O2 = 20,
sahilmgandhi 18:6a4db94011d3 58 PIN_FUNCTION_UART0_O1 = 21,
sahilmgandhi 18:6a4db94011d3 59 PIN_FUNCTION_UART0_RTS = 22,
sahilmgandhi 18:6a4db94011d3 60 PIN_FUNCTION_UART0_DTR = 23,
sahilmgandhi 18:6a4db94011d3 61 PIN_FUNCTION_UART0_RXD = 24,
sahilmgandhi 18:6a4db94011d3 62 PIN_FUNCTION_UART0_RXIR = 25,
sahilmgandhi 18:6a4db94011d3 63 PIN_FUNCTION_UART0_CTS = 26,
sahilmgandhi 18:6a4db94011d3 64 PIN_FUNCTION_UART0_DCD = 27,
sahilmgandhi 18:6a4db94011d3 65 PIN_FUNCTION_UART0_DSR = 28,
sahilmgandhi 18:6a4db94011d3 66 PIN_FUNCTION_UART0_RI = 29,
sahilmgandhi 18:6a4db94011d3 67 PIN_FUNCTION_UART1_TXD = 30,
sahilmgandhi 18:6a4db94011d3 68 PIN_FUNCTION_UART1_TXIR = 31,
sahilmgandhi 18:6a4db94011d3 69 PIN_FUNCTION_UART1_O2 = 32,
sahilmgandhi 18:6a4db94011d3 70 PIN_FUNCTION_UART1_O1 = 33,
sahilmgandhi 18:6a4db94011d3 71 PIN_FUNCTION_UART1_RTS = 34,
sahilmgandhi 18:6a4db94011d3 72 PIN_FUNCTION_UART1_DTR = 35,
sahilmgandhi 18:6a4db94011d3 73 PIN_FUNCTION_UART1_RXD = 36,
sahilmgandhi 18:6a4db94011d3 74 PIN_FUNCTION_UART1_RXIR = 37,
sahilmgandhi 18:6a4db94011d3 75 PIN_FUNCTION_UART1_CTS = 38,
sahilmgandhi 18:6a4db94011d3 76 PIN_FUNCTION_UART1_DCD = 39,
sahilmgandhi 18:6a4db94011d3 77 PIN_FUNCTION_UART1_DSR = 40,
sahilmgandhi 18:6a4db94011d3 78 PIN_FUNCTION_UART1_RI = 41,
sahilmgandhi 18:6a4db94011d3 79 PIN_FUNCTION_LP_UART = 42,
sahilmgandhi 18:6a4db94011d3 80 PIN_FUNCTION_MAX_NUMBER
sahilmgandhi 18:6a4db94011d3 81 } PinFunction;
sahilmgandhi 18:6a4db94011d3 82
sahilmgandhi 18:6a4db94011d3 83 #ifdef __cplusplus
sahilmgandhi 18:6a4db94011d3 84 }
sahilmgandhi 18:6a4db94011d3 85 #endif
sahilmgandhi 18:6a4db94011d3 86
sahilmgandhi 18:6a4db94011d3 87 #endif