Modification of mbed-src library only for STM32F030F4, very cheap microcontroller in 20-Pin TSSOP package, with 16Kbytes of Flash and 4Kbytes of Ram. **Target for online compilator must be Nucleo 32F030R8.**

Dependents:   STM32F031_blink_LED_2

Embed: (wiki syntax)

« Back to documentation index

NVIC Functions

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

Functions

__STATIC_INLINE void NVIC_EnableIRQ (IRQn_Type IRQn)
 Enable External Interrupt.
__STATIC_INLINE void NVIC_DisableIRQ (IRQn_Type IRQn)
 Disable External Interrupt.
__STATIC_INLINE uint32_t NVIC_GetPendingIRQ (IRQn_Type IRQn)
 Get Pending Interrupt.
__STATIC_INLINE void NVIC_SetPendingIRQ (IRQn_Type IRQn)
 Set Pending Interrupt.
__STATIC_INLINE void NVIC_ClearPendingIRQ (IRQn_Type IRQn)
 Clear Pending Interrupt.
__STATIC_INLINE void NVIC_SetPriority (IRQn_Type IRQn, uint32_t priority)
 Set Interrupt Priority.
__STATIC_INLINE uint32_t NVIC_GetPriority (IRQn_Type IRQn)
 Get Interrupt Priority.
__STATIC_INLINE void NVIC_SystemReset (void)
 System Reset.

Detailed Description

Functions that manage interrupts and exceptions via the NVIC.


Function Documentation

__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 567 of file core_cm0.h.

__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 527 of file core_cm0.h.

__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 515 of file core_cm0.h.

__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 543 of file core_cm0.h.

__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 604 of file core_cm0.h.

__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 555 of file core_cm0.h.

__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 582 of file core_cm0.h.

__STATIC_INLINE void NVIC_SystemReset ( void   )

System Reset.

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

Definition at line 618 of file core_cm0.h.