summaryrefslogtreecommitdiffstatshomepage
path: root/stm
Commit message (Collapse)AuthorAge
* Change int to uint for n_args in function with variable arguments.Damien George2014-01-19
|
* py: Add full traceback to exception printing.Damien George2014-01-19
|
* Add source file name and line number to error messages.Damien George2014-01-18
| | | | | Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
* stm: Add stm import support.Damien George2014-01-16
|
* stm: Fix print methods with new kind argument.Damien George2014-01-15
|
* Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-reprDamien George2014-01-15
|\ | | | | | | | | Conflicts: tests/basics/tests/exception1.py
| * type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky2014-01-15
| |
* | Convert parse errors to exceptions.Damien George2014-01-15
|/ | | | | Parser no longer prints an error, but instead returns an exception ID and message.
* stm: Include libgcc for __aeabi_d2f and __aeabi_f2d functions.Damien George2014-01-14
| | | | Thanks to Dave Hylands for this.
* Merge pull request #175 from iabdalkader/masterDamien George2014-01-14
|\ | | | | Add missing ADC driver
| * Add ADC support for internal TEMP/VBAT/VREFmux2014-01-14
| | | | | | | | | | * Add ADC support for reading internal temperature sensor. * Add ADC support for reading internal VREF/VBAT monitor.
| * Implement initial ADC supportmux2014-01-14
| | | | | | | | | | | | * 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.
| * Add missing ADC drivermux2014-01-14
| | | | | | | | * Add missing ADC driver from STM32F4xx_StdPeriph_Lib_V1.3.0
* | Add "buffer management" and "shrink" API calls to vstr.Paul Sokolovsky2014-01-13
|/ | | | | | | | | | | | | 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()).
* Consolidate rt_make_function_[0123] to rt_make_function_n.Damien George2014-01-13
|
* Merge pull request #168 from dhylands/add-strstrDamien George2014-01-13
|\ | | | | Added public domain implementations of strchr and strstr.
| * Added public domain implementations of strchr and strstr.Dave Hylands2014-01-12
| |
* | Cleanup built-ins, and fix some compiler warnings/errors.Damien George2014-01-13
|/
* Merge pull request #157 from dhylands/printf-floatDamien George2014-01-12
|\ | | | | Added a hacky implementation for %g
| * Added a hacky implementation for %gDave Hylands2014-01-12
| |
* | stm: Re-instate C debugging USART port (disabled by default).Damien George2014-01-13
|/ | | | | | See pyb_usart_global_debug variable. Also did some work on USB OTG, but nothing working yet.
* Added memzip filesystem support for teensyDave Hylands2014-01-11
| | | | | | | | | | | | | | 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
* stm: Disable usart calls from C.Damien George2014-01-11
| | | | Fixes Issue #132.
* Fix usart_obj_tx_strmux2014-01-10
| | | | | * Fix usart_obj_tx_str to send the actual string. * Fix issue #126
* Use memcpy instead of strncpy; add usart.status to stm.Damien George2014-01-09
|
* Merge pull request #127 from iabdalkader/masterDamien George2014-01-09
|\ | | | | Add USART Micro Python Bindings
| * Fix Makefile typomux2014-01-09
| |
| * Add DEBUG flag to Makefilemux2014-01-09
| | | | | | | | * Add a DEBUG flag to Makefile, enables: "-O0 -ggdb"
| * Add USART Micro Python Bindingsmux2014-01-09
| | | | | | | | | | * Add Micro Python bindings to usart.c * Export USART python object to namespace pyb
* | py: Implement base class lookup, issubclass, isinstance.Damien George2014-01-09
| |
* | Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.Damien George2014-01-09
|/ | | | | Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
* Make build output quieter.Dave Hylands2014-01-08
| | | | | | Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. This should fix issue #117
* Merge pull request #118 from dhylands/stm-use-OBJCOPY-SIZE-macrosDamien George2014-01-08
|\ | | | | Update stm/Makeile to use OBJCOPY and SIZE macros
| * Update stm/Makeile to use OBJCOPY and SIZE macrosDave Hylands2014-01-08
| | | | | | | | | | | | 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.
* | py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t.Damien George2014-01-08
|/
* Merge pull request #112 from iabdalkader/masterDamien George2014-01-08
|\ | | | | Use LSI OSC for RTC clock when LSE is not detected
| * Use LSI OSC for RTC clock when LSE is not detectedmux2014-01-08
| | | | | | | | * Fix rtc_init to use LSI for RTC clock source when LSE is not detected.
* | Move lexerstr to main py directory (everyone uses it).Damien George2014-01-08
| |
* | Updated teensy to use common code from stm directory.Dave Hylands2014-01-08
|/ | | | Updated mconfigport.h to enable GC
* Merge branch 'cplusplus' of https://github.com/ian-v/micropython into ↵Damien George2014-01-07
|\ | | | | | | | | | | | | ian-v-cplusplus Conflicts: py/objcomplex.c
| * Revert MP_BOOL, etc. and use <stdbool.h> insteadian-v2014-01-06
| |
| * Co-exist with C++ (issue #85)ian-v2014-01-06
| |
* | Factor and simplify Makefile's and mpconfig, part 2.Damien George2014-01-07
| |
* | Factor and simplify Makefile's and mpconfig.Damien George2014-01-07
| |
* | stm: Re-fix LED defines.Damien George2014-01-06
| |
* | Merge branch 'master' of https://github.com/iabdalkader/micropythonDamien George2014-01-06
|\ \ | |/ |/|
| * Fix LED pin enummux2014-01-06
| | | | | | | | | | * Fix LED pin enum, first one should start at 1 * Fix LED initialization typo
* | Merge pull request #89 from pfalcon/c99-tagged-structsDamien George2014-01-05
|\ \ | | | | | | Convert many object types structs to use C99 tagged initializer syntax.
| * | Convert many object types structs to use C99 tagged initializer syntax.Paul Sokolovsky2014-01-05
| | |
* | | stm: pull-up usr switch on pyboard (fixes regression).Damien George2014-01-05
| |/ |/|