Modules

Functions that manage interrupts and exceptions via the NVIC. More...

Collaboration diagram for NVIC Functions:

Modules

 SysTick Functions
 Functions that configure the System.
 
__STATIC_INLINE void NVIC_EnableIRQ (IRQn_Type IRQn)
 Enable External Interrupt. More...
 
__STATIC_INLINE void NVIC_DisableIRQ (IRQn_Type IRQn)
 Disable External Interrupt. More...
 
__STATIC_INLINE uint32_t NVIC_GetPendingIRQ (IRQn_Type IRQn)
 Get Pending Interrupt. More...
 
__STATIC_INLINE void NVIC_SetPendingIRQ (IRQn_Type IRQn)
 Set Pending Interrupt. More...
 
__STATIC_INLINE void NVIC_ClearPendingIRQ (IRQn_Type IRQn)
 Clear Pending Interrupt. More...
 
__STATIC_INLINE void NVIC_SetPriority (IRQn_Type IRQn, uint32_t priority)
 Set Interrupt Priority. More...
 
__STATIC_INLINE uint32_t NVIC_GetPriority (IRQn_Type IRQn)
 Get Interrupt Priority. More...
 
__STATIC_INLINE void NVIC_SystemReset (void)
 System Reset. More...
 
#define _BIT_SHIFT(IRQn)   ( (((uint32_t)(IRQn) ) & 0x03) * 8 )
 
#define _SHP_IDX(IRQn)   ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) )
 
#define _IP_IDX(IRQn)   ( ((uint32_t)(IRQn) >> 2) )
 

Detailed Description

Functions that manage interrupts and exceptions via the NVIC.

Macro Definition Documentation

◆ _BIT_SHIFT

#define _BIT_SHIFT (   IRQn)    ( (((uint32_t)(IRQn) ) & 0x03) * 8 )

Definition at line 489 of file core_cm0.h.

◆ _IP_IDX

#define _IP_IDX (   IRQn)    ( ((uint32_t)(IRQn) >> 2) )

Definition at line 491 of file core_cm0.h.

◆ _SHP_IDX

#define _SHP_IDX (   IRQn)    ( ((((uint32_t)(IRQn) & 0x0F)-8) >> 2) )

Definition at line 490 of file core_cm0.h.

Function Documentation

◆ NVIC_ClearPendingIRQ()

__STATIC_INLINE void NVIC_ClearPendingIRQ ( IRQn_Type  IRQn)

Clear Pending Interrupt.

The function clears the pending bit of an external interrupt.

Parameters
[in]IRQnExternal interrupt number. Value cannot be negative.

Definition at line 552 of file core_cm0.h.

◆ NVIC_DisableIRQ()

__STATIC_INLINE void NVIC_DisableIRQ ( IRQn_Type  IRQn)

Disable External Interrupt.

The function disables a device-specific interrupt in the NVIC interrupt controller.

Parameters
[in]IRQnExternal interrupt number. Value cannot be negative.

Definition at line 512 of file core_cm0.h.

◆ NVIC_EnableIRQ()

__STATIC_INLINE void NVIC_EnableIRQ ( IRQn_Type  IRQn)

Enable External Interrupt.

The function enables a device-specific interrupt in the NVIC interrupt controller.

Parameters
[in]IRQnExternal interrupt number. Value cannot be negative.

Definition at line 500 of file core_cm0.h.

◆ NVIC_GetPendingIRQ()

__STATIC_INLINE uint32_t NVIC_GetPendingIRQ ( IRQn_Type  IRQn)

Get Pending Interrupt.

The function reads the pending register in the NVIC and returns the pending bit for the specified interrupt.

Parameters
[in]IRQnInterrupt number.
Returns
0 Interrupt status is not pending.
1 Interrupt status is pending.

Definition at line 528 of file core_cm0.h.

◆ NVIC_GetPriority()

__STATIC_INLINE uint32_t NVIC_GetPriority ( IRQn_Type  IRQn)

Get Interrupt Priority.

The function reads the priority of an interrupt. The interrupt number can be positive to specify an external (device specific) interrupt, or negative to specify an internal (core) interrupt.

Parameters
[in]IRQnInterrupt number.
Returns
Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller.

Definition at line 589 of file core_cm0.h.

◆ NVIC_SetPendingIRQ()

__STATIC_INLINE void NVIC_SetPendingIRQ ( IRQn_Type  IRQn)

Set Pending Interrupt.

The function sets the pending bit of an external interrupt.

Parameters
[in]IRQnInterrupt number. Value cannot be negative.

Definition at line 540 of file core_cm0.h.

◆ NVIC_SetPriority()

__STATIC_INLINE void NVIC_SetPriority ( IRQn_Type  IRQn,
uint32_t  priority 
)

Set Interrupt Priority.

The function sets the priority of an interrupt.

Note
The priority cannot be set for every core interrupt.
Parameters
[in]IRQnInterrupt number.
[in]priorityPriority to set.

Definition at line 567 of file core_cm0.h.

◆ NVIC_SystemReset()

__STATIC_INLINE void NVIC_SystemReset ( void  )

System Reset.

The function initiates a system reset request to reset the MCU.

Definition at line 603 of file core_cm0.h.



uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:04