summaryrefslogtreecommitdiff
path: root/stm
AgeCommit message (Collapse)Author
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-15stm: Fix print methods with new kind argument.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-14Add ADC support for internal TEMP/VBAT/VREFmux
* Add ADC support for reading internal temperature sensor. * Add ADC support for reading internal VREF/VBAT monitor.
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-14Add missing ADC drivermux
* Add missing ADC driver from STM32F4xx_StdPeriph_Lib_V1.3.0
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-13Merge pull request #168 from dhylands/add-strstrDamien George
Added public domain implementations of strchr and strstr.
2014-01-13Cleanup built-ins, and fix some compiler warnings/errors.Damien George
2014-01-12Added public domain implementations of strchr and strstr.Dave Hylands
2014-01-12Merge pull request #157 from dhylands/printf-floatDamien George
Added a hacky implementation for %g
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-12Added a hacky implementation for %gDave Hylands
2014-01-11Added memzip filesystem support for teensyDave Hylands
You can now append a zipfile (containining uncomressed python sources) to the micropython.hex file. Use MEMZIP_DIR=directory when you call make, or set that in your environment to include a different tree of source files. Added sample /boot.py, /src/main.py, /test.py and /src/test.py files. Added run command so that you can execute scripts from REPL (until import is implemented). Added build directory to .gitignore
2014-01-11stm: Disable usart calls from C.Damien George
Fixes Issue #132.
2014-01-10Fix usart_obj_tx_strmux
* Fix usart_obj_tx_str to send the actual string. * Fix issue #126
2014-01-09Use memcpy instead of strncpy; add usart.status to stm.Damien George
2014-01-09Merge pull request #127 from iabdalkader/masterDamien George
Add USART Micro Python Bindings
2014-01-09py: Implement base class lookup, issubclass, isinstance.Damien George
2014-01-09Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.Damien George
Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
2014-01-09Fix Makefile typomux
2014-01-09Add DEBUG flag to Makefilemux
* Add a DEBUG flag to Makefile, enables: "-O0 -ggdb"
2014-01-09Add USART Micro Python Bindingsmux
* Add Micro Python bindings to usart.c * Export USART python object to namespace pyb
2014-01-08Make build output quieter.Dave Hylands
Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. This should fix issue #117
2014-01-08Merge pull request #118 from dhylands/stm-use-OBJCOPY-SIZE-macrosDamien George
Update stm/Makeile to use OBJCOPY and SIZE macros
2014-01-08py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t.Damien George
2014-01-08Update stm/Makeile to use OBJCOPY and SIZE macrosDave Hylands
While updating the teensy Makfile, I noticed that the stm Makefile was using calling arm-none-eabi-objcopy and size rather than $(OBJCOPY) and $(SIZE), so I added these 2 for consistency.
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-07Factor and simplify Makefile's and mpconfig, part 2.Damien George
2014-01-07Factor and simplify Makefile's and mpconfig.Damien George
2014-01-06stm: Re-fix LED defines.Damien George
2014-01-06Merge branch 'master' of https://github.com/iabdalkader/micropythonDamien George
2014-01-06Revert MP_BOOL, etc. and use <stdbool.h> insteadian-v
2014-01-06Co-exist with C++ (issue #85)ian-v
2014-01-06Fix LED pin enummux
* Fix LED pin enum, first one should start at 1 * Fix LED initialization typo
2014-01-05Merge pull request #89 from pfalcon/c99-tagged-structsDamien George
Convert many object types structs to use C99 tagged initializer syntax.
2014-01-05stm: pull-up usr switch on pyboard (fixes regression).Damien George
2014-01-05Convert many object types structs to use C99 tagged initializer syntax.Paul Sokolovsky