aboutsummaryrefslogtreecommitdiff
path: root/stm
AgeCommit message (Collapse)Author
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
2014-01-05Add Initial Support for STM32F4DISCOVERY Boardmux
* Add a TARGET definition to Makefile (default PYBOARD). * Add support for discovery LEDs in led module. * Add support for discovery user switch in usersw * Add EXTI interrupt handler for discovery user switch on (PA0). * Parameterize led and usrsw modules pins and port. * Issue #83
2014-01-05stm: allow more flash for the binary.Damien George
2014-01-05stm: rename sw_xx to switch_xx; change Python bindings to new version.Damien George
2014-01-05Merge pull request #82 from iabdalkader/masterDamien George
Move user switch code into a separate module
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-05Add fatfs readme/license.Damien George
2014-01-04Convert Python types to proper Python type hierarchy.Damien George
Now much more inline with how CPython does types.
2014-01-04Don't error out if build/ directory already exists.Paul Sokolovsky
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-04stm: Add comments for storage read from cache.Damien George