Callisto4Bootloader: NVIC Functions

Callisto4Bootloader

Modules
NVIC Functions
Defines and Type Definitions » Status and Control Registers » Nested Vectored Interrupt Controller (NVIC) » System Control Block (SCB) » System Controls not in SCB (SCnSCB) » System Tick Timer (SysTick) » Instrumentation Trace Macrocell (ITM) » Data Watchpoint and Trace (DWT) » Trace Port Interface (TPI) » Floating Point Unit (FPU) » Core Debug Registers (CoreDebug) » Core register bit field macros » Core Definitions Defines and Type Definitions » Status and Control Registers » Nested Vectored Interrupt Controller (NVIC) » System Control Block (SCB) » System Controls not in SCB (SCnSCB) » System Tick Timer (SysTick) » Instrumentation Trace Macrocell (ITM) » Data Watchpoint and Trace (DWT) » Trace Port Interface (TPI) » Floating Point Unit (FPU) » Core Debug Registers (CoreDebug) » Core register bit field macros » Core Definitions » | Functions and Instructions Reference

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

## Modules

| FPU Functions
| Function that provides FPU type.
__STATIC_INLINE void | __NVIC_SetPriorityGrouping (uint32_t PriorityGroup)
| Set Priority Grouping. More...
__STATIC_INLINE uint32_t | __NVIC_GetPriorityGrouping (void)
| Get Priority Grouping. More...
__STATIC_INLINE void | __NVIC_EnableIRQ (IRQn_Type IRQn)
| Enable Interrupt. More...
__STATIC_INLINE uint32_t | __NVIC_GetEnableIRQ (IRQn_Type IRQn)
| Get Interrupt Enable status. More...
__STATIC_INLINE void | __NVIC_DisableIRQ (IRQn_Type IRQn)
| Disable 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 uint32_t | __NVIC_GetActive (IRQn_Type IRQn)
| Get Active 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 uint32_t | NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)
| Encode Priority. More...
__STATIC_INLINE void | NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGroup, uint32_t *const pPreemptPriority, uint32_t *const pSubPriority)
| Decode Priority. More...
__STATIC_INLINE void | __NVIC_SetVector (IRQn_Type IRQn, uint32_t vector)
| Set Interrupt Vector. More...
__STATIC_INLINE uint32_t | __NVIC_GetVector (IRQn_Type IRQn)
| Get Interrupt Vector. More...
__NO_RETURN __STATIC_INLINE void | __NVIC_SystemReset (void)
| System Reset. More...
__STATIC_INLINE uint32_t | SCB_GetFPUType (void)
| get FPU type More...
__STATIC_INLINE uint32_t | ITM_SendChar (uint32_t ch)
| ITM Send Character. More...
__STATIC_INLINE int32_t | ITM_ReceiveChar (void)
| ITM Receive Character. More...
__STATIC_INLINE int32_t | ITM_CheckChar (void)
| ITM Check Character. More...
#define | NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping
#define | NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping
#define | NVIC_EnableIRQ __NVIC_EnableIRQ
#define | NVIC_GetEnableIRQ __NVIC_GetEnableIRQ
#define | NVIC_DisableIRQ __NVIC_DisableIRQ
#define | NVIC_GetPendingIRQ __NVIC_GetPendingIRQ
#define | NVIC_SetPendingIRQ __NVIC_SetPendingIRQ
#define | NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ
#define | NVIC_GetActive __NVIC_GetActive
#define | NVIC_SetPriority __NVIC_SetPriority
#define | NVIC_GetPriority __NVIC_GetPriority
#define | NVIC_SystemReset __NVIC_SystemReset
#define | NVIC_SetVector __NVIC_SetVector
#define | NVIC_GetVector __NVIC_GetVector
#define | NVIC_USER_IRQ_OFFSET 16
#define | NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping
#define | NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping
#define | NVIC_EnableIRQ __NVIC_EnableIRQ
#define | NVIC_GetEnableIRQ __NVIC_GetEnableIRQ
#define | NVIC_DisableIRQ __NVIC_DisableIRQ
#define | NVIC_GetPendingIRQ __NVIC_GetPendingIRQ
#define | NVIC_SetPendingIRQ __NVIC_SetPendingIRQ
#define | NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ
#define | NVIC_GetActive __NVIC_GetActive
#define | NVIC_SetPriority __NVIC_SetPriority
#define | NVIC_GetPriority __NVIC_GetPriority
#define | NVIC_SystemReset __NVIC_SystemReset
#define | NVIC_SetVector __NVIC_SetVector
#define | NVIC_GetVector __NVIC_GetVector
#define | NVIC_USER_IRQ_OFFSET 16
#define | FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */
#define | EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */
#define | EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */
#define | EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */
#define | EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */
#define | EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */
#define | EXC_RETURN_SPSEL (0x00000004UL) /* bit [2] stack pointer used to restore context: 0=MSP 1=PSP */
#define | EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */
#define | EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */
#define | _BIT_SHIFT(IRQn) ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL)
#define | _SHP_IDX(IRQn) ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) )
#define | _IP_IDX(IRQn) ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) )
#define | __NVIC_SetPriorityGrouping(X) (void)(X)
#define | __NVIC_GetPriorityGrouping() (0U)
| Get Priority Grouping. More...
#define | NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping
#define | NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping
#define | NVIC_EnableIRQ __NVIC_EnableIRQ
#define | NVIC_GetEnableIRQ __NVIC_GetEnableIRQ
#define | NVIC_DisableIRQ __NVIC_DisableIRQ
#define | NVIC_GetPendingIRQ __NVIC_GetPendingIRQ
#define | NVIC_SetPendingIRQ __NVIC_SetPendingIRQ
#define | NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ
#define | NVIC_GetActive __NVIC_GetActive
#define | NVIC_SetPriority __NVIC_SetPriority
#define | NVIC_GetPriority __NVIC_GetPriority
#define | NVIC_SystemReset __NVIC_SystemReset
#define | NVIC_SetVector __NVIC_SetVector
#define | NVIC_GetVector __NVIC_GetVector
#define | NVIC_USER_IRQ_OFFSET 16
#define | FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */
#define | EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */
#define | EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */
#define | EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */
#define | EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */
#define | EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */
#define | EXC_RETURN_SPSEL (0x00000004UL) /* bit [2] stack pointer used to restore context: 0=MSP 1=PSP */
#define | EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */
#define | EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */
#define | NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping
#define | NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping
#define | NVIC_EnableIRQ __NVIC_EnableIRQ
#define | NVIC_GetEnableIRQ __NVIC_GetEnableIRQ
#define | NVIC_DisableIRQ __NVIC_DisableIRQ
#define | NVIC_GetPendingIRQ __NVIC_GetPendingIRQ
#define | NVIC_SetPendingIRQ __NVIC_SetPendingIRQ
#define | NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ
#define | NVIC_GetActive __NVIC_GetActive
#define | NVIC_SetPriority __NVIC_SetPriority
#define | NVIC_GetPriority __NVIC_GetPriority
#define | NVIC_SystemReset __NVIC_SystemReset
#define | NVIC_SetVector __NVIC_SetVector
#define | NVIC_GetVector __NVIC_GetVector
#define | NVIC_USER_IRQ_OFFSET 16
#define | EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */
#define | EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */
#define | EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */
#define | EXC_RETURN_HANDLER_FPU (0xFFFFFFE1UL) /* return to Handler mode, uses MSP after return, restore floating-point state */
#define | EXC_RETURN_THREAD_MSP_FPU (0xFFFFFFE9UL) /* return to Thread mode, uses MSP after return, restore floating-point state */
#define | EXC_RETURN_THREAD_PSP_FPU (0xFFFFFFEDUL) /* return to Thread mode, uses PSP after return, restore floating-point state */

