micropython/stmhal
Damien George eaaebf3291 stmhal: Initialise stack pointer correctly.
Stack is full descending and must be 8-byte aligned.  It must start off
pointing to just above the last byte of RAM.

Previously, stack started pointed to last byte of RAM (eg 0x2001ffff)
and so was not 8-byte aligned.  This caused a bug in combination with
alloca.

This patch also updates some debug printing code.

Addresses issue #872 (among many other undiscovered issues).
2014-09-23 10:59:05 +01:00
..
boards Add LIS3DSH accelometer support to staccel.py 2014-09-11 16:40:53 +09:00
cc3k
cmsis stmhal: Update STM32Cube F4 HAL driver to V1.3.0. 2014-08-06 22:33:31 +01:00
fatfs stmhal: Change 0:/ and 1:/ to /flash and /sd; add CWD support. 2014-07-31 23:44:04 +01:00
hal stmhal: Change 64-bit arithmetic to 32-bit for SD card block addressing. 2014-09-15 23:49:57 +01:00
usbdev stmhal: Change 64-bit arithmetic to 32-bit for SD card block addressing. 2014-09-15 23:49:57 +01:00
usbhost
.gitignore
Makefile py: Implement divmod, % and proper // for floating point. 2014-09-13 18:43:09 +01:00
accel.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
accel.h
adc.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
adc.h
autoflash
bufhelper.c
bufhelper.h
dac.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
dac.h
diskio.c stmhal: Change 64-bit arithmetic to 32-bit for SD card block addressing. 2014-09-15 23:49:57 +01:00
diskio.h
extint.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
extint.h stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc. 2014-08-04 11:09:51 +01:00
ffconf.c stmhal: Change 0:/ and 1:/ to /flash and /sd; add CWD support. 2014-07-31 23:44:04 +01:00
ffconf.h stmhal: Change 0:/ and 1:/ to /flash and /sd; add CWD support. 2014-07-31 23:44:04 +01:00
file.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
file.h stmhal: Add file.flush and os.stat. 2014-07-19 16:39:13 +01:00
flash.c
flash.h
font_petme128_8x8.h
gccollect.c
gccollect.h
gchelper.s
help.c py: Fix bug where GC collected native/viper/asm function data. 2014-08-24 16:28:17 +01:00
i2c.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
i2c.h
import.c
input.c
irq.c stmhal: Fix bugs in documentation so it compiles. 2014-09-17 23:27:42 +00:00
irq.h stmhal: Make enable_irq and disable_irq inline functions. 2014-08-25 13:24:33 +01:00
lcd.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
lcd.h
led.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
led.h
lexerfatfs.c py: Change lexer stream API to return bytes not chars. 2014-07-30 11:46:05 +01:00
lexerfatfs.h
main.c stmhal: Initialise stack pointer correctly. 2014-09-23 10:59:05 +01:00
make-stmconst.py
modos.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
modpyb.c stmhal: Use MP_OBJ_NEW_SMALL_INT directly in pyb.micros/millis. 2014-08-25 17:38:55 +01:00
modselect.c stmhal: Fix bugs in documentation so it compiles. 2014-09-17 23:27:42 +00:00
modstm.c
modstmconst.gen.c
modtime.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
modwiznet5k.c stmhal: Fix bugs in documentation so it compiles. 2014-09-17 23:27:42 +00:00
mpconfigport.h py: Add native json printing using existing print framework. 2014-09-17 22:56:34 +01:00
mpconfigport.mk stmhal: Add wiznet5k module, to control WIZnet ethernet adaptor. 2014-09-01 22:52:38 +01:00
mphal.h Add support for selecting pin alternate functions from python. 2014-08-07 23:15:41 -07:00
pendsv.c
pendsv.h
pin.c Add Timer support (PWM, OC, IC) for stmhal and teensy 2014-09-19 09:26:13 -07:00
pin.h Add Timer support (PWM, OC, IC) for stmhal and teensy 2014-09-19 09:26:13 -07:00
pin_defs_stmhal.c Add support for selecting pin alternate functions from python. 2014-08-07 23:15:41 -07:00
pin_defs_stmhal.h
pin_named_pins.c Add Timer support (PWM, OC, IC) for stmhal and teensy 2014-09-19 09:26:13 -07:00
portmodules.h Remove skeletal modselect from extmod and just put it in stmhal. 2014-09-07 20:42:01 +01:00
printf.c stmhal: Fix REPL printing by cooking output sent to stdout_obj. 2014-07-20 13:57:43 +01:00
pybcdc.inf_template
pybioctl.h stmhal: Add polling ability to UART object. 2014-09-07 20:40:32 +01:00
pybstdio.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
pybstdio.h stmhal: Fix REPL printing by cooking output sent to stdout_obj. 2014-07-20 13:57:43 +01:00
pybwlan.c stmhal: Fix build issues with (old) CC3000 driver. 2014-08-26 14:13:53 +01:00
pybwlan.h
pyexec.c stmhal: Fix REPL printing by cooking output sent to stdout_obj. 2014-07-20 13:57:43 +01:00
pyexec.h
qstrdefsport.h stmhal: Add pulse_width_ratio to timer channel object. 2014-09-21 22:54:02 +01:00
readline.c stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc. 2014-08-04 11:09:51 +01:00
readline.h stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc. 2014-08-04 11:09:51 +01:00
rng.c
rng.h
rtc.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
rtc.h
sdcard.c stmhal: Change 64-bit arithmetic to 32-bit for SD card block addressing. 2014-09-15 23:49:57 +01:00
sdcard.h stmhal: Change 64-bit arithmetic to 32-bit for SD card block addressing. 2014-09-15 23:49:57 +01:00
servo.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
servo.h
spi.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
spi.h
startup_stm32f40xx.s
std.h
stm32f4xx_hal_msp.c
stm32f4xx_it.c stmhal: Improve efficiency of SysTick IRQ and HAL_Delay. 2014-08-25 18:12:44 +01:00
stm32f4xx_it.h
stm32f405.ld stmhal: Initialise stack pointer correctly. 2014-09-23 10:59:05 +01:00
storage.c
storage.h
string0.c stmhal: Slightly improved memcpy; memset uses word store when aligned. 2014-09-13 00:12:41 +01:00
system_stm32f4xx.c stmhal: Update STM32Cube F4 HAL driver to V1.3.0. 2014-08-06 22:33:31 +01:00
systick.c stmhal: Improve efficiency of SysTick IRQ and HAL_Delay. 2014-08-25 18:12:44 +01:00
systick.h Add support for pyb.micros() by using the systick timer. 2014-08-25 17:38:55 +01:00
timer.c stmhal: Add pulse_width_ratio to timer channel object. 2014-09-21 22:54:02 +01:00
timer.h stmhal: Add pulse_width_ratio to timer channel object. 2014-09-21 22:54:02 +01:00
uart.c stmhal: uart ioctl uses EINVAL, and checks TXE bit for write-ability. 2014-09-07 20:57:18 +01:00
uart.h stmhal: Fix REPL printing by cooking output sent to stdout_obj. 2014-07-20 13:57:43 +01:00
usb.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
usb.h stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc. 2014-08-04 11:09:51 +01:00
usbd_cdc_interface.c stmhal: Add USB_VCP class/object, for direct USB VCP control. 2014-07-31 10:30:42 +01:00
usbd_cdc_interface.h stmhal: Add USB_VCP class/object, for direct USB VCP control. 2014-07-31 10:30:42 +01:00
usbd_conf.c
usbd_conf.h
usbd_desc.h
usbd_desc_cdc_msc.c
usbd_msc_storage.c stmhal: Change 64-bit arithmetic to 32-bit for SD card block addressing. 2014-09-15 23:49:57 +01:00
usbd_msc_storage.h
usrsw.c Change some parts of the core API to use mp_uint_t instead of uint/int. 2014-08-30 00:35:11 +01:00
usrsw.h