kopia lustrzana https://github.com/micropython/micropython
7753045a8f
Other constants such as `machine.Pin.OUT` are defined on the class that uses them, rather than at the module level. This commit makes that the case for WLAN network interfaces, adding IF_xxx and SEC_xxx constants. The SEC_xxx constants are named as such to match the `security` keyword that they are used with. And the IF_xxx constants have IF as a prefix so they are grouped together as names. This scheme of putting constants on the class means that only the available features (eg security configurations) are made available as constants. It also means that different network interfaces (eg WLAN vs LAN) can keep their own specific constants within their class, such as PHY_xxx for LAN. Signed-off-by: iabdalkader <i.abdalkader@gmail.com> |
||
---|---|---|
.. | ||
asyncio | ||
axtls-include | ||
berkeley-db | ||
btstack | ||
libmetal | ||
lwip-include | ||
mbedtls | ||
nimble | ||
extmod.cmake | ||
extmod.mk | ||
font_petme128_8x8.h | ||
machine_adc.c | ||
machine_adc_block.c | ||
machine_bitstream.c | ||
machine_i2c.c | ||
machine_i2s.c | ||
machine_mem.c | ||
machine_pinbase.c | ||
machine_pulse.c | ||
machine_pwm.c | ||
machine_signal.c | ||
machine_spi.c | ||
machine_timer.c | ||
machine_uart.c | ||
machine_usb_device.c | ||
machine_wdt.c | ||
misc.h | ||
modasyncio.c | ||
modbinascii.c | ||
modbluetooth.c | ||
modbluetooth.h | ||
modbtree.c | ||
modcryptolib.c | ||
moddeflate.c | ||
modframebuf.c | ||
modhashlib.c | ||
modheapq.c | ||
modjson.c | ||
modlwip.c | ||
modmachine.c | ||
modmachine.h | ||
modnetwork.c | ||
modnetwork.h | ||
modonewire.c | ||
modopenamp.c | ||
modopenamp.h | ||
modopenamp_remoteproc.c | ||
modopenamp_remoteproc.h | ||
modopenamp_remoteproc_store.c | ||
modos.c | ||
modplatform.c | ||
modplatform.h | ||
modrandom.c | ||
modre.c | ||
modselect.c | ||
modsocket.c | ||
modtime.c | ||
modtime.h | ||
modtls_axtls.c | ||
modtls_mbedtls.c | ||
moductypes.c | ||
modvfs.c | ||
modwebrepl.c | ||
modwebsocket.c | ||
modwebsocket.h | ||
mpbthci.c | ||
mpbthci.h | ||
network_cyw43.c | ||
network_cyw43.h | ||
network_esp_hosted.c | ||
network_lwip.c | ||
network_ninaw10.c | ||
network_wiznet5k.c | ||
os_dupterm.c | ||
vfs.c | ||
vfs.h | ||
vfs_blockdev.c | ||
vfs_fat.c | ||
vfs_fat.h | ||
vfs_fat_diskio.c | ||
vfs_fat_file.c | ||
vfs_lfs.c | ||
vfs_lfs.h | ||
vfs_lfsx.c | ||
vfs_lfsx_file.c | ||
vfs_posix.c | ||
vfs_posix.h | ||
vfs_posix_file.c | ||
vfs_reader.c | ||
virtpin.c | ||
virtpin.h |