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 /** \addtogroup platform */
sahilmgandhi 18:6a4db94011d3 2 /** @{*/
sahilmgandhi 18:6a4db94011d3 3 /* mbed Microcontroller Library
sahilmgandhi 18:6a4db94011d3 4 * Copyright (c) 2006-2013 ARM Limited
sahilmgandhi 18:6a4db94011d3 5 *
sahilmgandhi 18:6a4db94011d3 6 * Licensed under the Apache License, Version 2.0 (the "License");
sahilmgandhi 18:6a4db94011d3 7 * you may not use this file except in compliance with the License.
sahilmgandhi 18:6a4db94011d3 8 * You may obtain a copy of the License at
sahilmgandhi 18:6a4db94011d3 9 *
sahilmgandhi 18:6a4db94011d3 10 * http://www.apache.org/licenses/LICENSE-2.0
sahilmgandhi 18:6a4db94011d3 11 *
sahilmgandhi 18:6a4db94011d3 12 * Unless required by applicable law or agreed to in writing, software
sahilmgandhi 18:6a4db94011d3 13 * distributed under the License is distributed on an "AS IS" BASIS,
sahilmgandhi 18:6a4db94011d3 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
sahilmgandhi 18:6a4db94011d3 15 * See the License for the specific language governing permissions and
sahilmgandhi 18:6a4db94011d3 16 * limitations under the License.
sahilmgandhi 18:6a4db94011d3 17 */
sahilmgandhi 18:6a4db94011d3 18 #ifndef MBED_PREPROCESSOR_H
sahilmgandhi 18:6a4db94011d3 19 #define MBED_PREPROCESSOR_H
sahilmgandhi 18:6a4db94011d3 20
sahilmgandhi 18:6a4db94011d3 21
sahilmgandhi 18:6a4db94011d3 22 /** MBED_CONCAT
sahilmgandhi 18:6a4db94011d3 23 * Concatenate tokens together
sahilmgandhi 18:6a4db94011d3 24 *
sahilmgandhi 18:6a4db94011d3 25 * @note
sahilmgandhi 18:6a4db94011d3 26 * Expands tokens before concatenation
sahilmgandhi 18:6a4db94011d3 27 *
sahilmgandhi 18:6a4db94011d3 28 * @code
sahilmgandhi 18:6a4db94011d3 29 * // Creates a unique label based on the line number
sahilmgandhi 18:6a4db94011d3 30 * int MBED_CONCAT(UNIQUE_LABEL_, __LINE__) = 1;
sahilmgandhi 18:6a4db94011d3 31 * @endcode
sahilmgandhi 18:6a4db94011d3 32 */
sahilmgandhi 18:6a4db94011d3 33 #define MBED_CONCAT(a, b) MBED_CONCAT_(a, b)
sahilmgandhi 18:6a4db94011d3 34 #define MBED_CONCAT_(a, b) a##b
sahilmgandhi 18:6a4db94011d3 35
sahilmgandhi 18:6a4db94011d3 36 /** MBED_STRINGIFY
sahilmgandhi 18:6a4db94011d3 37 * Converts tokens into strings
sahilmgandhi 18:6a4db94011d3 38 *
sahilmgandhi 18:6a4db94011d3 39 * @note
sahilmgandhi 18:6a4db94011d3 40 * Expands tokens before stringification
sahilmgandhi 18:6a4db94011d3 41 *
sahilmgandhi 18:6a4db94011d3 42 * @code
sahilmgandhi 18:6a4db94011d3 43 * // Creates a string based on the parameters
sahilmgandhi 18:6a4db94011d3 44 * const char *c = MBED_STRINGIFY(This is a ridiculous way to create a string)
sahilmgandhi 18:6a4db94011d3 45 * @endcode
sahilmgandhi 18:6a4db94011d3 46 */
sahilmgandhi 18:6a4db94011d3 47 #define MBED_STRINGIFY(a) MBED_STRINGIFY_(a)
sahilmgandhi 18:6a4db94011d3 48 #define MBED_STRINGIFY_(a) #a
sahilmgandhi 18:6a4db94011d3 49
sahilmgandhi 18:6a4db94011d3 50
sahilmgandhi 18:6a4db94011d3 51 #endif
sahilmgandhi 18:6a4db94011d3 52
sahilmgandhi 18:6a4db94011d3 53 /** @}*/