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
include/lpc17xx_nvic.h@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_nvic.h |
igorsk | 0:1063a091a062 | 3 | * @brief : Contains all macro definitions and function prototypes |
igorsk | 0:1063a091a062 | 4 | * support for Nesting Vectored Interrupt firmware library |
igorsk | 0:1063a091a062 | 5 | * on LPC17xx |
igorsk | 0:1063a091a062 | 6 | * @version : 1.0 |
igorsk | 0:1063a091a062 | 7 | * @date : 18. Mar. 2009 |
igorsk | 0:1063a091a062 | 8 | * @author : HieuNguyen |
igorsk | 0:1063a091a062 | 9 | ************************************************************************** |
igorsk | 0:1063a091a062 | 10 | * Software that is described herein is for illustrative purposes only |
igorsk | 0:1063a091a062 | 11 | * which provides customers with programming information regarding the |
igorsk | 0:1063a091a062 | 12 | * products. This software is supplied "AS IS" without any warranties. |
igorsk | 0:1063a091a062 | 13 | * NXP Semiconductors assumes no responsibility or liability for the |
igorsk | 0:1063a091a062 | 14 | * use of the software, conveys no license or title under any patent, |
igorsk | 0:1063a091a062 | 15 | * copyright, or mask work right to the product. NXP Semiconductors |
igorsk | 0:1063a091a062 | 16 | * reserves the right to make changes in the software without |
igorsk | 0:1063a091a062 | 17 | * notification. NXP Semiconductors also make no representation or |
igorsk | 0:1063a091a062 | 18 | * warranty that such application will be suitable for the specified |
igorsk | 0:1063a091a062 | 19 | * use without further testing or modification. |
igorsk | 0:1063a091a062 | 20 | **************************************************************************/ |
igorsk | 0:1063a091a062 | 21 | |
igorsk | 0:1063a091a062 | 22 | /* Peripheral group ----------------------------------------------------------- */ |
igorsk | 0:1063a091a062 | 23 | /** @defgroup NVIC |
igorsk | 0:1063a091a062 | 24 | * @ingroup LPC1700CMSIS_FwLib_Drivers |
igorsk | 0:1063a091a062 | 25 | * @{ |
igorsk | 0:1063a091a062 | 26 | */ |
igorsk | 0:1063a091a062 | 27 | |
igorsk | 0:1063a091a062 | 28 | #ifndef LPC17XX_NVIC_H_ |
igorsk | 0:1063a091a062 | 29 | #define LPC17XX_NVIC_H_ |
igorsk | 0:1063a091a062 | 30 | |
igorsk | 0:1063a091a062 | 31 | /* Includes ------------------------------------------------------------------- */ |
igorsk | 0:1063a091a062 | 32 | #include "cmsis.h" |
igorsk | 0:1063a091a062 | 33 | #include "lpc_types.h" |
igorsk | 0:1063a091a062 | 34 | |
igorsk | 0:1063a091a062 | 35 | #ifdef __cplusplus |
igorsk | 0:1063a091a062 | 36 | extern "C" |
igorsk | 0:1063a091a062 | 37 | { |
igorsk | 0:1063a091a062 | 38 | #endif |
igorsk | 0:1063a091a062 | 39 | |
igorsk | 0:1063a091a062 | 40 | |
igorsk | 0:1063a091a062 | 41 | /* Public Functions ----------------------------------------------------------- */ |
igorsk | 0:1063a091a062 | 42 | /** @defgroup NVIC_Public_Functions |
igorsk | 0:1063a091a062 | 43 | * @{ |
igorsk | 0:1063a091a062 | 44 | */ |
igorsk | 0:1063a091a062 | 45 | |
igorsk | 0:1063a091a062 | 46 | void NVIC_DeInit(void); |
igorsk | 0:1063a091a062 | 47 | void NVIC_SCBDeInit(void); |
igorsk | 0:1063a091a062 | 48 | void NVIC_SetVTOR(uint32_t offset); |
igorsk | 0:1063a091a062 | 49 | |
igorsk | 0:1063a091a062 | 50 | /** |
igorsk | 0:1063a091a062 | 51 | * @} |
igorsk | 0:1063a091a062 | 52 | */ |
igorsk | 0:1063a091a062 | 53 | |
igorsk | 0:1063a091a062 | 54 | #ifdef __cplusplus |
igorsk | 0:1063a091a062 | 55 | } |
igorsk | 0:1063a091a062 | 56 | #endif |
igorsk | 0:1063a091a062 | 57 | |
igorsk | 0:1063a091a062 | 58 | #endif /* LPC17XX_NVIC_H_ */ |
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 ------------------------------ */ |