## Detailed Description

Functions that manage interrupts and exceptions via the NVIC.

## Macro Definition Documentation

## ◆ __NVIC_GetPriorityGrouping

__STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping | ( |  | void | ) | (0U)

Get Priority Grouping.

Reads the priority grouping field from the NVIC Interrupt Controller.

Returns
  Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).

Definition at line 1241 of file core_armv8mbl.h.

## ◆ __NVIC_SetPriorityGrouping

#define __NVIC_SetPriorityGrouping | ( |  | X | ) | (void)(X)

Definition at line 1240 of file core_armv8mbl.h.

## ◆ _BIT_SHIFT

#define _BIT_SHIFT | ( |  | IRQn | ) | ( ((((uint32_t)(int32_t)(IRQn)) ) & 0x03UL) * 8UL)

Definition at line 1236 of file core_armv8mbl.h.

## ◆ _IP_IDX

#define _IP_IDX | ( |  | IRQn | ) | ( (((uint32_t)(int32_t)(IRQn)) >> 2UL) )

Definition at line 1238 of file core_armv8mbl.h.

## ◆ _SHP_IDX

#define _SHP_IDX | ( |  | IRQn | ) | ( (((((uint32_t)(int32_t)(IRQn)) & 0x0FUL)-8UL) >> 2UL) )

