Macros
HAL Exported Constants
Peripheral Driver » HAL Driver » HAL » Defines

## Macros
#define | GLOBAL_EXCEPTION_DISABLE()
| Disable interrupts globally in the system(apart from the NMI). This macro must be used in conjunction with the GLOBAL_EXCEPTION_ENABLE macro since this last one will close the brace that the current macro opens. This means that both macros must be located at the same scope level. More...
#define | GLOBAL_EXCEPTION_ENABLE()
| Restore interrupts from the previous global disable(apart from the NMI). More...
#define | GLOBAL_INT_DISABLE()
| Disable interrupts globally in the system. This macro must be used in conjunction with the GLOBAL_INT_RESTORE macro. More...
#define | GLOBAL_INT_RESTORE()
| Restore global interrupt. More...
#define | LOCAL_INT_DISABLE(IRQn_Type)
| Disable external interrupts with a priority lower than IRQn_Type in the system. This macro must be used in conjunction with the LOCAL_INT_RESTORE macro since this last one will close the brace that the current macro opens. This means that both macros must be located at the same scope level. More...
#define | LOCAL_INT_RESTORE()
| Restore external interrupts(apart from the BLE) from the previous disable. More...
#define | CHECK_IS_ON_FPGA() (MCU_SUB->FPGA_CTRL & MCU_SUB_FPGA_CTRL_REG_EXIST)
| Check if the program is running on the FPGA platform. More...
#define | SYSTICK_RELOAD_VALUE (SysTick->LOAD)
#define | SYSTICK_CURRENT_VALUE (SysTick->VAL)

## Detailed Description

## Macro Definition Documentation

## ◆ CHECK_IS_ON_FPGA

#define CHECK_IS_ON_FPGA | ( |  | ) | (MCU_SUB->FPGA_CTRL & MCU_SUB_FPGA_CTRL_REG_EXIST)

Check if the program is running on the FPGA platform.

Definition at line 132 of file gr55xx_hal.h.

## ◆ GLOBAL_EXCEPTION_DISABLE

#define GLOBAL_EXCEPTION_DISABLE | ( |  | ) |

Value:
do { \
uint32_t __l_irq_rest = __get_PRIMASK(); \
__set_PRIMASK(1)

Disable interrupts globally in the system(apart from the NMI). This macro must be used in conjunction with the GLOBAL_EXCEPTION_ENABLE macro since this last one will close the brace that the current macro opens. This means that both macros must be located at the same scope level.

Definition at line 81 of file gr55xx_hal.h.

## ◆ GLOBAL_EXCEPTION_ENABLE

#define GLOBAL_EXCEPTION_ENABLE | ( |  | ) |

Value:
__set_PRIMASK(__l_irq_rest); \
} while(0)

Restore interrupts from the previous global disable(apart from the NMI).

See also
  GLOBAL_EXCEPTION_ENABLE

Definition at line 90 of file gr55xx_hal.h.

## ◆ GLOBAL_INT_DISABLE

#define GLOBAL_INT_DISABLE | ( |  | ) |

Value:
do { \
extern uint32_t global_int_disable(void); \
uint32_t __res_mask = global_int_disable()

Disable interrupts globally in the system. This macro must be used in conjunction with the GLOBAL_INT_RESTORE macro.

Definition at line 97 of file gr55xx_hal.h.

## ◆ GLOBAL_INT_RESTORE

#define GLOBAL_INT_RESTORE | ( |  | ) |

Value:
extern void global_int_enable(uint32_t mask); \
global_int_enable(__res_mask); \
} while(0)

Restore global interrupt.

See also
  GLOBAL_INT_RESTORE

Definition at line 105 of file gr55xx_hal.h.

## ◆ LOCAL_INT_DISABLE

#define LOCAL_INT_DISABLE | ( |  | IRQn_Type | ) |

Value:
do { \
uint32_t __l_irq_rest = __get_BASEPRI(); \
__set_BASEPRI(NVIC_GetPriority(IRQn_Type) + \
(1 << (NVIC_GetPriorityGrouping() + 1))); \

Disable external interrupts with a priority lower than IRQn_Type in the system. This macro must be used in conjunction with the LOCAL_INT_RESTORE macro since this last one will close the brace that the current macro opens. This means that both macros must be located at the same scope level.

Definition at line 116 of file gr55xx_hal.h.

## ◆ LOCAL_INT_RESTORE

#define LOCAL_INT_RESTORE | ( |  | ) |

Value:
__set_BASEPRI(__l_irq_rest); \
} while(0)

Restore external interrupts(apart from the BLE) from the previous disable.

See also
  EXP_BLE_INT_RESTORE

Definition at line 125 of file gr55xx_hal.h.

## ◆ SYSTICK_CURRENT_VALUE

#define SYSTICK_CURRENT_VALUE (SysTick->VAL)

SysTick Current value.

Definition at line 134 of file gr55xx_hal.h.

## ◆ SYSTICK_RELOAD_VALUE

#define SYSTICK_RELOAD_VALUE (SysTick->LOAD)

SysTick Reload value.

Definition at line 133 of file gr55xx_hal.h.