...

Dependents:   2doejemplo Labo_TRSE_Drone

Fork of mbed by mbed official

Committer:
jalp89
Date:
Fri Nov 29 09:39:46 2013 +0000
Revision:
71:7ec3cb6bbcc4
Parent:
70:673126e12c73
...

Who changed what in which revision?

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