aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mods/modwlan.c
AgeCommit message (Collapse)Author
2015-05-26cc3200: Clean up exception handling.Daniel Campora
2015-05-24cc3200: Remove NIC abstraction layer.Daniel Campora
That layer is nice, but the CC3200 doesn't need it and getting rid of it saves ~200 bytes, which are more than welcome.
2015-05-24cc3200: Reset the servers and close user sockets on WLAN disconection.Daniel Campora
This is needed to avoid half-open connections.
2015-05-22cc3200: Finally unlock the full wake on WLAN feature set.Daniel Campora
2015-05-20cc3200: Rewrite WLAN.ifconfig(). Add WLAN.info() and WLAN.connections().Daniel Campora
2015-05-17cc3200: Disable WLAN.urn() by default.Daniel Campora
Can be enabled by defining MICROPY_PORT_WLAN_URN=1 in mpconfigport.h.
2015-05-17cc3200: Add optional timeout param to WLAN.connect().Daniel Campora
2015-05-17cc3200: Add Timer module. Supports free running, PWM and capture modes.Daniel Campora
2015-05-04lib: Move some common mod_network_* functions to lib/netutils.Josef Gajdusek
2015-05-03cc3200: WLAN.ifconfig returns an attrtuple instead of a dictionary.Daniel Campora
2015-05-03cc3200: Implement Sleep.wake_reason()Daniel Campora
2015-04-29cc3200: Move wlan_init0() to the boot section.Daniel Campora
This one creates a semaphore, therefore it must be executed only after a hard reset (or when coming out of hibernation).
2015-04-29cc3200: Make WLAN.isconnected() also work in AP mode.Daniel Campora
While in STA mode isconnected() returns True when connected to an AP and the IP has been acquired. In AP mode, WLAN.isconnected() returns True if at least one connected station is present.
2015-04-29cc3200: Make WLAN scan results a list of attrtupple.Daniel Campora
Each result is displayed like this: ssid='MySSID', bssid=b'\xc0J\x00z.\xcc', security=2, channel=None, rssi=-74 The CC3200 doesn't provide channel info, that why is 'None'.
2015-04-25cc3200: Correct MAKE_SOCKADDR and UNPACK_SOCKADDR byte order.Daniel Campora
2015-04-18cc3200: Clean up and reduce use/include of std.h.Damien George
2015-04-16py: Overhaul and simplify printf/pfenv mechanism.Damien George
Previous to this patch the printing mechanism was a bit of a tangled mess. This patch attempts to consolidate printing into one interface. All (non-debug) printing now uses the mp_print* family of functions, mainly mp_printf. All these functions take an mp_print_t structure as their first argument, and this structure defines the printing backend through the "print_strn" function of said structure. Printing from the uPy core can reach the platform-defined print code via two paths: either through mp_sys_stdout_obj (defined pert port) in conjunction with mp_stream_write; or through the mp_plat_print structure which uses the MP_PLAT_PRINT_STRN macro to define how string are printed on the platform. The former is only used when MICROPY_PY_IO is defined. With this new scheme printing is generally more efficient (less layers to go through, less arguments to pass), and, given an mp_print_t* structure, one can call mp_print_str for efficiency instead of mp_printf("%s", ...). Code size is also reduced by around 200 bytes on Thumb2 archs.
2015-04-13cc3200: Add WLAN.config_ip().Daniel Campora
This new method allows to assign an static IP to the device.
2015-03-26cc3200: Minor refactorings on modwlan and pybsleep.Daniel Campora
2015-03-26cc3200: Add callback support to the UART for RX interrupts.Daniel Campora
2015-03-25cc3200: Roll back to the previous telnet and ftp timeouts.Daniel Campora
Unfortunately, these timeouts are the only realiable way (for now), to be able to detect broken connections due to half-open sockets. Such a thing occurs when getting out of the WiFi coverage area or when disconnecting from the AP (sometimes the client doesn't send the disconnect packet).
2015-03-21cc3200: Improve usability and robustness of the servers.danicampora
2015-03-19cc3200: Move server methods from WLAN to the network module.danicampora
2015-03-18cc3200: Add parameter to wlan_stop() for custom timeout values.danicampora
2015-03-16cc3200: Update socket event handler to align with new SDK(1.1.0) API.danicampora
2015-03-16cc3200: Remove double administration of callback objects.danicampora
2015-03-16cc3200: Update HAL to SDK release version 1.1.0.danicampora
2015-03-14cc3200: Rewrite the PRCM RTC functionality methods.danicampora
This allows to use the On-Chip retention registers for both the RTC and to share notification flags between the bootloader and the application. The two flags being shared right now are the "safe boot" request and the WDT reset cause. we still have 2 more bits free for future use.
2015-03-14cc3200: Remove unneeded code from modwlan and optimize startup time.danicampora
These changes also help reduce the hibernate wake-up time to 1s.
2015-03-12cc3200: Allow separate selection of the power mode in Pin callbacks.danicampora
2015-03-12cc3200: Remove WLAN.getmode since it's superseded by WLAN.ifconfig.danicampora
2015-03-12cc3200: Trigger a new network scan when WLAN.scan() is called.danicampora
2015-03-11cc3200: Add power management framework. Add mpcallback class.danicampora
Supports suspend and hibernate modes. Waking is possible throug GPIO and WLAN. The mpcallback class is generic and can be reused by other classes.
2015-02-26cc3200: Move code that disables/enables servers to wlan_sl_enable().danicampora
2015-02-23cc3200: Introduce MICROPY_PORT_HAS_TELNET and MICROPY_PORT_HAS_FTP.danicampora
These definitions help on making modwlan.c usable by other ports with the CC3100.
2015-02-23cc3200: Replace WLAN.get_ip() with WLAN.ifconfig().danicampora
Also change other methods' names to make them consistent.
2015-02-22cc3200: Add simplelink non-os task calls.danicampora
2015-02-22cc3200: Add wlan_urn() thanks to Nadim El-Fata and Bryan Morrissey.danicampora
2015-02-22cc3200: Remove dependencies from FreeRTOS.danicampora
Use the simplelink wrappers instead. This is one step further towards having a single module for the cc3200 and the cc3100.
2015-02-21cc3200: Add support for connecting to WEP secured networks.danicampora
2015-02-21cc3200: Add explicit py/ path-prefix for py includes.Damien George
This is how it should be, so one knows exactly where the includes are coming from.
2015-02-20cc3200: Remove asserts from sl_Stop() and reduce timeout to 250ms.danicampora
2015-02-13stmhal: Make pybstdio usable by other ports, and use it.Damien George
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
2015-02-06cc3200: Add cc3200 port of MicroPython.danicampora
The port currently implements support for GPIO, RTC, ExtInt and the WiFi subsystem. A small file system is available in the serial flash. A bootloader which makes OTA updates possible, is also part of this initial implementation.