1 /**********************************************************************
\r
2 * $Id$ lpc18xx_nvic.c 2011-06-02
\r
4 * @file lpc18xx_nvic.c
\r
5 * @brief Contains all expansion functions support for NVIC firmware
\r
6 * library on LPC18XX. The main NVIC functions are defined in
\r
9 * @date 02. June. 2011
\r
10 * @author NXP MCU SW Application Team
\r
12 * Copyright(C) 2011, NXP Semiconductor
\r
13 * All rights reserved.
\r
15 ***********************************************************************
\r
16 * Software that is described herein is for illustrative purposes only
\r
17 * which provides customers with programming information regarding the
\r
18 * products. This software is supplied "AS IS" without any warranties.
\r
19 * NXP Semiconductors assumes no responsibility or liability for the
\r
20 * use of the software, conveys no license or title under any patent,
\r
21 * copyright, or mask work right to the product. NXP Semiconductors
\r
22 * reserves the right to make changes in the software without
\r
23 * notification. NXP Semiconductors also make no representation or
\r
24 * warranty that such application will be suitable for the specified
\r
25 * use without further testing or modification.
\r
26 **********************************************************************/
\r
28 /* Peripheral group ----------------------------------------------------------- */
\r
29 /** @addtogroup NVIC
\r
33 /* Includes ------------------------------------------------------------------- */
\r
34 #include "lpc18xx_nvic.h"
\r
37 /* Private Macros ------------------------------------------------------------- */
\r
38 /** @addtogroup NVIC_Private_Macros
\r
42 /* Vector table offset bit mask */
\r
43 #define NVIC_VTOR_MASK 0x3FFFFF80
\r
50 /* Public Functions ----------------------------------------------------------- */
\r
51 /** @addtogroup NVIC_Public_Functions
\r
55 /*****************************************************************************//**
\r
56 * @brief Set Vector Table Offset value
\r
57 * @param offset Offset value
\r
59 *******************************************************************************/
\r
60 void NVIC_SetVTOR(uint32_t offset)
\r
62 // SCB->VTOR = (offset & NVIC_VTOR_MASK);
\r
74 /* --------------------------------- End Of File ------------------------------ */
\r