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