BA / SerialCom

Fork of OmniWheels by Gustav Atmel

Committer:
gustavatmel
Date:
Tue May 01 15:55:34 2018 +0000
Revision:
2:798925c9e4a8
Parent:
1:9c5af431a1f1
bluetooth

Who changed what in which revision?

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