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

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

NVIC_Public_Functions

NVIC_Public_Functions
[NVIC]

Functions

void NVIC_DeInit (void)
 De-initializes the NVIC peripheral registers to their default reset values.
void NVIC_SCBDeInit (void)
 De-initializes the SCB peripheral registers to their default reset values.
void NVIC_SetVTOR (uint32_t offset)
 Set Vector Table Offset value.

Function Documentation

void NVIC_DeInit ( void   )

De-initializes the NVIC peripheral registers to their default reset values.

Parameters:
None
Returns:
None

These following NVIC peripheral registers will be de-initialized:

  • Disable Interrupt (32 IRQ interrupt sources that matched with LPC17xx)
  • Clear all Pending Interrupts (32 IRQ interrupt source that matched with LPC17xx)
  • Clear all Interrupt Priorities (32 IRQ interrupt source that matched with LPC17xx)

Definition at line 61 of file lpc17xx_nvic.c.

void NVIC_SCBDeInit ( void   )

De-initializes the SCB peripheral registers to their default reset values.

Parameters:
none
Returns:
none

These following SCB NVIC peripheral registers will be de-initialized:

  • Interrupt Control State register
  • Interrupt Vector Table Offset register
  • Application Interrupt/Reset Control register
  • System Control register
  • Configuration Control register
  • System Handlers Priority Registers
  • System Handler Control and State Register
  • Configurable Fault Status Register
  • Hard Fault Status Register
  • Debug Fault Status Register

Definition at line 96 of file lpc17xx_nvic.c.

void NVIC_SetVTOR ( uint32_t  offset )

Set Vector Table Offset value.

Parameters:
offsetOffset value
Returns:
None

Definition at line 122 of file lpc17xx_nvic.c.