File tree 8 files changed +19
-19
lines changed
8 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,6 @@ uint32_t trng_random_u32(void);
134
134
#define MICROPY_PY_HASHLIB_SHA1 (MICROPY_PY_SSL)
135
135
// #define MICROPY_PY_CRYPTOLIB (MICROPY_PY_SSL)
136
136
137
- // Prevent the "LWIP task" from running.
138
- #define MICROPY_PY_LWIP_ENTER MICROPY_PY_PENDSV_ENTER
139
- #define MICROPY_PY_LWIP_REENTER MICROPY_PY_PENDSV_REENTER
140
- #define MICROPY_PY_LWIP_EXIT MICROPY_PY_PENDSV_EXIT
141
-
142
137
#ifndef MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE
143
138
#define MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE (1)
144
139
#endif
Original file line number Diff line number Diff line change 45
45
#define MICROPY_PY_PENDSV_REENTER atomic_state = raise_irq_pri(IRQ_PRI_PENDSV);
46
46
#define MICROPY_PY_PENDSV_EXIT restore_irq_pri(atomic_state);
47
47
48
+ // Prevent the "lwIP task" from running.
49
+ #define MICROPY_PY_LWIP_ENTER MICROPY_PY_PENDSV_ENTER
50
+ #define MICROPY_PY_LWIP_REENTER MICROPY_PY_PENDSV_REENTER
51
+ #define MICROPY_PY_LWIP_EXIT MICROPY_PY_PENDSV_EXIT
52
+
48
53
#define MICROPY_HW_USB_CDC_TX_TIMEOUT (500)
49
54
50
55
#define MP_HAL_PIN_FMT "%q"
Original file line number Diff line number Diff line change @@ -292,10 +292,6 @@ typedef long mp_off_t;
292
292
#define MICROPY_THREAD_YIELD ()
293
293
#endif
294
294
295
- #define MICROPY_PY_LWIP_ENTER
296
- #define MICROPY_PY_LWIP_REENTER
297
- #define MICROPY_PY_LWIP_EXIT
298
-
299
295
#ifndef MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE
300
296
#define MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE (1)
301
297
#endif
Original file line number Diff line number Diff line change 35
35
#define MICROPY_PY_PENDSV_ENTER uint32_t atomic_state = raise_irq_pri(IRQ_PRI_PENDSV)
36
36
#define MICROPY_PY_PENDSV_EXIT restore_irq_pri(atomic_state)
37
37
38
+ #define MICROPY_PY_LWIP_ENTER
39
+ #define MICROPY_PY_LWIP_REENTER
40
+ #define MICROPY_PY_LWIP_EXIT
41
+
38
42
#define MICROPY_HW_USB_CDC_TX_TIMEOUT (500)
39
43
40
44
extern const unsigned char mp_hal_status_to_errno_table [4 ];
Original file line number Diff line number Diff line change @@ -245,11 +245,6 @@ extern const struct _mp_obj_type_t mod_network_nic_type_wiznet5k;
245
245
#define MICROPY_HW_BOOTSEL_DELAY_US 8
246
246
#endif
247
247
248
- // Prevent the "lwIP task" from running when unsafe to do so.
249
- #define MICROPY_PY_LWIP_ENTER lwip_lock_acquire();
250
- #define MICROPY_PY_LWIP_REENTER lwip_lock_acquire();
251
- #define MICROPY_PY_LWIP_EXIT lwip_lock_release();
252
-
253
248
// Port level Wait-for-Event macro
254
249
//
255
250
// Do not use this macro directly, include py/runtime.h and
Original file line number Diff line number Diff line change 43
43
#define MICROPY_PY_PENDSV_ENTER pendsv_suspend()
44
44
#define MICROPY_PY_PENDSV_EXIT pendsv_resume()
45
45
46
+ // Prevent the "lwIP task" from running when unsafe to do so.
47
+ #define MICROPY_PY_LWIP_ENTER lwip_lock_acquire();
48
+ #define MICROPY_PY_LWIP_REENTER lwip_lock_acquire();
49
+ #define MICROPY_PY_LWIP_EXIT lwip_lock_release();
50
+
46
51
extern int mp_interrupt_char ;
47
52
extern ringbuf_t stdin_ringbuf ;
48
53
Original file line number Diff line number Diff line change @@ -268,11 +268,6 @@ typedef long mp_off_t;
268
268
// Configuration for shared/runtime/softtimer.c.
269
269
#define MICROPY_SOFT_TIMER_TICKS_MS uwTick
270
270
271
- // Prevent the "LWIP task" from running.
272
- #define MICROPY_PY_LWIP_ENTER MICROPY_PY_PENDSV_ENTER
273
- #define MICROPY_PY_LWIP_REENTER MICROPY_PY_PENDSV_REENTER
274
- #define MICROPY_PY_LWIP_EXIT MICROPY_PY_PENDSV_EXIT
275
-
276
271
#ifndef MICROPY_PY_NETWORK_HOSTNAME_DEFAULT
277
272
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "mpy-stm32"
278
273
#endif
Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ void mp_hal_set_interrupt_char(int c); // -1 to disable
53
53
#define MICROPY_PY_PENDSV_REENTER atomic_state = raise_irq_pri(IRQ_PRI_PENDSV);
54
54
#define MICROPY_PY_PENDSV_EXIT restore_irq_pri(atomic_state);
55
55
56
+ // Prevent the "lwIP task" from running.
57
+ #define MICROPY_PY_LWIP_ENTER MICROPY_PY_PENDSV_ENTER
58
+ #define MICROPY_PY_LWIP_REENTER MICROPY_PY_PENDSV_REENTER
59
+ #define MICROPY_PY_LWIP_EXIT MICROPY_PY_PENDSV_EXIT
60
+
56
61
// Timing functions.
57
62
58
63
#if __CORTEX_M == 0
You can’t perform that action at this time.
0 commit comments