Definition at line 1237 of file core_armv8mbl.h.

## ◆ EXC_INTEGRITY_SIGNATURE [1/2]

#define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */

Definition at line 1230 of file core_armv8mbl.h.

## ◆ EXC_INTEGRITY_SIGNATURE [2/2]

#define EXC_INTEGRITY_SIGNATURE (0xFEFA125BUL) /* Value for processors without floating-point extension */

Definition at line 2005 of file core_armv8mml.h.

## ◆ EXC_RETURN_DCRS [1/2]

#define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */

Definition at line 1220 of file core_armv8mbl.h.

## ◆ EXC_RETURN_DCRS [2/2]

#define EXC_RETURN_DCRS (0x00000020UL) /* bit [5] stacking rules for called registers: 0=skipped 1=saved */

Definition at line 1995 of file core_armv8mml.h.

## ◆ EXC_RETURN_ES [1/2]

#define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */

Definition at line 1224 of file core_armv8mbl.h.

## ◆ EXC_RETURN_ES [2/2]

#define EXC_RETURN_ES (0x00000001UL) /* bit [0] security state exception was taken to: 0=Non-secure 1=Secure */

Definition at line 1999 of file core_armv8mml.h.

## ◆ EXC_RETURN_FTYPE [1/2]

#define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */

Definition at line 1221 of file core_armv8mbl.h.

## ◆ EXC_RETURN_FTYPE [2/2]

#define EXC_RETURN_FTYPE (0x00000010UL) /* bit [4] allocate stack for floating-point context: 0=done 1=skipped */

Definition at line 1996 of file core_armv8mml.h.

## ◆ EXC_RETURN_HANDLER

#define EXC_RETURN_HANDLER (0xFFFFFFF1UL) /* return to Handler mode, uses MSP after return */

Definition at line 1851 of file core_cm7.h.

## ◆ EXC_RETURN_HANDLER_FPU

#define EXC_RETURN_HANDLER_FPU (0xFFFFFFE1UL) /* return to Handler mode, uses MSP after return, restore floating-point state */

Definition at line 1854 of file core_cm7.h.

## ◆ EXC_RETURN_MODE [1/2]

#define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */

Definition at line 1222 of file core_armv8mbl.h.

## ◆ EXC_RETURN_MODE [2/2]

#define EXC_RETURN_MODE (0x00000008UL) /* bit [3] processor mode for return: 0=Handler mode 1=Thread mode */

Definition at line 1997 of file core_armv8mml.h.

## ◆ EXC_RETURN_PREFIX [1/2]

#define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */

Definition at line 1218 of file core_armv8mbl.h.

## ◆ EXC_RETURN_PREFIX [2/2]

#define EXC_RETURN_PREFIX (0xFF000000UL) /* bits [31:24] set to indicate an EXC_RETURN value */

Definition at line 1993 of file core_armv8mml.h.

## ◆ EXC_RETURN_S [1/2]

