aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mptask.c
AgeCommit message (Collapse)Author
2015-03-26cc3200: Add callback support to the UART for RX interrupts.Daniel Campora
2015-03-25cc3200: Add GPIO25 to the pins list of the WiPy and the WiPy-SD.Daniel Campora
This allows to properly initialize the system led and add it to the sleep module so that it can be restored when resuming from suspended mode.
2015-03-25cc3200: Keep WLAN enabled during the soft reset.Daniel Campora
2015-03-21cc3200: Reduce soft reset time. WLAN is not reinit, just reenabled.danicampora
2015-03-21cc3200: Add SPI module.danicampora
Only MASTER mode is supported. Transfer width is configurable to 8, 16 or 32 bits.
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-17cc3200: Make peripheral objects static.danicampora
This prevents duplication of objects in the sleep list. Also helps with reducing the code size by ~100 bytes.
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-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-03-11cc3200: Merge ExtInt class into Pin class.danicampora
Also add another method to change the pin's interrupt mode on the fly.
2015-03-11cc3200: Place functions only used while booting in a special section.danicampora
Such functions are never used after MicroPython has started, and they remain in RAM wasting space. Now they are placed in a special section named "boot" which sits just before the heap, allowing us to extend the effective heap area up to the new boot section. Right now, this gives us back ~1K, but in the future, more functions might end up in there as well.
2015-03-11cc3200: Add preliminary low power deep sleep support.danicampora
2015-02-28cc3200: Add heartbeat signal on system led.danicampora
2015-02-26cc3200: Move code that disables/enables servers to wlan_sl_enable().danicampora
2015-02-25cc3200: Implement safe boot pin and system led behaviour.danicampora
The safe boot pin, when pulled high during reset rolls back the firmware to the "factory" image and skips execution of 'boot.py' and 'main.py'. This is useful to recover from a crash condition. The system led is used mostly to signal errors.
2015-02-25cc3200: Add WDT functionality as part of the pyb module.danicampora
Also improve pybsd, and make it save it's pin configuration. This is a necessary step towards supporting the CC3200 low power deep sleep (LPDS) mode.
2015-02-23cc3200: Replace WLAN.get_ip() with WLAN.ifconfig().danicampora
Also change other methods' names to make them consistent.
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 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-21cc3200: Add SD module and disable SD card support for the LAUNCHXL.danicampora
2015-02-20cc3200: Refactor UART and I2C object creation.danicampora
I2C objects can be freed by the GC and a __del__ method is provided in order to de-init the peripheral prior to being garbage collected. UART objects are now added to a local list and this list is now part of the VM_STATE.
2015-02-13cc3200: Add I2C module. Only master mode is currently supported.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-09cc3200: Rename GPIO module to Pin.danicampora
This change helps making the cc3200 port API a bit closer to stmhal. The ramaining differences are due to the specific hardware details of each chip. One feature that has been deliberately disabled is the possibility to add custom names and custom pin mappings. Those features are nice and convenient, but in this port, code size is a major concern.
2015-02-07py: Protect mp_parse and mp_compile with nlr push/pop block.Damien George
To enable parsing constants more efficiently, mp_parse should be allowed to raise an exception, and mp_compile can already raise a MemoryError. So these functions need to be protected by an nlr push/pop block. This patch adds that feature in all places. This allows to simplify how mp_parse and mp_compile are called: they now raise an exception if they have an error and so explicit checking is not needed anymore.
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.