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.

Committer:
bogdanm
Date:
Wed Aug 07 16:43:59 2013 +0300
Revision:
15:4892fe388435
Added LPC4088 target and interrupt chaining code

Who changed what in which revision?

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