#define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */

Definition at line 1219 of file core_armv8mbl.h.

## ◆ EXC_RETURN_S [2/2]

#define EXC_RETURN_S (0x00000040UL) /* bit [6] stack used to push registers: 0=Non-secure 1=Secure */

Definition at line 1994 of file core_armv8mml.h.

## ◆ EXC_RETURN_SPSEL [1/2]

#define EXC_RETURN_SPSEL (0x00000004UL) /* bit [2] stack pointer used to restore context: 0=MSP 1=PSP */

Definition at line 1223 of file core_armv8mbl.h.

## ◆ EXC_RETURN_SPSEL [2/2]

#define EXC_RETURN_SPSEL (0x00000004UL) /* bit [2] stack pointer used to restore context: 0=MSP 1=PSP */

Definition at line 1998 of file core_armv8mml.h.

## ◆ EXC_RETURN_THREAD_MSP

#define EXC_RETURN_THREAD_MSP (0xFFFFFFF9UL) /* return to Thread mode, uses MSP after return */

Definition at line 1852 of file core_cm7.h.

## ◆ EXC_RETURN_THREAD_MSP_FPU

#define EXC_RETURN_THREAD_MSP_FPU (0xFFFFFFE9UL) /* return to Thread mode, uses MSP after return, restore floating-point state */

Definition at line 1855 of file core_cm7.h.

## ◆ EXC_RETURN_THREAD_PSP

#define EXC_RETURN_THREAD_PSP (0xFFFFFFFDUL) /* return to Thread mode, uses PSP after return */

Definition at line 1853 of file core_cm7.h.

## ◆ EXC_RETURN_THREAD_PSP_FPU

#define EXC_RETURN_THREAD_PSP_FPU (0xFFFFFFEDUL) /* return to Thread mode, uses PSP after return, restore floating-point state */

Definition at line 1856 of file core_cm7.h.

## ◆ FNC_RETURN [1/2]

#define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */

Definition at line 1215 of file core_armv8mbl.h.

## ◆ FNC_RETURN [2/2]

#define FNC_RETURN (0xFEFFFFFFUL) /* bit [0] ignored when processing a branch */

Definition at line 1990 of file core_armv8mml.h.

## ◆ NVIC_ClearPendingIRQ [1/4]

#define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ

Definition at line 1192 of file core_armv8mbl.h.

## ◆ NVIC_ClearPendingIRQ [2/4]

#define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ

Definition at line 1830 of file core_cm7.h.

## ◆ NVIC_ClearPendingIRQ [3/4]

#define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ

Definition at line 1967 of file core_armv8mml.h.

## ◆ NVIC_ClearPendingIRQ [4/4]

#define NVIC_ClearPendingIRQ __NVIC_ClearPendingIRQ

Definition at line 2124 of file core_armv81mml.h.

## ◆ NVIC_DisableIRQ [1/4]

#define NVIC_DisableIRQ __NVIC_DisableIRQ

Definition at line 1189 of file core_armv8mbl.h.

## ◆ NVIC_DisableIRQ [2/4]

#define NVIC_DisableIRQ __NVIC_DisableIRQ

Definition at line 1827 of file core_cm7.h.

## ◆ NVIC_DisableIRQ [3/4]

#define NVIC_DisableIRQ __NVIC_DisableIRQ

Definition at line 1964 of file core_armv8mml.h.

## ◆ NVIC_DisableIRQ [4/4]

#define NVIC_DisableIRQ __NVIC_DisableIRQ

Definition at line 2121 of file core_armv81mml.h.

## ◆ NVIC_EnableIRQ [1/4]

#define NVIC_EnableIRQ __NVIC_EnableIRQ

Definition at line 1187 of file core_armv8mbl.h.

## ◆ NVIC_EnableIRQ [2/4]

#define NVIC_EnableIRQ __NVIC_EnableIRQ

Definition at line 1825 of file core_cm7.h.

## ◆ NVIC_EnableIRQ [3/4]

#define NVIC_EnableIRQ __NVIC_EnableIRQ

