update to Zephyr 4.2.0

This commit is contained in:
Sergio R. Caprile
2025-07-28 11:25:02 -03:00
parent d5eeed48eb
commit b74590a4a5
5 changed files with 30 additions and 5 deletions
+6 -1
View File
@@ -10,7 +10,12 @@
// semaphore until this event handler releases it when the network is ready
K_SEM_DEFINE(run, 0, 1);
static void zeh(struct net_mgmt_event_callback *cb, uint32_t mgmt_event,
static void zeh(struct net_mgmt_event_callback *cb,
#if ZEPHYR_VERSION_CODE < 0x40000
uint32_t mgmt_event,
#else
uint64_t mgmt_event,
#endif
struct net_if *iface) {
if (mgmt_event == NET_EVENT_L4_CONNECTED) k_sem_give(&run);
}
+6 -1
View File
@@ -92,7 +92,12 @@ static void timer_fn(void *arg) {
// semaphore until this event handler releases it when the network is ready
K_SEM_DEFINE(run, 0, 1);
static void zeh(struct net_mgmt_event_callback *cb, uint32_t mgmt_event,
static void zeh(struct net_mgmt_event_callback *cb,
#if ZEPHYR_VERSION_CODE < 0x40000
uint32_t mgmt_event,
#else
uint64_t mgmt_event,
#endif
struct net_if *iface) {
if (mgmt_event == NET_EVENT_L4_CONNECTED) k_sem_give(&run);
}
+6 -1
View File
@@ -72,7 +72,12 @@ static void timer_fn(void *arg) {
// semaphore until this event handler releases it when the network is ready
K_SEM_DEFINE(run, 0, 1);
static void zeh(struct net_mgmt_event_callback *cb, uint32_t mgmt_event,
static void zeh(struct net_mgmt_event_callback *cb,
#if ZEPHYR_VERSION_CODE < 0x40000
uint32_t mgmt_event,
#else
uint64_t mgmt_event,
#endif
struct net_if *iface) {
if (mgmt_event == NET_EVENT_L4_CONNECTED) k_sem_give(&run);
}
+6 -1
View File
@@ -99,7 +99,12 @@ static void timer_fn(void *arg) {
// semaphore until this event handler releases it when the network is ready
K_SEM_DEFINE(run, 0, 1);
static void zeh(struct net_mgmt_event_callback *cb, uint32_t mgmt_event,
static void zeh(struct net_mgmt_event_callback *cb,
#if ZEPHYR_VERSION_CODE < 0x40000
uint32_t mgmt_event,
#else
uint64_t mgmt_event,
#endif
struct net_if *iface) {
if (mgmt_event == NET_EVENT_L4_CONNECTED) k_sem_give(&run);
}
+6 -1
View File
@@ -68,7 +68,12 @@ static void timer_fn(void *arg) {
// semaphore until this event handler releases it when the network is ready
K_SEM_DEFINE(run, 0, 1);
static void zeh(struct net_mgmt_event_callback *cb, uint32_t mgmt_event,
static void zeh(struct net_mgmt_event_callback *cb,
#if ZEPHYR_VERSION_CODE < 0x40000
uint32_t mgmt_event,
#else
uint64_t mgmt_event,
#endif
struct net_if *iface) {
if (mgmt_event == NET_EVENT_L4_CONNECTED) k_sem_give(&run);
}