fix for mbed lib issue 3 (i2c problem) see also https://mbed.org/users/mbed_official/code/mbed/issues/3 affected implementations: LPC812, LPC11U24, LPC1768, LPC2368, LPC4088
Fork of mbed-src by
system_LPC407x_8x_177x_8x.h
00001 /********************************************************************** 00002 * $Id$ system_LPC407x_8x_177x_8x.h 2011-06-02 00003 *//** 00004 * @file system_LPC407x_8x_177x_8x.h 00005 * @brief CMSIS Cortex-M3 Device Peripheral Access Layer Source File 00006 * for the NXP LPC Device Series 00007 * @version 1.0 00008 * @date 02. June. 2011 00009 * @author NXP MCU SW Application Team 00010 * 00011 * Copyright(C) 2011, NXP Semiconductor 00012 * All rights reserved. 00013 * 00014 *********************************************************************** 00015 * Software that is described herein is for illustrative purposes only 00016 * which provides customers with programming information regarding the 00017 * products. This software is supplied "AS IS" without any warranties. 00018 * NXP Semiconductors assumes no responsibility or liability for the 00019 * use of the software, conveys no license or title under any patent, 00020 * copyright, or mask work right to the product. NXP Semiconductors 00021 * reserves the right to make changes in the software without 00022 * notification. NXP Semiconductors also make no representation or 00023 * warranty that such application will be suitable for the specified 00024 * use without further testing or modification. 00025 * Permission to use, copy, modify, and distribute this software and its 00026 * documentation is hereby granted, under NXP Semiconductors' 00027 * relevant copyright in the software, without fee, provided that it 00028 * is used in conjunction with NXP Semiconductors microcontrollers. This 00029 * copyright, permission, and disclaimer notice must appear in all copies of 00030 * this code. 00031 **********************************************************************/ 00032 00033 #ifndef __SYSTEM_LPC407x_8x_177x_8x_H 00034 #define __SYSTEM_LPC407x_8x_177x_8x_H 00035 00036 #ifdef __cplusplus 00037 extern "C" { 00038 #endif 00039 00040 #include <stdint.h> 00041 00042 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 00043 extern uint32_t PeripheralClock ; /*!< Peripheral Clock Frequency (Pclk) */ 00044 extern uint32_t EMCClock ; /*!< EMC Clock */ 00045 extern uint32_t USBClock ; /*!< USB Frequency */ 00046 00047 00048 /** 00049 * Initialize the system 00050 * 00051 * @param none 00052 * @return none 00053 * 00054 * @brief Setup the microcontroller system. 00055 * Initialize the System and update the SystemCoreClock variable. 00056 */ 00057 extern void SystemInit (void); 00058 00059 /** 00060 * Update SystemCoreClock variable 00061 * 00062 * @param none 00063 * @return none 00064 * 00065 * @brief Updates the SystemCoreClock with current core Clock 00066 * retrieved from cpu registers. 00067 */ 00068 extern void SystemCoreClockUpdate (void); 00069 00070 /*---------------------------------------------------------------------------- 00071 Define clocks 00072 *----------------------------------------------------------------------------*/ 00073 #define XTAL (12000000UL) /* Oscillator frequency */ 00074 #define OSC_CLK ( XTAL) /* Main oscillator frequency */ 00075 #define RTC_CLK ( 32768UL) /* RTC oscillator frequency */ 00076 #define IRC_OSC (12000000UL) /* Internal RC oscillator frequency */ 00077 #define WDT_OSC ( 500000UL) /* Internal WDT oscillator frequency */ 00078 00079 00080 00081 /* 00082 //-------- <<< end of configuration section >>> ------------------------------ 00083 */ 00084 00085 #ifdef __cplusplus 00086 } 00087 #endif 00088 00089 #endif /* __SYSTEM_LPC407x_8x_177x_8x_H */
Generated on Tue Jul 12 2022 13:47:02 by 1.7.2