Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed by
TARGET_TEENSY3_1/system_MK20DX256.h@93:e188a91d3eaa, 2015-02-03 (annotated)
- Committer:
- Kojto
- Date:
- Tue Feb 03 15:31:20 2015 +0000
- Revision:
- 93:e188a91d3eaa
Release 93 of the mbed library
Main changes:
- Renesas RZ_A1H bugfixes - i2c, ticker
- new targets - Nucleo F303RE, Nucleo F070RB, BLE SMURFS,
Dragonfly 411RE,
- BusXXX - is connected method, plus operators addition
- LPC8xx - I2c fixes
- timestamp_t reverted to uint32_t
- RTX - fixes regarding stack (alignment, magic word)
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Kojto | 93:e188a91d3eaa | 1 | /* |
| Kojto | 93:e188a91d3eaa | 2 | ** ################################################################### |
| Kojto | 93:e188a91d3eaa | 3 | ** Compilers: ARM Compiler |
| Kojto | 93:e188a91d3eaa | 4 | ** Freescale C/C++ for Embedded ARM |
| Kojto | 93:e188a91d3eaa | 5 | ** GNU C Compiler |
| Kojto | 93:e188a91d3eaa | 6 | ** IAR ANSI C/C++ Compiler for ARM |
| Kojto | 93:e188a91d3eaa | 7 | ** |
| Kojto | 93:e188a91d3eaa | 8 | ** |
| Kojto | 93:e188a91d3eaa | 9 | ** |
| Kojto | 93:e188a91d3eaa | 10 | ** Version: rev. 2.0, 2012-03-19 |
| Kojto | 93:e188a91d3eaa | 11 | ** |
| Kojto | 93:e188a91d3eaa | 12 | ** Abstract: |
| Kojto | 93:e188a91d3eaa | 13 | ** Provides a system configuration function and a global variable that |
| Kojto | 93:e188a91d3eaa | 14 | ** contains the system frequency. It configures the device and initializes |
| Kojto | 93:e188a91d3eaa | 15 | ** the oscillator (PLL) that is part of the microcontroller device. |
| Kojto | 93:e188a91d3eaa | 16 | ** |
| Kojto | 93:e188a91d3eaa | 17 | ** Copyright: 2015 Freescale Semiconductor, Inc. All Rights Reserved. |
| Kojto | 93:e188a91d3eaa | 18 | ** |
| Kojto | 93:e188a91d3eaa | 19 | ** http: www.freescale.com |
| Kojto | 93:e188a91d3eaa | 20 | ** mail: support@freescale.com |
| Kojto | 93:e188a91d3eaa | 21 | ** |
| Kojto | 93:e188a91d3eaa | 22 | ** Revisions: |
| Kojto | 93:e188a91d3eaa | 23 | ** - rev. 1.0 (2011-12-15) |
| Kojto | 93:e188a91d3eaa | 24 | ** Initial version |
| Kojto | 93:e188a91d3eaa | 25 | ** - rev. 2.0 (2012-03-19) |
| Kojto | 93:e188a91d3eaa | 26 | ** PDB Peripheral register structure updated. |
| Kojto | 93:e188a91d3eaa | 27 | ** DMA Registers and bits for unsupported DMA channels removed. |
| Kojto | 93:e188a91d3eaa | 28 | ** |
| Kojto | 93:e188a91d3eaa | 29 | ** ################################################################### |
| Kojto | 93:e188a91d3eaa | 30 | */ |
| Kojto | 93:e188a91d3eaa | 31 | |
| Kojto | 93:e188a91d3eaa | 32 | /** |
| Kojto | 93:e188a91d3eaa | 33 | * @file MK20DX256 |
| Kojto | 93:e188a91d3eaa | 34 | * @version 2.0 |
| Kojto | 93:e188a91d3eaa | 35 | * @date 2012-03-19 |
| Kojto | 93:e188a91d3eaa | 36 | * @brief Device specific configuration file for MK20DX256 (header file) |
| Kojto | 93:e188a91d3eaa | 37 | * |
| Kojto | 93:e188a91d3eaa | 38 | * Provides a system configuration function and a global variable that contains |
| Kojto | 93:e188a91d3eaa | 39 | * the system frequency. It configures the device and initializes the oscillator |
| Kojto | 93:e188a91d3eaa | 40 | * (PLL) that is part of the microcontroller device. |
| Kojto | 93:e188a91d3eaa | 41 | */ |
| Kojto | 93:e188a91d3eaa | 42 | |
| Kojto | 93:e188a91d3eaa | 43 | #ifndef SYSTEM_MK20DX256_H_ |
| Kojto | 93:e188a91d3eaa | 44 | #define SYSTEM_MK20DX256_H_ /**< Symbol preventing repeated inclusion */ |
| Kojto | 93:e188a91d3eaa | 45 | |
| Kojto | 93:e188a91d3eaa | 46 | #ifdef __cplusplus |
| Kojto | 93:e188a91d3eaa | 47 | extern "C" { |
| Kojto | 93:e188a91d3eaa | 48 | #endif |
| Kojto | 93:e188a91d3eaa | 49 | |
| Kojto | 93:e188a91d3eaa | 50 | #include <stdint.h> |
| Kojto | 93:e188a91d3eaa | 51 | |
| Kojto | 93:e188a91d3eaa | 52 | /** |
| Kojto | 93:e188a91d3eaa | 53 | * @brief System clock frequency (core clock) |
| Kojto | 93:e188a91d3eaa | 54 | * |
| Kojto | 93:e188a91d3eaa | 55 | * The system clock frequency supplied to the SysTick timer and the processor |
| Kojto | 93:e188a91d3eaa | 56 | * core clock. This variable can be used by the user application to setup the |
| Kojto | 93:e188a91d3eaa | 57 | * SysTick timer or configure other parameters. It may also be used by debugger to |
| Kojto | 93:e188a91d3eaa | 58 | * query the frequency of the debug timer or configure the trace clock speed |
| Kojto | 93:e188a91d3eaa | 59 | * SystemCoreClock is initialized with a correct predefined value. |
| Kojto | 93:e188a91d3eaa | 60 | */ |
| Kojto | 93:e188a91d3eaa | 61 | extern uint32_t SystemCoreClock; |
| Kojto | 93:e188a91d3eaa | 62 | |
| Kojto | 93:e188a91d3eaa | 63 | /** |
| Kojto | 93:e188a91d3eaa | 64 | * @brief Setup the microcontroller system. |
| Kojto | 93:e188a91d3eaa | 65 | * |
| Kojto | 93:e188a91d3eaa | 66 | * Typically this function configures the oscillator (PLL) that is part of the |
| Kojto | 93:e188a91d3eaa | 67 | * microcontroller device. For systems with variable clock speed it also updates |
| Kojto | 93:e188a91d3eaa | 68 | * the variable SystemCoreClock. SystemInit is called from startup_device file. |
| Kojto | 93:e188a91d3eaa | 69 | */ |
| Kojto | 93:e188a91d3eaa | 70 | void SystemInit (void); |
| Kojto | 93:e188a91d3eaa | 71 | |
| Kojto | 93:e188a91d3eaa | 72 | /** |
| Kojto | 93:e188a91d3eaa | 73 | * @brief Updates the SystemCoreClock variable. |
| Kojto | 93:e188a91d3eaa | 74 | * |
| Kojto | 93:e188a91d3eaa | 75 | * It must be called whenever the core clock is changed during program |
| Kojto | 93:e188a91d3eaa | 76 | * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates |
| Kojto | 93:e188a91d3eaa | 77 | * the current core clock. |
| Kojto | 93:e188a91d3eaa | 78 | */ |
| Kojto | 93:e188a91d3eaa | 79 | void SystemCoreClockUpdate (void); |
| Kojto | 93:e188a91d3eaa | 80 | |
| Kojto | 93:e188a91d3eaa | 81 | #ifdef __cplusplus |
| Kojto | 93:e188a91d3eaa | 82 | } |
| Kojto | 93:e188a91d3eaa | 83 | #endif |
| Kojto | 93:e188a91d3eaa | 84 | |
| Kojto | 93:e188a91d3eaa | 85 | #endif /* #if !defined(SYSTEM_MK20DX256_H_) */ |
