Skip to content

Commit

Permalink
[bootloader] app_util_critical_region_enter/exit for Gen 3 platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
avtolstoy committed Jul 2, 2020
1 parent 7255036 commit 0ac89e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bootloader/src/nRF52840/hal_irq_flag.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ void HAL_enable_irq(int is) {
uint8_t st = (uint8_t)is;
sd_nvic_critical_region_exit(st);
}

void app_util_critical_region_enter(uint8_t* nested) {
(void)sd_nvic_critical_region_enter(nested);
}

void app_util_critical_region_exit(uint8_t nested) {
(void)sd_nvic_critical_region_exit(nested);
}

0 comments on commit 0ac89e1

Please sign in to comment.