1 /*
2  * Copyright (c) 2020 - 2021 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/init.h>
8 
9 #include "nrf_802154.h"
10 #include "nrf_802154_serialization.h"
11 
serialization_init(void)12 static int serialization_init(void)
13 {
14 	/* On NET core we don't use Zephyr's shim layer so we have to call inits manually */
15 	nrf_802154_init();
16 
17 	nrf_802154_serialization_init();
18 
19 	return 0;
20 }
21 
22 BUILD_ASSERT(CONFIG_NRF_802154_SER_RADIO_INIT_PRIO > CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
23 	     "CONFIG_NRF_802154_SER_RADIO_INIT_PRIO must be higher than CONFIG_KERNEL_INIT_PRIORITY_DEVICE");
24 SYS_INIT(serialization_init, POST_KERNEL, CONFIG_NRF_802154_SER_RADIO_INIT_PRIO);
25