Macros | |
#define | CO_MAX(a, b) ((a) > (b) ? (a) : (b)) |
compare if a > b More... | |
#define | BLE_INT_DISABLE() |
Disable BLE_IRQn and BLESLP_IRQn. More... | |
#define | BLE_INT_RESTORE() |
Restore BLE_IRQn and BLESLP_IRQn. More... | |
#define | GLOBAL_INT_DISABLE() |
Disable interrupts globally in the system. This macro must be used in conjunction with the GLOBAL_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 | GLOBAL_INT_RESTORE() |
Restore external interrupts(Exception Type: 16~255) from the previous disable. 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() (AON->FPGA_CTRL & AON_REG_FPGA_CTRL_EXIST) |
Check if the program is running on the FPGA platform. | |
#define | SYSTICK_RELOAD_VALUE (SysTick->LOAD) |
#define | SYSTICK_CURRENT_VALUE (SysTick->VAL) |
#define BLE_INT_DISABLE | ( | ) |
Disable BLE_IRQn and BLESLP_IRQn.
#define BLE_INT_RESTORE | ( | ) |
Restore BLE_IRQn and BLESLP_IRQn.
#define CO_MAX | ( | a, | |
b | |||
) | ((a) > (b) ? (a) : (b)) |
compare if a > b
#define GLOBAL_INT_DISABLE | ( | ) |
Disable interrupts globally in the system. This macro must be used in conjunction with the GLOBAL_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.
#define GLOBAL_INT_RESTORE | ( | ) |
Restore external interrupts(Exception Type: 16~255) from the previous disable.
#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.
#define LOCAL_INT_RESTORE | ( | ) |
Restore external interrupts(apart from the BLE) from the previous disable.
#define SYSTICK_CURRENT_VALUE (SysTick->VAL) |
SysTick Current value.
#define SYSTICK_RELOAD_VALUE (SysTick->LOAD) |
SysTick Reload value.