circuitpython/ports
Damien George 53cb073571 esp32,esp8266: Change network.WLAN from a function to a type.
When the network module was first introduced in the esp8266 port in
ee3fec3167 there was only one interface (STA)
and, to save flash, the WLAN object was aliased to the network module,
which had just static methods for WLAN operations.  This was subsequently
changed in 9e8396accb when the AP interface
was introduced, and the WLAN object became a true class.

But, network.WLAN remained a function that returned either the STA or AP
object and was never upgraded to the type itself.  This scheme was then
copied over to the esp32 port when it was first introduced.

This commit changes network.WLAN from a function to a reference to the WLAN
type.  This makes it consistent with other ports and network objects, and
allows accessing constants of network.WLAN without creating an instance.

Signed-off-by: Damien George <damien@micropython.org>
2023-05-18 14:52:28 +10:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 all: Fix cases of Python variable assigned but never used. 2023-05-02 16:36:05 +10:00
embed embed: Fix arguments to mp_raw_code_load_mem. 2023-03-13 12:35:12 +11:00
esp32 esp32,esp8266: Change network.WLAN from a function to a type. 2023-05-18 14:52:28 +10:00
esp8266 esp32,esp8266: Change network.WLAN from a function to a type. 2023-05-18 14:52:28 +10:00
mimxrt mimxrt/machine_pin: Perform full configuration in machine_pin_set_mode. 2023-05-09 16:15:05 +10:00
minimal all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
nrf extmod/machine_pwm: Remove PWM_INIT and PWM_DUTY_U16_NS config options. 2023-05-04 13:19:19 +10:00
pic16bit ports: Implement simple write polling for stdout. 2023-03-23 13:51:17 +11:00
powerpc all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
qemu-arm shared/runtime/gchelper: Drop cpu directive from ARM asm helpers. 2023-01-28 15:51:38 +11:00
renesas-ra renesas-ra: Add a macro definition to avoid compile error of FSP v4.4.0. 2023-05-11 16:18:39 +10:00
rp2 rp2/mphalport: Only use CYW43 MAC for WLAN0 interface. 2023-05-18 13:06:06 +10:00
samd extmod/machine_pwm: Remove PWM_INIT and PWM_DUTY_U16_NS config options. 2023-05-04 13:19:19 +10:00
stm32 stm32/boards/ARDUINO_PORTENTA_H7: Enable FDCAN. 2023-05-09 13:25:03 +10:00
teensy all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
unix unix/Makefile: Allow variants to add QSTR_DEFS. 2023-05-11 14:34:01 +10:00
webassembly webassembly/modutime: Use extmod version of time module. 2023-04-27 15:11:52 +10:00
windows windows/Makefile: Allow variants to add QSTR_DEFS. 2023-05-11 14:34:15 +10:00
zephyr zephyr/modutime: Use extmod version of time module. 2023-04-27 15:11:52 +10:00