aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mpconfigport.h
AgeCommit message (Collapse)Author
2015-05-17cc3200: Add Timer module. Supports free running, PWM and capture modes.Daniel Campora
2015-05-07cc3200: Enable MICROPY_MODULE_WEAK_LINKS.Daniel Campora
2015-05-05cc3200: Define MICROPY_CPYTHON_COMPAT=0.Daniel Campora
This only disables some corner case functionality to keep C Python compatibility, and saves ~600 bytes.
2015-05-03cc3200: Clean up pyb.PinDaniel Campora
Remove unused and unneeded functions, also create Pin.get_config() that returns the whole configuration of the pin. This reduces code size by ~500 bytes.
2015-04-29cc3200: Implement os.uname() to get details of the OS and hardware.Daniel Campora
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: Disable MICROPY_COMP_TRIPLE_TUPLE_ASSIGN.Daniel Campora
Because it's only a compiler optimization and increases code size.
2015-04-11cc3200: Enable TRIPLE_TUPLE_ASSIGN and UBINASCII.Daniel Campora
2015-04-11cc3200: Enable long filename support in FatFS.Daniel Campora
This has implications all over the place. I have to admit that you can instantly see that usability improves, but it costs 3K. At the same time I took the oportunity to rename the '/SFLASH' drive to '/flash' which improves compatibility with the pyboard.
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-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: Add preliminary low power deep sleep support.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-21cc3200: Disable MICROPY_OPT_COMPUTED_GOTO.danicampora
Saves around 1.3K. At the same time re-enable MICROPY_PY_SYS_EXIT since it doesn't take much space and might be useful for certain scripts.
2015-02-20cc3200: Disable MICROPY_PY_SYS_EXIT and MICROPY_EMIT_INLINE_THUMB.danicampora
Disabling MICROPY_EMIT_INLINE_THUMB gives us back around 6K of precious RAM.
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-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-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.