mbed library with additional peripherals for ST F401 board

Fork of mbed-src by mbed official

This mbed LIB has additional peripherals for ST F401 board

  • UART2 : PA_3 rx, PA_2 tx
  • UART3 : PC_7 rx, PC_6 tx
  • I2C2 : PB_3 SDA, PB_10 SCL
  • I2C3 : PB_4 SDA, PA_8 SCL
Committer:
mbed_official
Date:
Thu Dec 26 13:00:06 2013 +0000
Revision:
68:41613245dfd7
Synchronized with git revision fba199a9c4445231b0f38e1e113c118182635546

Full URL: https://github.com/mbedmicro/mbed/commit/fba199a9c4445231b0f38e1e113c118182635546/

target K20D5M

Who changed what in which revision?

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