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