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 /*
sahilmgandhi 18:6a4db94011d3 2 ** ###################################################################
sahilmgandhi 18:6a4db94011d3 3 ** Compilers: ARM Compiler
sahilmgandhi 18:6a4db94011d3 4 ** Freescale C/C++ for Embedded ARM
sahilmgandhi 18:6a4db94011d3 5 ** GNU C Compiler
sahilmgandhi 18:6a4db94011d3 6 ** IAR ANSI C/C++ Compiler for ARM
sahilmgandhi 18:6a4db94011d3 7 **
sahilmgandhi 18:6a4db94011d3 8 **
sahilmgandhi 18:6a4db94011d3 9 **
sahilmgandhi 18:6a4db94011d3 10 ** Version: rev. 2.0, 2012-03-19
sahilmgandhi 18:6a4db94011d3 11 **
sahilmgandhi 18:6a4db94011d3 12 ** Abstract:
sahilmgandhi 18:6a4db94011d3 13 ** Provides a system configuration function and a global variable that
sahilmgandhi 18:6a4db94011d3 14 ** contains the system frequency. It configures the device and initializes
sahilmgandhi 18:6a4db94011d3 15 ** the oscillator (PLL) that is part of the microcontroller device.
sahilmgandhi 18:6a4db94011d3 16 **
sahilmgandhi 18:6a4db94011d3 17 ** Copyright: 2015 Freescale Semiconductor, Inc. All Rights Reserved.
sahilmgandhi 18:6a4db94011d3 18 **
sahilmgandhi 18:6a4db94011d3 19 ** http: www.freescale.com
sahilmgandhi 18:6a4db94011d3 20 ** mail: support@freescale.com
sahilmgandhi 18:6a4db94011d3 21 **
sahilmgandhi 18:6a4db94011d3 22 ** Revisions:
sahilmgandhi 18:6a4db94011d3 23 ** - rev. 1.0 (2011-12-15)
sahilmgandhi 18:6a4db94011d3 24 ** Initial version
sahilmgandhi 18:6a4db94011d3 25 ** - rev. 2.0 (2012-03-19)
sahilmgandhi 18:6a4db94011d3 26 ** PDB Peripheral register structure updated.
sahilmgandhi 18:6a4db94011d3 27 ** DMA Registers and bits for unsupported DMA channels removed.
sahilmgandhi 18:6a4db94011d3 28 **
sahilmgandhi 18:6a4db94011d3 29 ** ###################################################################
sahilmgandhi 18:6a4db94011d3 30 */
sahilmgandhi 18:6a4db94011d3 31
sahilmgandhi 18:6a4db94011d3 32 /**
sahilmgandhi 18:6a4db94011d3 33 * @file MK20DX256
sahilmgandhi 18:6a4db94011d3 34 * @version 2.0
sahilmgandhi 18:6a4db94011d3 35 * @date 2012-03-19
sahilmgandhi 18:6a4db94011d3 36 * @brief Device specific configuration file for MK20DX256 (header file)
sahilmgandhi 18:6a4db94011d3 37 *
sahilmgandhi 18:6a4db94011d3 38 * Provides a system configuration function and a global variable that contains
sahilmgandhi 18:6a4db94011d3 39 * the system frequency. It configures the device and initializes the oscillator
sahilmgandhi 18:6a4db94011d3 40 * (PLL) that is part of the microcontroller device.
sahilmgandhi 18:6a4db94011d3 41 */
sahilmgandhi 18:6a4db94011d3 42
sahilmgandhi 18:6a4db94011d3 43 #ifndef SYSTEM_MK20DX256_H_
sahilmgandhi 18:6a4db94011d3 44 #define SYSTEM_MK20DX256_H_ /**< Symbol preventing repeated inclusion */
sahilmgandhi 18:6a4db94011d3 45
sahilmgandhi 18:6a4db94011d3 46 #ifdef __cplusplus
sahilmgandhi 18:6a4db94011d3 47 extern "C" {
sahilmgandhi 18:6a4db94011d3 48 #endif
sahilmgandhi 18:6a4db94011d3 49
sahilmgandhi 18:6a4db94011d3 50 #include <stdint.h>
sahilmgandhi 18:6a4db94011d3 51
sahilmgandhi 18:6a4db94011d3 52 /**
sahilmgandhi 18:6a4db94011d3 53 * @brief System clock frequency (core clock)
sahilmgandhi 18:6a4db94011d3 54 *
sahilmgandhi 18:6a4db94011d3 55 * The system clock frequency supplied to the SysTick timer and the processor
sahilmgandhi 18:6a4db94011d3 56 * core clock. This variable can be used by the user application to setup the
sahilmgandhi 18:6a4db94011d3 57 * SysTick timer or configure other parameters. It may also be used by debugger to
sahilmgandhi 18:6a4db94011d3 58 * query the frequency of the debug timer or configure the trace clock speed
sahilmgandhi 18:6a4db94011d3 59 * SystemCoreClock is initialized with a correct predefined value.
sahilmgandhi 18:6a4db94011d3 60 */
sahilmgandhi 18:6a4db94011d3 61 extern uint32_t SystemCoreClock;
sahilmgandhi 18:6a4db94011d3 62
sahilmgandhi 18:6a4db94011d3 63 /**
sahilmgandhi 18:6a4db94011d3 64 * @brief Setup the microcontroller system.
sahilmgandhi 18:6a4db94011d3 65 *
sahilmgandhi 18:6a4db94011d3 66 * Typically this function configures the oscillator (PLL) that is part of the
sahilmgandhi 18:6a4db94011d3 67 * microcontroller device. For systems with variable clock speed it also updates
sahilmgandhi 18:6a4db94011d3 68 * the variable SystemCoreClock. SystemInit is called from startup_device file.
sahilmgandhi 18:6a4db94011d3 69 */
sahilmgandhi 18:6a4db94011d3 70 void SystemInit (void);
sahilmgandhi 18:6a4db94011d3 71
sahilmgandhi 18:6a4db94011d3 72 /**
sahilmgandhi 18:6a4db94011d3 73 * @brief Updates the SystemCoreClock variable.
sahilmgandhi 18:6a4db94011d3 74 *
sahilmgandhi 18:6a4db94011d3 75 * It must be called whenever the core clock is changed during program
sahilmgandhi 18:6a4db94011d3 76 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
sahilmgandhi 18:6a4db94011d3 77 * the current core clock.
sahilmgandhi 18:6a4db94011d3 78 */
sahilmgandhi 18:6a4db94011d3 79 void SystemCoreClockUpdate (void);
sahilmgandhi 18:6a4db94011d3 80
sahilmgandhi 18:6a4db94011d3 81 #ifdef __cplusplus
sahilmgandhi 18:6a4db94011d3 82 }
sahilmgandhi 18:6a4db94011d3 83 #endif
sahilmgandhi 18:6a4db94011d3 84
sahilmgandhi 18:6a4db94011d3 85 #endif /* #if !defined(SYSTEM_MK20DX256_H_) */