Definition at line 1962 of file core_armv8mml.h.

## ◆ NVIC_EnableIRQ [4/4]

#define NVIC_EnableIRQ __NVIC_EnableIRQ

Definition at line 2119 of file core_armv81mml.h.

## ◆ NVIC_GetActive [1/4]

#define NVIC_GetActive __NVIC_GetActive

Definition at line 1193 of file core_armv8mbl.h.

## ◆ NVIC_GetActive [2/4]

#define NVIC_GetActive __NVIC_GetActive

Definition at line 1831 of file core_cm7.h.

## ◆ NVIC_GetActive [3/4]

#define NVIC_GetActive __NVIC_GetActive

Definition at line 1968 of file core_armv8mml.h.

## ◆ NVIC_GetActive [4/4]

#define NVIC_GetActive __NVIC_GetActive

Definition at line 2125 of file core_armv81mml.h.

## ◆ NVIC_GetEnableIRQ [1/4]

#define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ

Definition at line 1188 of file core_armv8mbl.h.

## ◆ NVIC_GetEnableIRQ [2/4]

#define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ

Definition at line 1826 of file core_cm7.h.

## ◆ NVIC_GetEnableIRQ [3/4]

#define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ

Definition at line 1963 of file core_armv8mml.h.

## ◆ NVIC_GetEnableIRQ [4/4]

#define NVIC_GetEnableIRQ __NVIC_GetEnableIRQ

Definition at line 2120 of file core_armv81mml.h.

## ◆ NVIC_GetPendingIRQ [1/4]

#define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ

Definition at line 1190 of file core_armv8mbl.h.

## ◆ NVIC_GetPendingIRQ [2/4]

#define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ

Definition at line 1828 of file core_cm7.h.

## ◆ NVIC_GetPendingIRQ [3/4]

#define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ

Definition at line 1965 of file core_armv8mml.h.

## ◆ NVIC_GetPendingIRQ [4/4]

#define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ

Definition at line 2122 of file core_armv81mml.h.

## ◆ NVIC_GetPriority [1/4]

#define NVIC_GetPriority __NVIC_GetPriority

Definition at line 1195 of file core_armv8mbl.h.

## ◆ NVIC_GetPriority [2/4]

#define NVIC_GetPriority __NVIC_GetPriority

Definition at line 1833 of file core_cm7.h.

## ◆ NVIC_GetPriority [3/4]

#define NVIC_GetPriority __NVIC_GetPriority

Definition at line 1970 of file core_armv8mml.h.

## ◆ NVIC_GetPriority [4/4]

#define NVIC_GetPriority __NVIC_GetPriority

Definition at line 2127 of file core_armv81mml.h.

## ◆ NVIC_GetPriorityGrouping [1/4]

#define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping

Definition at line 1186 of file core_armv8mbl.h.

## ◆ NVIC_GetPriorityGrouping [2/4]

#define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping

Definition at line 1824 of file core_cm7.h.

## ◆ NVIC_GetPriorityGrouping [3/4]

#define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping

Definition at line 1961 of file core_armv8mml.h.

## ◆ NVIC_GetPriorityGrouping [4/4]

#define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping

Definition at line 2118 of file core_armv81mml.h.

## ◆ NVIC_GetVector [1/4]

#define NVIC_GetVector __NVIC_GetVector

Definition at line 1206 of file core_armv8mbl.h.

## ◆ NVIC_GetVector [2/4]

#define NVIC_GetVector __NVIC_GetVector

Definition at line 1844 of file core_cm7.h.

## ◆ NVIC_GetVector [3/4]

#define NVIC_GetVector __NVIC_GetVector

Definition at line 1981 of file core_armv8mml.h.

## ◆ NVIC_GetVector [4/4]

#define NVIC_GetVector __NVIC_GetVector

Definition at line 2138 of file core_armv81mml.h.

## ◆ NVIC_SetPendingIRQ [1/4]

#define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ

Definition at line 1191 of file core_armv8mbl.h.

## ◆ NVIC_SetPendingIRQ [2/4]

#define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ

