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 /*******************************************************************************
sahilmgandhi 18:6a4db94011d3 2 * DISCLAIMER
sahilmgandhi 18:6a4db94011d3 3 * This software is supplied by Renesas Electronics Corporation and is only
sahilmgandhi 18:6a4db94011d3 4 * intended for use with Renesas products. No other uses are authorized. This
sahilmgandhi 18:6a4db94011d3 5 * software is owned by Renesas Electronics Corporation and is protected under
sahilmgandhi 18:6a4db94011d3 6 * all applicable laws, including copyright laws.
sahilmgandhi 18:6a4db94011d3 7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
sahilmgandhi 18:6a4db94011d3 8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
sahilmgandhi 18:6a4db94011d3 9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
sahilmgandhi 18:6a4db94011d3 10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
sahilmgandhi 18:6a4db94011d3 11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
sahilmgandhi 18:6a4db94011d3 12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
sahilmgandhi 18:6a4db94011d3 13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
sahilmgandhi 18:6a4db94011d3 14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
sahilmgandhi 18:6a4db94011d3 15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
sahilmgandhi 18:6a4db94011d3 16 * Renesas reserves the right, without notice, to make changes to this software
sahilmgandhi 18:6a4db94011d3 17 * and to discontinue the availability of this software. By using this software,
sahilmgandhi 18:6a4db94011d3 18 * you agree to the additional terms and conditions found by accessing the
sahilmgandhi 18:6a4db94011d3 19 * following link:
sahilmgandhi 18:6a4db94011d3 20 * http://www.renesas.com/disclaimer
sahilmgandhi 18:6a4db94011d3 21 * Copyright (C) 2012 - 2013 Renesas Electronics Corporation. All rights reserved.
sahilmgandhi 18:6a4db94011d3 22 *******************************************************************************/
sahilmgandhi 18:6a4db94011d3 23 /*******************************************************************************
sahilmgandhi 18:6a4db94011d3 24 * File Name : r_typedefs.h
sahilmgandhi 18:6a4db94011d3 25 * $Rev: 788 $
sahilmgandhi 18:6a4db94011d3 26 * $Date:: 2014-04-07 18:57:13 +0900#$
sahilmgandhi 18:6a4db94011d3 27 * Description : basic type definition
sahilmgandhi 18:6a4db94011d3 28 ******************************************************************************/
sahilmgandhi 18:6a4db94011d3 29 #ifndef R_TYPEDEFS_H
sahilmgandhi 18:6a4db94011d3 30 #define R_TYPEDEFS_H
sahilmgandhi 18:6a4db94011d3 31
sahilmgandhi 18:6a4db94011d3 32 /******************************************************************************
sahilmgandhi 18:6a4db94011d3 33 Includes <System Includes> , "Project Includes"
sahilmgandhi 18:6a4db94011d3 34 ******************************************************************************/
sahilmgandhi 18:6a4db94011d3 35 #include <stddef.h>
sahilmgandhi 18:6a4db94011d3 36 #include <stdbool.h>
sahilmgandhi 18:6a4db94011d3 37 #include <stdint.h>
sahilmgandhi 18:6a4db94011d3 38
sahilmgandhi 18:6a4db94011d3 39 #if defined(__ARM_NEON__)
sahilmgandhi 18:6a4db94011d3 40
sahilmgandhi 18:6a4db94011d3 41 #include <arm_neon.h>
sahilmgandhi 18:6a4db94011d3 42
sahilmgandhi 18:6a4db94011d3 43 #else /* __ARM_NEON__ */
sahilmgandhi 18:6a4db94011d3 44
sahilmgandhi 18:6a4db94011d3 45 typedef float float32_t;
sahilmgandhi 18:6a4db94011d3 46 typedef double float64_t;
sahilmgandhi 18:6a4db94011d3 47
sahilmgandhi 18:6a4db94011d3 48 #endif /* __ARM_NEON__ */
sahilmgandhi 18:6a4db94011d3 49
sahilmgandhi 18:6a4db94011d3 50 /******************************************************************************
sahilmgandhi 18:6a4db94011d3 51 Typedef definitions
sahilmgandhi 18:6a4db94011d3 52 ******************************************************************************/
sahilmgandhi 18:6a4db94011d3 53 typedef char char_t;
sahilmgandhi 18:6a4db94011d3 54 typedef int bool_t;
sahilmgandhi 18:6a4db94011d3 55 typedef int int_t;
sahilmgandhi 18:6a4db94011d3 56 typedef long double float128_t;
sahilmgandhi 18:6a4db94011d3 57 typedef signed long long_t;
sahilmgandhi 18:6a4db94011d3 58 typedef unsigned long ulong_t;
sahilmgandhi 18:6a4db94011d3 59
sahilmgandhi 18:6a4db94011d3 60 #endif /* R_TYPEDEFS_H */
sahilmgandhi 18:6a4db94011d3 61