circuitpython/stm
Paul Sokolovsky 5d2499c638 Add "buffer management" and "shrink" API calls to vstr.
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-13 23:31:06 +02:00
..
cc3k Revert MP_BOOL, etc. and use <stdbool.h> instead 2014-01-06 13:51:53 -08:00
fatfs Add fatfs readme/license. 2014-01-05 11:57:17 +00:00
lib stm: Re-instate C debugging USART port (disabled by default). 2014-01-13 00:20:06 +00:00
.gitignore Inital commit of stm32f4xx framework. 2013-10-13 00:42:20 +01:00
audio.c Consolidate rt_make_function_[0123] to rt_make_function_n. 2014-01-13 19:50:05 +00:00
audio.h Add DAC, and simple audio driver to STM code. 2013-11-04 23:05:48 +00:00
delay.s Inital commit of stm32f4xx framework. 2013-10-13 00:42:20 +01:00
flash.c Partially implement proper flash storage. 2013-10-18 23:44:05 +01:00
flash.h Partially implement proper flash storage. 2013-10-18 23:44:05 +01:00
font_petme128_8x8.h Inital commit of stm32f4xx framework. 2013-10-13 00:42:20 +01:00
gchelper.s Add simple file support to board. 2013-11-03 14:53:34 +00:00
i2c.c Merge branch 'cplusplus' of https://github.com/ian-v/micropython into ian-v-cplusplus 2014-01-07 15:58:30 +00:00
i2c.h Added i2c python interface object 2013-12-28 19:23:33 -05:00
lcd.c Consolidate rt_make_function_[0123] to rt_make_function_n. 2014-01-13 19:50:05 +00:00
lcd.h STM: add LCD functions for pixel access; add RNG Py bindings. 2013-11-09 20:15:48 +00:00
led.c Merge branch 'cplusplus' of https://github.com/ian-v/micropython into ian-v-cplusplus 2014-01-07 15:58:30 +00:00
led.h Fix LED pin enum 2014-01-06 06:41:56 +02:00
lexerfatfs.c Updated teensy to use common code from stm directory. 2014-01-08 00:29:44 -08:00
lexerfatfs.h Move lexerstr to main py directory (everyone uses it). 2014-01-08 15:28:26 +00:00
main.c Add "buffer management" and "shrink" API calls to vstr. 2014-01-13 23:31:06 +02:00
Makefile stm: Re-instate C debugging USART port (disabled by default). 2014-01-13 00:20:06 +00:00
malloc0.c Change object representation from 1 big union to individual structs. 2013-12-21 18:17:45 +00:00
mma.c Add module object, to be used eventually for import. 2014-01-02 21:30:26 +00:00
mma.h Add module object, to be used eventually for import. 2014-01-02 21:30:26 +00:00
mpconfigport.h Factor and simplify Makefile's and mpconfig, part 2. 2014-01-07 15:20:33 +00:00
printf.c Cleanup built-ins, and fix some compiler warnings/errors. 2014-01-13 19:39:01 +00:00
pybwlan.c Consolidate rt_make_function_[0123] to rt_make_function_n. 2014-01-13 19:50:05 +00:00
pybwlan.h stm: initial commit of working CC3000 driver, based on Adafruit. 2013-12-05 20:38:23 +00:00
sdio.c Add support for SD card (not working). 2013-10-24 00:22:27 +01:00
servo.c Merge branch 'cplusplus' of https://github.com/ian-v/micropython into ian-v-cplusplus 2014-01-07 15:58:30 +00:00
servo.h Change object representation from 1 big union to individual structs. 2013-12-21 18:17:45 +00:00
startup_stm32f40xx.s Fix up linker script; improve startup code; printf to USB. 2013-10-17 22:50:21 +01:00
std.h Added public domain implementations of strchr and strstr. 2014-01-12 22:34:58 -08:00
stm32f405.ld stm: allow more flash for the binary. 2014-01-05 14:34:17 +00:00
stm32fxxx_it.c stm: Re-instate C debugging USART port (disabled by default). 2014-01-13 00:20:06 +00:00
stm32fxxx_it.h Working SysTick, code factoring, some boot-up code. 2013-10-19 14:40:54 +01:00
storage.c Revert MP_BOOL, etc. and use <stdbool.h> instead 2014-01-06 13:51:53 -08:00
storage.h Revert MP_BOOL, etc. and use <stdbool.h> instead 2014-01-06 13:51:53 -08:00
string0.c Added public domain implementations of strchr and strstr. 2014-01-12 22:34:58 -08:00
system_stm32f4xx.c Inital commit of stm32f4xx framework. 2013-10-13 00:42:20 +01:00
systick.c Revert MP_BOOL, etc. and use <stdbool.h> instead 2014-01-06 13:51:53 -08:00
systick.h Revert MP_BOOL, etc. and use <stdbool.h> instead 2014-01-06 13:51:53 -08:00
timer.c Consolidate rt_make_function_[0123] to rt_make_function_n. 2014-01-13 19:50:05 +00:00
timer.h Add to STM code timer functionality to call Python on interrupt. 2013-11-06 23:04:33 +00:00
usart.c stm: Re-instate C debugging USART port (disabled by default). 2014-01-13 00:20:06 +00:00
usart.h stm: Re-instate C debugging USART port (disabled by default). 2014-01-13 00:20:06 +00:00
usb.c stm: Re-instate C debugging USART port (disabled by default). 2014-01-13 00:20:06 +00:00
usb.h stm: Re-instate C debugging USART port (disabled by default). 2014-01-13 00:20:06 +00:00
usrsw.c stm: pull-up usr switch on pyboard (fixes regression). 2014-01-05 23:49:34 +00:00
usrsw.h stm: rename sw_xx to switch_xx; change Python bindings to new version. 2014-01-05 14:04:55 +00:00