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