mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
update to Zephyr 4.2.0
This commit is contained in:
parent
d5eeed48eb
commit
b74590a4a5
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user