micropython/stmhal
Damien George 05005f679e py: Remove mp_obj_str_builder and use vstr instead.
With this patch str/bytes construction is streamlined.  Always use a
vstr to build a str/bytes object.  If the size is known beforehand then
use vstr_init_len to allocate only required memory.  Otherwise use
vstr_init and the vstr will grow as needed.  Then use
mp_obj_new_str_from_vstr to create a str/bytes object using the vstr
memory.

Saves code ROM: 68 bytes on stmhal, 108 bytes on bare-arm, and 336 bytes
on unix x64.
2015-01-21 23:18:02 +00:00
..
boards stmhal: Add support for FEZ Cerb40 II board from ghielectronics.com. 2015-01-21 00:11:04 +00:00
cmsis
hal
usbdev
usbhost
.gitignore
Makefile stmhal: Move readline code to lib/mp-readline/. 2015-01-12 04:15:35 +02:00
accel.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
accel.h
adc.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
adc.h
autoflash
bufhelper.c py: Remove mp_obj_str_builder and use vstr instead. 2015-01-21 23:18:02 +00:00
bufhelper.h py: Remove mp_obj_str_builder and use vstr instead. 2015-01-21 23:18:02 +00:00
can.c py: Remove mp_obj_str_builder and use vstr instead. 2015-01-21 23:18:02 +00:00
can.h
dac.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
dac.h
diskio.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
extint.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
extint.h stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
ffconf.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
ffconf.h
file.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
file.h
flash.c
flash.h
font_petme128_8x8.h
fsusermount.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
fsusermount.h
gccollect.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
gccollect.h
gchelper.s
help.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
i2c.c py: Remove mp_obj_str_builder and use vstr instead. 2015-01-21 23:18:02 +00:00
i2c.h
import.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
input.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
irq.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
irq.h
lcd.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
lcd.h
led.c stmhal: Add support for FEZ Cerb40 II board from ghielectronics.com. 2015-01-21 00:11:04 +00:00
led.h
lexerfatfs.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
lexerfatfs.h
main.c stmhal: Reclaim 72 bytes of stack by factoring out flash init code. 2015-01-09 20:38:23 +00:00
make-stmconst.py
memory.h
modnetwork.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
modnetwork.h
modnwcc3k.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
modnwwiznet5k.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
modpyb.c stmhal: Add support for FEZ Cerb40 II board from ghielectronics.com. 2015-01-21 00:11:04 +00:00
modstm.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
modstmconst.gen.c
moduos.c py: Remove mp_obj_str_builder and use vstr instead. 2015-01-21 23:18:02 +00:00
moduselect.c py, unix, stmhal: Allow to compile with -Wshadow. 2015-01-20 11:55:10 +00:00
modusocket.c py: Remove mp_obj_str_builder and use vstr instead. 2015-01-21 23:18:02 +00:00
modutime.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
mpconfigport.h py: Add config option MICROPY_COMP_MODULE_CONST for module consts. 2015-01-10 14:07:24 +00:00
mpconfigport.mk
mphal.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
mphal.h
pendsv.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
pendsv.h
pin.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
pin.h
pin_defs_stmhal.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
pin_defs_stmhal.h
pin_named_pins.c teensy: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:13:30 +00:00
portmodules.h
printf.c py: Can compile with -Wmissing-declarations and -Wmissing-prototypes. 2015-01-12 22:30:49 +00:00
pybcdc.inf_template
pybioctl.h
pybstdio.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
pybstdio.h
pyexec.c py, unix, stmhal: Allow to compile with -Wshadow. 2015-01-20 11:55:10 +00:00
pyexec.h pyexec: Add event-driven variant pyexec_friendly_repl(). 2015-01-16 01:30:42 +02:00
qstrdefsport.h
rng.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
rng.h
rtc.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
rtc.h
sdcard.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
sdcard.h
servo.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
servo.h
spi.c py: Remove mp_obj_str_builder and use vstr instead. 2015-01-21 23:18:02 +00:00
spi.h
startup_stm32f40xx.s
std.h
stm32f4xx_it.c py, unix, stmhal: Allow to compile with -Wshadow. 2015-01-20 11:55:10 +00:00
stm32f4xx_it.h
stm32f405.ld
storage.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
storage.h
string0.c
system_stm32f4xx.c
systick.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
systick.h
timer.c stmhal: Allow to build without float support if wanted. 2015-01-08 17:55:55 +00:00
timer.h
uart.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
uart.h
usb.c py: Remove mp_obj_str_builder and use vstr instead. 2015-01-21 23:18:02 +00:00
usb.h
usbd_cdc_interface.c
usbd_cdc_interface.h
usbd_conf.c py, unix, stmhal: Allow to compile with -Wshadow. 2015-01-20 11:55:10 +00:00
usbd_conf.h stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
usbd_desc.h
usbd_desc_cdc_msc.c
usbd_msc_storage.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
usbd_msc_storage.h
usrsw.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
usrsw.h