Macros
CORTEX Private Macros
Peripheral Driver » HAL Driver » CORTEX » Defines

## Macros
#define | IS_NVIC_PRIORITY_GROUP(__GROUP__)
| Check if NVIC priority group is valid. More...
#define | IS_NVIC_PREEMPTION_PRIORITY(__PRIORITY__) ((__PRIORITY__) < 0x80U)
| Check if NVIC priority group is valid. More...
#define | IS_NVIC_SUB_PRIORITY(__PRIORITY__) ((__PRIORITY__) <= 0xFFU)
| Check if NVIC sub priority is valid. More...
#define | IS_NVIC_DEVICE_IRQ(__IRQ__) ((__IRQ__) >= 0x00)
| Check if NVIC deivce IRQ is valid. More...
#define | IS_SYSTICK_CLK_SOURCE(__SOURCE__)
| Check if SYSTICK clock source is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_NVIC_DEVICE_IRQ

#define IS_NVIC_DEVICE_IRQ | ( |  | __IRQ__ | ) | ((__IRQ__) >= 0x00)

Check if NVIC deivce IRQ is valid.

Parameters

  __IRQ__ | NVIC device IRQ.

Return values

  SET | (__IRQ__ is valid) or RESET (__IRQ__ is invalid)

Definition at line 308 of file gr533x_hal_cortex.h.

## ◆ IS_NVIC_PREEMPTION_PRIORITY

#define IS_NVIC_PREEMPTION_PRIORITY | ( |  | __PRIORITY__ | ) | ((__PRIORITY__) < 0x80U)

Check if NVIC priority group is valid.

Parameters

  __PRIORITY__ | NVIC priority group.

Return values

  SET | (__PRIORITY__ is valid) or RESET (__PRIORITY__ is invalid)

Definition at line 294 of file gr533x_hal_cortex.h.

## ◆ IS_NVIC_PRIORITY_GROUP

#define IS_NVIC_PRIORITY_GROUP | ( |  | __GROUP__ | ) |

Value:
(((__GROUP__) == NVIC_PRIORITYGROUP_0) || \
((__GROUP__) == NVIC_PRIORITYGROUP_1) || \
((__GROUP__) == NVIC_PRIORITYGROUP_2) || \
((__GROUP__) == NVIC_PRIORITYGROUP_3) || \
((__GROUP__) == NVIC_PRIORITYGROUP_4) || \
((__GROUP__) == NVIC_PRIORITYGROUP_5) || \
((__GROUP__) == NVIC_PRIORITYGROUP_6) || \
((__GROUP__) == NVIC_PRIORITYGROUP_7))

Check if NVIC priority group is valid.

Parameters

  __GROUP__ | NVIC priority group.

Return values

  SET | (__GROUP__ is valid) or RESET (__GROUP__ is invalid)

Definition at line 280 of file gr533x_hal_cortex.h.

## ◆ IS_NVIC_SUB_PRIORITY

#define IS_NVIC_SUB_PRIORITY | ( |  | __PRIORITY__ | ) | ((__PRIORITY__) <= 0xFFU)

Check if NVIC sub priority is valid.

Parameters

  __PRIORITY__ | NVIC sub priority.

Return values

  SET | (__PRIORITY__ is valid) or RESET (__PRIORITY__ is invalid)

Definition at line 301 of file gr533x_hal_cortex.h.

## ◆ IS_SYSTICK_CLK_SOURCE

#define IS_SYSTICK_CLK_SOURCE | ( |  | __SOURCE__ | ) |

Value:
(((__SOURCE__) == SYSTICK_CLKSOURCE_HCLK) || \
((__SOURCE__) == SYSTICK_CLKSOURCE_REFCLK))

Check if SYSTICK clock source is valid.

Parameters

  __SOURCE__ | SYSTICK clock source.

Return values

  SET | (__SOURCE__ is valid) or RESET (__SOURCE__ is invalid)

Definition at line 315 of file gr533x_hal_cortex.h.

NVIC_PRIORITYGROUP_4
#define NVIC_PRIORITYGROUP_4
Definition: gr533x_hal_cortex.h:142
NVIC_PRIORITYGROUP_2
#define NVIC_PRIORITYGROUP_2
Definition: gr533x_hal_cortex.h:138
NVIC_PRIORITYGROUP_6
#define NVIC_PRIORITYGROUP_6
Definition: gr533x_hal_cortex.h:146
NVIC_PRIORITYGROUP_3
#define NVIC_PRIORITYGROUP_3
Definition: gr533x_hal_cortex.h:140
NVIC_PRIORITYGROUP_5
#define NVIC_PRIORITYGROUP_5
Definition: gr533x_hal_cortex.h:144
NVIC_PRIORITYGROUP_0
#define NVIC_PRIORITYGROUP_0
Definition: gr533x_hal_cortex.h:134
NVIC_PRIORITYGROUP_1
#define NVIC_PRIORITYGROUP_1
Definition: gr533x_hal_cortex.h:136
NVIC_PRIORITYGROUP_7
#define NVIC_PRIORITYGROUP_7
Definition: gr533x_hal_cortex.h:148