Definition at line 1829 of file core_cm7.h.

## ◆ NVIC_SetPendingIRQ [3/4]

#define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ

Definition at line 1966 of file core_armv8mml.h.

## ◆ NVIC_SetPendingIRQ [4/4]

#define NVIC_SetPendingIRQ __NVIC_SetPendingIRQ

Definition at line 2123 of file core_armv81mml.h.

## ◆ NVIC_SetPriority [1/4]

#define NVIC_SetPriority __NVIC_SetPriority

Definition at line 1194 of file core_armv8mbl.h.

## ◆ NVIC_SetPriority [2/4]

#define NVIC_SetPriority __NVIC_SetPriority

Definition at line 1832 of file core_cm7.h.

## ◆ NVIC_SetPriority [3/4]

#define NVIC_SetPriority __NVIC_SetPriority

Definition at line 1969 of file core_armv8mml.h.

## ◆ NVIC_SetPriority [4/4]

#define NVIC_SetPriority __NVIC_SetPriority

Definition at line 2126 of file core_armv81mml.h.

## ◆ NVIC_SetPriorityGrouping [1/4]

#define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping

Definition at line 1185 of file core_armv8mbl.h.

## ◆ NVIC_SetPriorityGrouping [2/4]

#define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping

Definition at line 1823 of file core_cm7.h.

## ◆ NVIC_SetPriorityGrouping [3/4]

#define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping

Definition at line 1960 of file core_armv8mml.h.

## ◆ NVIC_SetPriorityGrouping [4/4]

#define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping

Definition at line 2117 of file core_armv81mml.h.

## ◆ NVIC_SetVector [1/4]

#define NVIC_SetVector __NVIC_SetVector

Definition at line 1205 of file core_armv8mbl.h.

## ◆ NVIC_SetVector [2/4]

#define NVIC_SetVector __NVIC_SetVector

Definition at line 1843 of file core_cm7.h.

## ◆ NVIC_SetVector [3/4]

#define NVIC_SetVector __NVIC_SetVector

Definition at line 1980 of file core_armv8mml.h.

## ◆ NVIC_SetVector [4/4]

#define NVIC_SetVector __NVIC_SetVector

Definition at line 2137 of file core_armv81mml.h.

## ◆ NVIC_SystemReset [1/4]

#define NVIC_SystemReset __NVIC_SystemReset

Definition at line 1196 of file core_armv8mbl.h.

## ◆ NVIC_SystemReset [2/4]

#define NVIC_SystemReset __NVIC_SystemReset

Definition at line 1834 of file core_cm7.h.

## ◆ NVIC_SystemReset [3/4]

#define NVIC_SystemReset __NVIC_SystemReset

Definition at line 1971 of file core_armv8mml.h.

## ◆ NVIC_SystemReset [4/4]

#define NVIC_SystemReset __NVIC_SystemReset

Definition at line 2128 of file core_armv81mml.h.

## ◆ NVIC_USER_IRQ_OFFSET [1/4]

#define NVIC_USER_IRQ_OFFSET 16

Definition at line 1209 of file core_armv8mbl.h.

## ◆ NVIC_USER_IRQ_OFFSET [2/4]

#define NVIC_USER_IRQ_OFFSET 16

Definition at line 1847 of file core_cm7.h.

## ◆ NVIC_USER_IRQ_OFFSET [3/4]

#define NVIC_USER_IRQ_OFFSET 16

Definition at line 1984 of file core_armv8mml.h.

## ◆ NVIC_USER_IRQ_OFFSET [4/4]

#define NVIC_USER_IRQ_OFFSET 16

Definition at line 2141 of file core_armv81mml.h.

## Function Documentation

## ◆ __NVIC_ClearPendingIRQ()

__STATIC_INLINE void __NVIC_ClearPendingIRQ | ( | IRQn_Type | IRQn | ) |

Clear Pending Interrupt.

Clears the pending bit of a device specific interrupt in the NVIC pending register.

Parameters

  [in] | IRQn | Device specific interrupt number.

Note
  IRQn must not be negative.

