1 /* 2 * Copyright (c) 2021 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include "nrf_802154_serialization_crit_sect.h" 8 9 #ifndef TEST 10 #include <zephyr/irq.h> 11 #endif 12 nrf_802154_serialization_crit_sect_enter(uint32_t * p_critical_section)13void nrf_802154_serialization_crit_sect_enter(uint32_t *p_critical_section) 14 { 15 #ifndef TEST 16 *p_critical_section = irq_lock(); 17 #else 18 (void)p_critical_section; 19 #endif 20 } 21 nrf_802154_serialization_crit_sect_exit(uint32_t critical_section)22void nrf_802154_serialization_crit_sect_exit(uint32_t critical_section) 23 { 24 #ifndef TEST 25 irq_unlock(critical_section); 26 #else 27 (void)critical_section; 28 #endif 29 } 30