lpc-field

Template project for programming NXP's LPC1768 MCUs
git clone git://git.mdnr.space/lpc-field
Log | Files | Refs | README | LICENSE

lpc17xx_libcfg_default.c (2847B)


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