NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip
lpc17xx_libcfg_default.c
00001 /***********************************************************************//** 00002 * @file : lpc17xx_libcfg_default.c 00003 * @brief : Library configuration source file (default), 00004 * used to build library without examples. 00005 * @version : 1.0 00006 * @date : 26. Mar. 2009 00007 * @author : HieuNguyen 00008 ************************************************************************** 00009 * Software that is described herein is for illustrative purposes only 00010 * which provides customers with programming information regarding the 00011 * products. This software is supplied "AS IS" without any warranties. 00012 * NXP Semiconductors assumes no responsibility or liability for the 00013 * use of the software, conveys no license or title under any patent, 00014 * copyright, or mask work right to the product. NXP Semiconductors 00015 * reserves the right to make changes in the software without 00016 * notification. NXP Semiconductors also make no representation or 00017 * warranty that such application will be suitable for the specified 00018 * use without further testing or modification. 00019 **************************************************************************/ 00020 00021 /* Library group ----------------------------------------------------------- */ 00022 /** @addtogroup LIBCFG_DEFAULT 00023 * @{ 00024 */ 00025 00026 /* Includes ------------------------------------------------------------------- */ 00027 #include "lpc17xx_libcfg_default.h" 00028 00029 /* Public Functions ----------------------------------------------------------- */ 00030 /** @addtogroup LIBCFG_DEFAULT_Public_Functions 00031 * @{ 00032 */ 00033 00034 #ifndef __BUILD_WITH_EXAMPLE__ 00035 00036 #ifdef DEBUG 00037 /******************************************************************************* 00038 * @brief Reports the name of the source file and the source line number 00039 * where the CHECK_PARAM error has occurred. 00040 * @param[in] file Pointer to the source file name 00041 * @param[in] line assert_param error line source number 00042 * @return None 00043 *******************************************************************************/ 00044 void check_failed(uint8_t *file, uint32_t line) 00045 { 00046 /* User can add his own implementation to report the file name and line number, 00047 ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ 00048 00049 /* Infinite loop */ 00050 while(1); 00051 } 00052 #endif /* DEBUG */ 00053 00054 #endif /* __BUILD_WITH_EXAMPLE__ */ 00055 00056 /** 00057 * @} 00058 */ 00059 00060 /** 00061 * @} 00062 */ 00063 00064 /* --------------------------------- End Of File ------------------------------ */
Generated on Tue Jul 12 2022 17:06:02 by 1.7.2