| Age | Commit message (Collapse) | Author |
|
* Add ADC support for reading internal temperature sensor.
* Add ADC support for reading internal VREF/VBAT monitor.
|
|
* 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 driver from STM32F4xx_StdPeriph_Lib_V1.3.0
|
|
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()).
|
|
|
|
Added public domain implementations of strchr and strstr.
|
|
|
|
|
|
Added a hacky implementation for %g
|
|
See pyb_usart_global_debug variable.
Also did some work on USB OTG, but nothing working yet.
|
|
|
|
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
|
|
Fixes Issue #132.
|
|
* Fix usart_obj_tx_str to send the actual string.
* Fix issue #126
|
|
|
|
Add USART Micro Python Bindings
|
|
|
|
Creating of classes (types) and instances is much more like CPython now.
You can use "type('name', (), {...})" to create classes.
|
|
|
|
* Add a DEBUG flag to Makefile, enables: "-O0 -ggdb"
|
|
* Add Micro Python bindings to usart.c
* Export USART python object to namespace pyb
|
|
Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
This should fix issue #117
|
|
Update stm/Makeile to use OBJCOPY and SIZE macros
|
|
|
|
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.
|
|
Use LSI OSC for RTC clock when LSE is not detected
|
|
|
|
* Fix rtc_init to use LSI for RTC clock source when LSE is not detected.
|
|
Updated mconfigport.h to enable GC
|
|
ian-v-cplusplus
Conflicts:
py/objcomplex.c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fix LED pin enum, first one should start at 1
* Fix LED initialization typo
|
|
Convert many object types structs to use C99 tagged initializer syntax.
|
|
|
|
|
|
* 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
|
|
|
|
|
|
Move user switch code into a separate module
|
|
* Move user switch code from main.c into a separate module (usrsw)
* Add usrsw.c to Makefile
|
|
|
|
Now much more inline with how CPython does types.
|
|
|
|
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).
|
|
|