This is a repository for all my programs or modified programs.

Committer:
mturner5
Date:
Sun Sep 11 23:48:09 2016 +0000
Revision:
0:72480818e4a9
Made delays for the LEDS and button presses

Who changed what in which revision?

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