mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
vendor/NXP/LPC4088/cmsis/system_LPC407x_8x_177x_8x.h@10:3bc89ef62ce7, 2013-06-14 (annotated)
- Committer:
- emilmont
- Date:
- Fri Jun 14 17:49:17 2013 +0100
- Revision:
- 10:3bc89ef62ce7
Unify mbed library sources
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 10:3bc89ef62ce7 | 1 | /********************************************************************** |
emilmont | 10:3bc89ef62ce7 | 2 | * $Id$ system_LPC407x_8x_177x_8x.h 2011-06-02 |
emilmont | 10:3bc89ef62ce7 | 3 | *//** |
emilmont | 10:3bc89ef62ce7 | 4 | * @file system_LPC407x_8x_177x_8x.h |
emilmont | 10:3bc89ef62ce7 | 5 | * @brief CMSIS Cortex-M3 Device Peripheral Access Layer Source File |
emilmont | 10:3bc89ef62ce7 | 6 | * for the NXP LPC Device Series |
emilmont | 10:3bc89ef62ce7 | 7 | * @version 1.0 |
emilmont | 10:3bc89ef62ce7 | 8 | * @date 02. June. 2011 |
emilmont | 10:3bc89ef62ce7 | 9 | * @author NXP MCU SW Application Team |
emilmont | 10:3bc89ef62ce7 | 10 | * |
emilmont | 10:3bc89ef62ce7 | 11 | * Copyright(C) 2011, NXP Semiconductor |
emilmont | 10:3bc89ef62ce7 | 12 | * All rights reserved. |
emilmont | 10:3bc89ef62ce7 | 13 | * |
emilmont | 10:3bc89ef62ce7 | 14 | *********************************************************************** |
emilmont | 10:3bc89ef62ce7 | 15 | * Software that is described herein is for illustrative purposes only |
emilmont | 10:3bc89ef62ce7 | 16 | * which provides customers with programming information regarding the |
emilmont | 10:3bc89ef62ce7 | 17 | * products. This software is supplied "AS IS" without any warranties. |
emilmont | 10:3bc89ef62ce7 | 18 | * NXP Semiconductors assumes no responsibility or liability for the |
emilmont | 10:3bc89ef62ce7 | 19 | * use of the software, conveys no license or title under any patent, |
emilmont | 10:3bc89ef62ce7 | 20 | * copyright, or mask work right to the product. NXP Semiconductors |
emilmont | 10:3bc89ef62ce7 | 21 | * reserves the right to make changes in the software without |
emilmont | 10:3bc89ef62ce7 | 22 | * notification. NXP Semiconductors also make no representation or |
emilmont | 10:3bc89ef62ce7 | 23 | * warranty that such application will be suitable for the specified |
emilmont | 10:3bc89ef62ce7 | 24 | * use without further testing or modification. |
emilmont | 10:3bc89ef62ce7 | 25 | * Permission to use, copy, modify, and distribute this software and its |
emilmont | 10:3bc89ef62ce7 | 26 | * documentation is hereby granted, under NXP Semiconductors' |
emilmont | 10:3bc89ef62ce7 | 27 | * relevant copyright in the software, without fee, provided that it |
emilmont | 10:3bc89ef62ce7 | 28 | * is used in conjunction with NXP Semiconductors microcontrollers. This |
emilmont | 10:3bc89ef62ce7 | 29 | * copyright, permission, and disclaimer notice must appear in all copies of |
emilmont | 10:3bc89ef62ce7 | 30 | * this code. |
emilmont | 10:3bc89ef62ce7 | 31 | **********************************************************************/ |
emilmont | 10:3bc89ef62ce7 | 32 | |
emilmont | 10:3bc89ef62ce7 | 33 | #ifndef __SYSTEM_LPC407x_8x_177x_8x_H |
emilmont | 10:3bc89ef62ce7 | 34 | #define __SYSTEM_LPC407x_8x_177x_8x_H |
emilmont | 10:3bc89ef62ce7 | 35 | |
emilmont | 10:3bc89ef62ce7 | 36 | #ifdef __cplusplus |
emilmont | 10:3bc89ef62ce7 | 37 | extern "C" { |
emilmont | 10:3bc89ef62ce7 | 38 | #endif |
emilmont | 10:3bc89ef62ce7 | 39 | |
emilmont | 10:3bc89ef62ce7 | 40 | #include <stdint.h> |
emilmont | 10:3bc89ef62ce7 | 41 | |
emilmont | 10:3bc89ef62ce7 | 42 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
emilmont | 10:3bc89ef62ce7 | 43 | extern uint32_t PeripheralClock; /*!< Peripheral Clock Frequency (Pclk) */ |
emilmont | 10:3bc89ef62ce7 | 44 | extern uint32_t EMCClock; /*!< EMC Clock */ |
emilmont | 10:3bc89ef62ce7 | 45 | extern uint32_t USBClock; /*!< USB Frequency */ |
emilmont | 10:3bc89ef62ce7 | 46 | |
emilmont | 10:3bc89ef62ce7 | 47 | |
emilmont | 10:3bc89ef62ce7 | 48 | /** |
emilmont | 10:3bc89ef62ce7 | 49 | * Initialize the system |
emilmont | 10:3bc89ef62ce7 | 50 | * |
emilmont | 10:3bc89ef62ce7 | 51 | * @param none |
emilmont | 10:3bc89ef62ce7 | 52 | * @return none |
emilmont | 10:3bc89ef62ce7 | 53 | * |
emilmont | 10:3bc89ef62ce7 | 54 | * @brief Setup the microcontroller system. |
emilmont | 10:3bc89ef62ce7 | 55 | * Initialize the System and update the SystemCoreClock variable. |
emilmont | 10:3bc89ef62ce7 | 56 | */ |
emilmont | 10:3bc89ef62ce7 | 57 | extern void SystemInit (void); |
emilmont | 10:3bc89ef62ce7 | 58 | |
emilmont | 10:3bc89ef62ce7 | 59 | /** |
emilmont | 10:3bc89ef62ce7 | 60 | * Update SystemCoreClock variable |
emilmont | 10:3bc89ef62ce7 | 61 | * |
emilmont | 10:3bc89ef62ce7 | 62 | * @param none |
emilmont | 10:3bc89ef62ce7 | 63 | * @return none |
emilmont | 10:3bc89ef62ce7 | 64 | * |
emilmont | 10:3bc89ef62ce7 | 65 | * @brief Updates the SystemCoreClock with current core Clock |
emilmont | 10:3bc89ef62ce7 | 66 | * retrieved from cpu registers. |
emilmont | 10:3bc89ef62ce7 | 67 | */ |
emilmont | 10:3bc89ef62ce7 | 68 | extern void SystemCoreClockUpdate (void); |
emilmont | 10:3bc89ef62ce7 | 69 | |
emilmont | 10:3bc89ef62ce7 | 70 | /*---------------------------------------------------------------------------- |
emilmont | 10:3bc89ef62ce7 | 71 | Define clocks |
emilmont | 10:3bc89ef62ce7 | 72 | *----------------------------------------------------------------------------*/ |
emilmont | 10:3bc89ef62ce7 | 73 | #define XTAL (12000000UL) /* Oscillator frequency */ |
emilmont | 10:3bc89ef62ce7 | 74 | #define OSC_CLK ( XTAL) /* Main oscillator frequency */ |
emilmont | 10:3bc89ef62ce7 | 75 | #define RTC_CLK ( 32768UL) /* RTC oscillator frequency */ |
emilmont | 10:3bc89ef62ce7 | 76 | #define IRC_OSC (12000000UL) /* Internal RC oscillator frequency */ |
emilmont | 10:3bc89ef62ce7 | 77 | #define WDT_OSC ( 500000UL) /* Internal WDT oscillator frequency */ |
emilmont | 10:3bc89ef62ce7 | 78 | |
emilmont | 10:3bc89ef62ce7 | 79 | |
emilmont | 10:3bc89ef62ce7 | 80 | |
emilmont | 10:3bc89ef62ce7 | 81 | /* |
emilmont | 10:3bc89ef62ce7 | 82 | //-------- <<< end of configuration section >>> ------------------------------ |
emilmont | 10:3bc89ef62ce7 | 83 | */ |
emilmont | 10:3bc89ef62ce7 | 84 | |
emilmont | 10:3bc89ef62ce7 | 85 | #ifdef __cplusplus |
emilmont | 10:3bc89ef62ce7 | 86 | } |
emilmont | 10:3bc89ef62ce7 | 87 | #endif |
emilmont | 10:3bc89ef62ce7 | 88 | |
emilmont | 10:3bc89ef62ce7 | 89 | #endif /* __SYSTEM_LPC407x_8x_177x_8x_H */ |