Definition at line 2274 of file core_armv81mml.h.

## ◆ __NVIC_DisableIRQ()

__STATIC_INLINE void __NVIC_DisableIRQ | ( | IRQn_Type | IRQn | ) |

Disable Interrupt.

Disables a device specific interrupt in the NVIC interrupt controller.

Parameters

  [in] | IRQn | Device specific interrupt number.

Note
  IRQn must not be negative.

Definition at line 2221 of file core_armv81mml.h.

## ◆ __NVIC_EnableIRQ()

__STATIC_INLINE void __NVIC_EnableIRQ | ( | IRQn_Type | IRQn | ) |

Enable Interrupt.

Enables a device specific interrupt in the NVIC interrupt controller.

Parameters

  [in] | IRQn | Device specific interrupt number.

Note
  IRQn must not be negative.

Definition at line 2185 of file core_armv81mml.h.

## ◆ __NVIC_GetActive()

__STATIC_INLINE uint32_t __NVIC_GetActive | ( | IRQn_Type | IRQn | ) |

Get Active Interrupt.

Reads the active register in the NVIC and returns the active bit for the device specific interrupt.

Parameters

  [in] | IRQn | Device specific interrupt number.

Returns
  0 Interrupt status is not active.
  1 Interrupt status is active.

Note
  IRQn must not be negative.

Definition at line 2291 of file core_armv81mml.h.

## ◆ __NVIC_GetEnableIRQ()

__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ | ( | IRQn_Type | IRQn | ) |

Get Interrupt Enable status.

Returns a device specific interrupt enable status from the NVIC interrupt controller.

Parameters

  [in] | IRQn | Device specific interrupt number.

Returns
  0 Interrupt is not enabled.
  1 Interrupt is enabled.

Note
  IRQn must not be negative.

Definition at line 2202 of file core_armv81mml.h.

## ◆ __NVIC_GetPendingIRQ()

__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ | ( | IRQn_Type | IRQn | ) |

Get Pending Interrupt.

Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt.

Parameters

  [in] | IRQn | Device specific interrupt number.

Returns
  0 Interrupt status is not pending.
  1 Interrupt status is pending.

Note
  IRQn must not be negative.

Definition at line 2240 of file core_armv81mml.h.

## ◆ __NVIC_GetPriority()

__STATIC_INLINE uint32_t __NVIC_GetPriority | ( | IRQn_Type | IRQn | ) |

Get Interrupt Priority.

Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception.

Parameters

  [in] | IRQn | Interrupt number.

Returns
  Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller.

Definition at line 2402 of file core_armv81mml.h.

## ◆ __NVIC_GetPriorityGrouping()

__STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping | ( | void |  | ) |

Get Priority Grouping.

Reads the priority grouping field from the NVIC Interrupt Controller.

Returns
  Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).

Definition at line 2173 of file core_armv81mml.h.

## ◆ __NVIC_GetVector()

__STATIC_INLINE uint32_t __NVIC_GetVector | ( | IRQn_Type | IRQn | ) |

Get Interrupt Vector.

Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception.

Parameters

  [in] | IRQn | Interrupt number.

Returns
  Address of interrupt handler function

Definition at line 2492 of file core_armv81mml.h.

## ◆ __NVIC_SetPendingIRQ()

__STATIC_INLINE void __NVIC_SetPendingIRQ | ( | IRQn_Type | IRQn | ) |

Set Pending Interrupt.

Sets the pending bit of a device specific interrupt in the NVIC pending register.

Parameters

  [in] | IRQn | Device specific interrupt number.

Note
  IRQn must not be negative.

Definition at line 2259 of file core_armv81mml.h.

## ◆ __NVIC_SetPriority()

__STATIC_INLINE void __NVIC_SetPriority | ( | IRQn_Type | IRQn,
|  | uint32_t | priority
| ) |  |

Set Interrupt Priority.

Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception.

Parameters

  [in] | IRQn | Interrupt number.
  [in] | priority | Priority to set.

Note
  The priority cannot be set for every processor exception.

Definition at line 2380 of file core_armv81mml.h.

