mbed(SerialHalfDuplex入り)

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Mon Dec 09 18:43:03 2013 +0200
Revision:
73:1efda918f0ba
Release 73 of the mbed library

Main changes:

- added support for KL46Z and NUCLEO_F103RB
- STM32 USB device support
- various bug fixes

Who changed what in which revision?

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