Date: March 20, 2011 This library is created from "LPC17xx CMSIS-Compliant Standard Peripheral Firmware Driver Library (GNU, Keil, IAR) (Jan 28, 2011)", available from NXP's website, under "All microcontrollers support documents" [[http://ics.nxp.com/support/documents/microcontrollers/?type=software]] You will need to follow [[/projects/libraries/svn/mbed/trunk/LPC1768/LPC17xx.h]] while using this library Examples provided here [[/users/frank26080115/programs/LPC1700CMSIS_Examples/]] The beautiful thing is that NXP does not place copyright protection on any of the files in here Only a few modifications are made to make it compile with the mbed online compiler, I fixed some warnings as well. This is untested as of March 20, 2011 Forum post about this library: [[/forum/mbed/topic/2030/]]

Committer:
frank26080115
Date:
Sun Mar 20 18:45:15 2011 +0000
Revision:
0:84d7747641aa

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frank26080115 0:84d7747641aa 1 /***********************************************************************//**
frank26080115 0:84d7747641aa 2 * @file lpc17xx_libcfg_default.c
frank26080115 0:84d7747641aa 3 * @brief Library configuration source file (default),
frank26080115 0:84d7747641aa 4 * used to build library without examples.
frank26080115 0:84d7747641aa 5 * @version 2.0
frank26080115 0:84d7747641aa 6 * @date 21. May. 2010
frank26080115 0:84d7747641aa 7 * @author NXP MCU SW Application Team
frank26080115 0:84d7747641aa 8 **************************************************************************
frank26080115 0:84d7747641aa 9 * Software that is described herein is for illustrative purposes only
frank26080115 0:84d7747641aa 10 * which provides customers with programming information regarding the
frank26080115 0:84d7747641aa 11 * products. This software is supplied "AS IS" without any warranties.
frank26080115 0:84d7747641aa 12 * NXP Semiconductors assumes no responsibility or liability for the
frank26080115 0:84d7747641aa 13 * use of the software, conveys no license or title under any patent,
frank26080115 0:84d7747641aa 14 * copyright, or mask work right to the product. NXP Semiconductors
frank26080115 0:84d7747641aa 15 * reserves the right to make changes in the software without
frank26080115 0:84d7747641aa 16 * notification. NXP Semiconductors also make no representation or
frank26080115 0:84d7747641aa 17 * warranty that such application will be suitable for the specified
frank26080115 0:84d7747641aa 18 * use without further testing or modification.
frank26080115 0:84d7747641aa 19 **************************************************************************/
frank26080115 0:84d7747641aa 20
frank26080115 0:84d7747641aa 21 /* Library group ----------------------------------------------------------- */
frank26080115 0:84d7747641aa 22 /** @addtogroup LIBCFG_DEFAULT
frank26080115 0:84d7747641aa 23 * @{
frank26080115 0:84d7747641aa 24 */
frank26080115 0:84d7747641aa 25
frank26080115 0:84d7747641aa 26 /* Includes ------------------------------------------------------------------- */
frank26080115 0:84d7747641aa 27 #include "lpc17xx_libcfg_default.h"
frank26080115 0:84d7747641aa 28
frank26080115 0:84d7747641aa 29 /* Public Functions ----------------------------------------------------------- */
frank26080115 0:84d7747641aa 30 /** @addtogroup LIBCFG_DEFAULT_Public_Functions
frank26080115 0:84d7747641aa 31 * @{
frank26080115 0:84d7747641aa 32 */
frank26080115 0:84d7747641aa 33
frank26080115 0:84d7747641aa 34 #ifndef __BUILD_WITH_EXAMPLE__
frank26080115 0:84d7747641aa 35
frank26080115 0:84d7747641aa 36 #ifdef DEBUG
frank26080115 0:84d7747641aa 37 /*******************************************************************************
frank26080115 0:84d7747641aa 38 * @brief Reports the name of the source file and the source line number
frank26080115 0:84d7747641aa 39 * where the CHECK_PARAM error has occurred.
frank26080115 0:84d7747641aa 40 * @param[in] file Pointer to the source file name
frank26080115 0:84d7747641aa 41 * @param[in] line assert_param error line source number
frank26080115 0:84d7747641aa 42 * @return None
frank26080115 0:84d7747641aa 43 *******************************************************************************/
frank26080115 0:84d7747641aa 44 void check_failed(uint8_t *file, uint32_t line)
frank26080115 0:84d7747641aa 45 {
frank26080115 0:84d7747641aa 46 /* User can add his own implementation to report the file name and line number,
frank26080115 0:84d7747641aa 47 ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
frank26080115 0:84d7747641aa 48
frank26080115 0:84d7747641aa 49 /* Infinite loop */
frank26080115 0:84d7747641aa 50 while(1);
frank26080115 0:84d7747641aa 51 }
frank26080115 0:84d7747641aa 52 #endif /* DEBUG */
frank26080115 0:84d7747641aa 53
frank26080115 0:84d7747641aa 54 #endif /* __BUILD_WITH_EXAMPLE__ */
frank26080115 0:84d7747641aa 55
frank26080115 0:84d7747641aa 56 /**
frank26080115 0:84d7747641aa 57 * @}
frank26080115 0:84d7747641aa 58 */
frank26080115 0:84d7747641aa 59
frank26080115 0:84d7747641aa 60 /**
frank26080115 0:84d7747641aa 61 * @}
frank26080115 0:84d7747641aa 62 */
frank26080115 0:84d7747641aa 63
frank26080115 0:84d7747641aa 64 /* --------------------------------- End Of File ------------------------------ */