## ◆ __NVIC_SetPriorityGrouping()

__STATIC_INLINE void __NVIC_SetPriorityGrouping | ( | uint32_t | PriorityGroup | ) |

Set Priority Grouping.

Sets the priority grouping field using the required unlock sequence. The parameter PriorityGroup is assigned to the field SCB->AIRCR [10:8] PRIGROUP field. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.

Parameters

  [in] | PriorityGroup | Priority grouping field.

Definition at line 2154 of file core_armv81mml.h.

## ◆ __NVIC_SetVector()

__STATIC_INLINE void __NVIC_SetVector | ( | IRQn_Type | IRQn,
|  | uint32_t | vector
| ) |  |

Set Interrupt Vector.

Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before.

Parameters

  [in] | IRQn | Interrupt number
  [in] | vector | Address of interrupt handler function

Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. If VTOR is not present address 0 must be mapped to SRAM.

Parameters

  [in] | IRQn | Interrupt number
  [in] | vector | Address of interrupt handler function

Definition at line 2477 of file core_armv81mml.h.

## ◆ __NVIC_SystemReset()

__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset | ( | void |  | ) |

System Reset.

Initiates a system reset request to reset the MCU.

Definition at line 2503 of file core_armv81mml.h.

## ◆ ITM_CheckChar()

__STATIC_INLINE int32_t ITM_CheckChar | ( | void |  | ) |

ITM Check Character.

Checks whether a character is pending for reading in the variable ITM_RxBuffer.

Returns
  0 No character available.
  1 Character available.

Definition at line 2941 of file core_armv81mml.h.

## ◆ ITM_ReceiveChar()

__STATIC_INLINE int32_t ITM_ReceiveChar | ( | void |  | ) |

ITM Receive Character.

Inputs a character via the external variable ITM_RxBuffer.

Returns
  Received character.
  -1 No character pending.

Definition at line 2921 of file core_armv81mml.h.

## ◆ ITM_SendChar()

__STATIC_INLINE uint32_t ITM_SendChar | ( | uint32_t | ch | ) |

ITM Send Character.

Transmits a character via the ITM channel 0, and

- Just returns when no debugger is connected that has booked the output.
- Is blocking when a debugger is connected, but the previous character sent has not been transmitted.
  Parameters

    [in] | ch | Character to transmit.

  Returns
    Character to transmit.

Definition at line 2900 of file core_armv81mml.h.

## ◆ NVIC_DecodePriority()

__STATIC_INLINE void NVIC_DecodePriority | ( | uint32_t | Priority,
|  | uint32_t | PriorityGroup,
|  | uint32_t *const | pPreemptPriority,
|  | uint32_t *const | pSubPriority
| ) |  |

Decode Priority.

Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set.

Parameters

  [in] | Priority | Priority value, which can be retrieved with the function NVIC_GetPriority().
  [in] | PriorityGroup | Used priority group.
  [out] | pPreemptPriority | Preemptive priority value (starting from 0).
  [out] | pSubPriority | Subpriority value (starting from 0).

Definition at line 2454 of file core_armv81mml.h.

## ◆ NVIC_EncodePriority()

__STATIC_INLINE uint32_t NVIC_EncodePriority | ( | uint32_t | PriorityGroup,
|  | uint32_t | PreemptPriority,
|  | uint32_t | SubPriority
| ) |  |

Encode Priority.

Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.

Parameters

  [in] | PriorityGroup | Used priority group.
  [in] | PreemptPriority | Preemptive priority value (starting from 0).
  [in] | SubPriority | Subpriority value (starting from 0).

Returns
  Encoded priority. Value can be used in the function NVIC_SetPriority().

Definition at line 2427 of file core_armv81mml.h.

## ◆ SCB_GetFPUType()

__STATIC_INLINE uint32_t SCB_GetFPUType | ( | void |  | ) |

get FPU type

returns the FPU type

Returns
  - 0: No FPU
  - 1: Single precision FPU
  - 2: Double + Single precision FPU

Definition at line 2746 of file core_armv81mml.h.