File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 30
30
#include < pico/mutex.h>
31
31
#include < sys/lock.h>
32
32
33
- #if !defined(ARDUINO_RASPBERRY_PI_PICO_W)
34
33
extern void ethernet_arch_lwip_begin () __attribute__((weak));
35
34
extern void ethernet_arch_lwip_end () __attribute__((weak));
36
35
37
- auto_init_recursive_mutex (__lwipMutex); // Only for non-PicoW case
38
- #endif
36
+ auto_init_recursive_mutex (__lwipMutex); // Only for case with no Ethernet or PicoW, but still doing LWIP (PPP?)
39
37
40
38
class LWIPMutex {
41
39
public:
@@ -45,13 +43,12 @@ class LWIPMutex {
45
43
cyw43_arch_lwip_begin ();
46
44
return ;
47
45
}
48
- #else
46
+ #endif
49
47
if (ethernet_arch_lwip_begin) {
50
48
ethernet_arch_lwip_begin ();
51
49
} else {
52
50
recursive_mutex_enter_blocking (&__lwipMutex);
53
51
}
54
- #endif
55
52
}
56
53
57
54
~LWIPMutex () {
@@ -60,13 +57,12 @@ class LWIPMutex {
60
57
cyw43_arch_lwip_end ();
61
58
return ;
62
59
}
63
- #else
60
+ #endif
64
61
if (ethernet_arch_lwip_end) {
65
62
ethernet_arch_lwip_end ();
66
63
} else {
67
64
recursive_mutex_exit (&__lwipMutex);
68
65
}
69
- #endif
70
66
}
71
67
};
72
68
You can’t perform that action at this time.
0 commit comments