]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/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
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
9 * @author NXP MCU SW Application Team
11 * Copyright(C) 2011, NXP Semiconductor
12 * All rights reserved.
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
31 **********************************************************************/
33 #ifndef __SYSTEM_LPC407x_8x_177x_8x_H
34 #define __SYSTEM_LPC407x_8x_177x_8x_H
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 */
49 * Initialize the system
54 * @brief Setup the microcontroller system.
55 * Initialize the System and update the SystemCoreClock variable.
57 extern void SystemInit (void);
60 * Update SystemCoreClock variable
65 * @brief Updates the SystemCoreClock with current core Clock
66 * retrieved from cpu registers.
68 extern void SystemCoreClockUpdate (void);
70 /*----------------------------------------------------------------------------
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 */
82 //-------- <<< end of configuration section >>> ------------------------------
89 #endif /* __SYSTEM_LPC407x_8x_177x_8x_H */