Contiki 3.x
Functions
nvic.h File Reference

Header file for the MKL25Z NVIC functions. More...

#include <MKL25Z4.h>

Go to the source code of this file.

Functions

void NVIC_ENABLE_INT (uint32_t IRQ)
 Enable specified interrupt in the ARM NVIC. More...
 
void NVIC_DISABLE_INT (uint32_t IRQ)
 Disable specified interrupt in the ARM NVIC. More...
 
void NVIC_SET_PENDING (uint32_t IRQ)
 Set a pending interrupt for the specified interrupt in the ARM NVIC. More...
 
void NVIC_CLEAR_PENDING (uint32_t IRQ)
 Clear a pending interrupt for the specified interrupt in the ARM NVIC. More...
 
void NVIC_Set_Priority (uint32_t IRQ, uint8_t priority)
 Set the priority of the specified interrupt in the ARM NVIC. More...
 
void NVIC_SET_SYSTICK_PRI (uint8_t priority)
 Set the priority of the SYSTICK interrupt. More...
 

Detailed Description

Header file for the MKL25Z NVIC functions.

Author
Graeme Bragg - g.bra.nosp@m.gg@e.nosp@m.cs.so.nosp@m.ton..nosp@m.ac.uk

Definition in file nvic.h.

Function Documentation

void NVIC_CLEAR_PENDING ( uint32_t  IRQ)

Clear a pending interrupt for the specified interrupt in the ARM NVIC.

Parameters
IRQIRQ of relevant interrupt as specified in Table 3-7. on Page 52 of the KL25 Sub-Family Reference Manual.
Returns
Nil.

Clear a pending interrupt for the specified interrupt in the Nested Vector Interrupt Controller (NVIC).

Definition at line 124 of file nvic.c.

References NVIC.

Referenced by gpio_init().

void NVIC_DISABLE_INT ( uint32_t  IRQ)

Disable specified interrupt in the ARM NVIC.

Parameters
IRQIRQ of relevant interrupt as specified in Table 3-7. on Page 52 of the KL25 Sub-Family Reference Manual.
Returns
Nil.

Disable the specified interrupt in the Nested Vector Interrupt Controller (NVIC).

Definition at line 95 of file nvic.c.

References NVIC.

void NVIC_ENABLE_INT ( uint32_t  IRQ)

Enable specified interrupt in the ARM NVIC.

Parameters
IRQIRQ of relevant interrupt as specified in Table 3-7. on Page 52 of the KL25 Sub-Family Reference Manual.
Returns
Nil.

Enable the specified interrupt in the Nested Vector Interrupt Controller (NVIC) after clearing any pending interrupts.

Definition at line 80 of file nvic.c.

References NVIC.

Referenced by gpio_init().

void NVIC_SET_PENDING ( uint32_t  IRQ)

Set a pending interrupt for the specified interrupt in the ARM NVIC.

Parameters
IRQIRQ of relevant interrupt as specified in Table 3-7. on Page 52 of the KL25 Sub-Family Reference Manual.
Returns
Nil.

Set a pending interrupt for the specified interrupt in the Nested Vector Interrupt Controller (NVIC).

Definition at line 110 of file nvic.c.

References NVIC.

void NVIC_Set_Priority ( uint32_t  IRQ,
uint8_t  priority 
)

Set the priority of the specified interrupt in the ARM NVIC.

Parameters
IRQIRQ of relevant interrupt as specified in Table 3-7. on Page 52 of the KL25 Sub-Family Reference Manual.
priorityPriority of the interrupt. Value between 0 and 3.
Returns
Nil.

Set the priority of the specified interrupt in the Nested Vector Interrupt Controller (NVIC). The priority is a two-bit value with 0 being the highest priority.

Either a priority of 0 to 3 or 128

Definition at line 142 of file nvic.c.

References NVIC.

Referenced by gpio_init().

void NVIC_SET_SYSTICK_PRI ( uint8_t  priority)

Set the priority of the SYSTICK interrupt.

Parameters
priorityPriority of the interrupt.
Returns
Nil.

Set the priority of the SYSTICK interrupt.

Definition at line 188 of file nvic.c.

References SCB.

Referenced by clock_init().