aboutsummaryrefslogtreecommitdiff
path: root/stm/main.c
AgeCommit message (Collapse)Author
2014-01-22Fix Feature Macro Prefixmux
2014-01-22Remove Underscore from Macro Namesmux
2014-01-22Add Generic Feature Macros to mpconfigportmux
* Add some generic feature macros to mpconfigport * Move pin and port definitions from usrsw.c to mpconfigport
2014-01-22Second stage of qstr revamp: uPy str object can be qstr or not.Damien George
2014-01-22Merge branch 'fix-stm-discovery' of github.com:dhylands/micropython into ↵Damien George
dhylands-fix-stm-discovery Conflicts: stm/main.c
2014-01-21Fix support for STM32F4DISCOVERYDave Hylands
2014-01-21stm: Clean up main.c; disable libgcc by default.Damien George
f2d and d2f functions from libgcc does not work correctly, most likely due to the ABI being incorrect. libgcc disabled for now.
2014-01-21Revamp qstrs: they now include length and hash.Damien George
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
2014-01-19Change int to uint for n_args in function with variable arguments.Damien George
2014-01-19py: Add full traceback to exception printing.Damien George
2014-01-18Add source file name and line number to error messages.Damien George
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
2014-01-16stm: Add stm import support.Damien George
2014-01-15Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-reprDamien George
Conflicts: tests/basics/tests/exception1.py
2014-01-15Convert parse errors to exceptions.Damien George
Parser no longer prints an error, but instead returns an exception ID and message.
2014-01-15type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky
2014-01-14stm: Include libgcc for __aeabi_d2f and __aeabi_f2d functions.Damien George
Thanks to Dave Hylands for this.
2014-01-14Merge pull request #175 from iabdalkader/masterDamien George
Add missing ADC driver
2014-01-14Implement initial ADC supportmux
* Add simple ADC driver, with support for ADC1 and all channels. * Export MicroPython ADC object with read_channel function. * Add stm32f4xx_adc.c and adc.c to Makefile.
2014-01-13Add "buffer management" and "shrink" API calls to vstr.Paul Sokolovsky
vstr is initially intended to deal with arbitrary-length strings. By providing a bit lower-level API calls, it will be also useful to deal with arbitrary-length I/O buffers (the difference from strings is that buffers are filled from "outside", via I/O). Another issue, especially aggravated by I/O buffer use, is alloc size vs actual size length. If allocated 1Mb for buffer, but actually read 1 byte, we don't want to keep rest of 1Mb be locked by this I/O result, but rather return it to heap ASAP ("shrink" buffer before passing it to qstr_from_str_take()).
2014-01-13Consolidate rt_make_function_[0123] to rt_make_function_n.Damien George
2014-01-13stm: Re-instate C debugging USART port (disabled by default).Damien George
See pyb_usart_global_debug variable. Also did some work on USB OTG, but nothing working yet.
2014-01-11stm: Disable usart calls from C.Damien George
Fixes Issue #132.
2014-01-09Use memcpy instead of strncpy; add usart.status to stm.Damien George
2014-01-09Add USART Micro Python Bindingsmux
* Add Micro Python bindings to usart.c * Export USART python object to namespace pyb
2014-01-08Merge pull request #112 from iabdalkader/masterDamien George
Use LSI OSC for RTC clock when LSE is not detected
2014-01-08Move lexerstr to main py directory (everyone uses it).Damien George
2014-01-08Use LSI OSC for RTC clock when LSE is not detectedmux
* Fix rtc_init to use LSI for RTC clock source when LSE is not detected.
2014-01-08Updated teensy to use common code from stm directory.Dave Hylands
Updated mconfigport.h to enable GC
2014-01-07Merge branch 'cplusplus' of https://github.com/ian-v/micropython into ↵Damien George
ian-v-cplusplus Conflicts: py/objcomplex.c
2014-01-06Revert MP_BOOL, etc. and use <stdbool.h> insteadian-v
2014-01-06Co-exist with C++ (issue #85)ian-v
2014-01-05Convert many object types structs to use C99 tagged initializer syntax.Paul Sokolovsky
2014-01-05stm: rename sw_xx to switch_xx; change Python bindings to new version.Damien George
2014-01-05Move user switch code into a separate modulemux
* Move user switch code from main.c into a separate module (usrsw) * Add usrsw.c to Makefile
2014-01-04Convert Python types to proper Python type hierarchy.Damien George
Now much more inline with how CPython does types.
2014-01-04Split qstr into pools, and put initial pool in ROM.Damien George
Qstr's are now split into a linked-list of qstr pools. This has 2 benefits: the first pool can be in ROM (huge benefit, since we no longer use RAM for the core qstrs), and subsequent pools use m_new for the next pool instead of m_renew (thus avoiding a huge single table for all the qstrs). Still would be better to use a hash table, but this scheme takes us part of the way (eventually convert the pools to hash tables). Also fixed bug with import. Also improved the way the module code is referenced (not magic number 1 anymore).
2014-01-03Change mp_compile so that it returns a function object for the module.Damien George
2014-01-02Add module object, to be used eventually for import.Damien George
2013-12-29Change memory allocation API to require size for free and realloc.Damien
2013-12-28changes to Makefile and main.c to add i2c.cHagen Kaye
2013-12-21Change object representation from 1 big union to individual structs.Damien
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
2013-12-20stm: add pyb.sd_test; flash cache flushed only via MSD.Damien
2013-12-17stm: flush storage cache immediately; improve user interface.Damien
2013-12-11stm: add basic Servo class, and stop and standby functions.Damien
2013-12-06stm: add Led object; add option to reset filesystem.Damien
2013-12-05stm: initial commit of working CC3000 driver, based on Adafruit.Damien
2013-11-30stm: servos on PA0-3; MMA filtering; timer for Python REPL.Damien
2013-11-09STM: add LCD functions for pixel access; add RNG Py bindings.Damien
2013-11-06Add to STM code timer functionality to call Python on interrupt.Damien
2013-11-04Add DAC, and simple audio driver to STM code.Damien