File tree 3 files changed +21
-4
lines changed
3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,12 @@ class PPP -- create network connections over serial PPP
5
5
=======================================================
6
6
7
7
This class allows you to create a network connection over a serial port using
8
- the PPP protocol. It is only available on selected ports and boards.
8
+ the PPP protocol.
9
+
10
+ .. note :: Currently only the esp32 port has PPP support enabled in the default
11
+ firmware build. PPP support can be enabled in custom builds of the
12
+ stm32 and rp2 ports by enabling networking support and setting
13
+ ``MICROPY_PY_NETWORK_PPP_LWIP `` to 1.
9
14
10
15
Example usage::
11
16
Original file line number Diff line number Diff line change 212
212
#ifndef MICROPY_PY_WEBREPL
213
213
#define MICROPY_PY_WEBREPL (1)
214
214
#endif
215
+
216
+ #ifndef MICROPY_PY_NETWORK_PPP_LWIP
217
+ #define MICROPY_PY_NETWORK_PPP_LWIP (0)
218
+ #endif
215
219
#endif
216
220
217
221
#if MICROPY_PY_NETWORK_CYW43
Original file line number Diff line number Diff line change 146
146
#define MICROPY_HW_SOFTSPI_MAX_BAUDRATE (HAL_RCC_GetSysClockFreq() / 48)
147
147
#define MICROPY_PY_WEBSOCKET (MICROPY_PY_LWIP)
148
148
#define MICROPY_PY_WEBREPL (MICROPY_PY_LWIP)
149
- #ifndef MICROPY_PY_SOCKET
150
- #define MICROPY_PY_SOCKET (1)
151
- #endif
152
149
#ifndef MICROPY_PY_NETWORK
153
150
#define MICROPY_PY_NETWORK (1)
154
151
#endif
155
152
#ifndef MICROPY_PY_ONEWIRE
156
153
#define MICROPY_PY_ONEWIRE (1)
157
154
#endif
158
155
156
+ // optional network features
157
+ #if MICROPY_PY_NETWORK
158
+ #ifndef MICROPY_PY_SOCKET
159
+ #define MICROPY_PY_SOCKET (1)
160
+ #endif
161
+
162
+ #ifndef MICROPY_PY_NETWORK_PPP_LWIP
163
+ #define MICROPY_PY_NETWORK_PPP_LWIP (0)
164
+ #endif
165
+ #endif
166
+
159
167
// fatfs configuration used in ffconf.h
160
168
#define MICROPY_FATFS_ENABLE_LFN (2)
161
169
#define MICROPY_FATFS_LFN_CODE_PAGE 437 /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */
You can’t perform that action at this time.
0 commit comments