circuitpython/stmhal
Damien George 0bfc7638ba py: Protect mp_parse and mp_compile with nlr push/pop block.
To enable parsing constants more efficiently, mp_parse should be allowed
to raise an exception, and mp_compile can already raise a MemoryError.
So these functions need to be protected by an nlr push/pop block.

This patch adds that feature in all places.  This allows to simplify how
mp_parse and mp_compile are called: they now raise an exception if they
have an error and so explicit checking is not needed anymore.
2015-02-07 18:33:58 +00:00
..
boards stmhal: Add support for FEZ Cerb40 II board from ghielectronics.com. 2015-01-21 00:11:04 +00:00
cmsis stmhal: Update STM32Cube F4 HAL driver to V1.3.0. 2014-08-06 22:33:31 +01:00
hal stmhal: Adjust computation of SYSCLK to retain precision. 2014-10-04 01:54:02 +01:00
usbdev stmhal: Fill in USB class/subclass/proto for CDC+HID device. 2014-10-25 01:14:39 +01:00
usbhost Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
.gitignore stmhal: Add .gitignore to ignore the new build dir names. 2014-05-03 18:26:03 +01:00
Makefile lib/libm: Add frexp and modf functions; use in stmhal; add tests. 2015-01-22 13:48:29 +00:00
accel.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
accel.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
adc.c stmhal/adc.c: Fix calculation of read_core_vref() 2015-02-06 13:56:27 -05:00
adc.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
autoflash Add device ID to autoflash script. 2014-05-02 23:03:23 +01:00
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 stmhal: Add basic CAN bus support. 2014-10-02 17:32:02 +01:00
dac.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
dac.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
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 stmhal: Add ability to mount custom block device. 2014-12-27 20:20:51 +00:00
file.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
file.h stmhal: Declare variables extern in include files 2014-11-05 22:52:51 +00:00
flash.c Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
flash.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
font_petme128_8x8.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
fsusermount.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
fsusermount.h stmhal: Add ability to mount custom block device. 2014-12-27 20:20:51 +00:00
gccollect.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
gccollect.h Add gc.enable, gc.disable; remove pyb.gc. 2014-05-08 23:04:49 +01:00
gchelper.s REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
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 Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
import.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
input.c py: Change vstr so that it doesn't null terminate buffer by default. 2015-01-28 23:43:01 +00:00
irq.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
irq.h stmhal: Make pyb.[u]delay use systick with IRQs, busy loop otherwise. 2014-11-30 21:23:25 +00:00
lcd.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
lcd.h stmhal: Update and improve LCD driver. 2014-06-15 00:41:47 +01:00
led.c stmhal: Add support for FEZ Cerb40 II board from ghielectronics.com. 2015-01-21 00:11:04 +00:00
led.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
lexerfatfs.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
lexerfatfs.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
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 Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
memory.h stmhal: Enable uhashlib module; add heapq, hashlib weak links. 2014-11-27 17:54:37 +00:00
modnetwork.c stmhal: Put mod_network_nic_list in global root-pointer state. 2015-01-22 00:16:41 +00:00
modnetwork.h stmhal: Put mod_network_nic_list in global root-pointer state. 2015-01-22 00:16:41 +00:00
modnwcc3k.c stmhal: Make CC3K object static, so it's only registered once as NIC. 2015-01-22 00:17:40 +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 stmhal: Add lots of constants to stm module. 2014-04-19 00:32:25 +01:00
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: Change vstr so that it doesn't null terminate buffer by default. 2015-01-28 23:43:01 +00:00
modutime.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
mpconfigport.h stmhal: Disable MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE. 2015-01-24 23:45:37 +00:00
mpconfigport.mk stmhal: Initial implementation of cc3k module and driver. 2014-09-26 00:57:26 +01:00
mphal.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
mphal.h stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00:00
pendsv.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
pendsv.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
pin.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00: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 stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
pin_defs_stmhal.h Updated teensy to build. 2014-06-15 22:48:05 -07:00
pin_named_pins.c teensy: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:13:30 +00:00
portmodules.h stmhal: Enable module weak links. 2014-10-12 20:23:47 +01:00
printf.c py: Can compile with -Wmissing-declarations and -Wmissing-prototypes. 2015-01-12 22:30:49 +00:00
pybcdc.inf_template Auto-generate the stmhal/pybcdc_inf header file from static files 2014-04-16 02:41:26 +01:00
pybioctl.h stmhal: Add polling ability to UART object. 2014-09-07 20:40:32 +01:00
pybstdio.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
pybstdio.h py: Fix some macros defines; cleanup some includes. 2014-11-05 21:16:41 +00:00
pyexec.c py: Protect mp_parse and mp_compile with nlr push/pop block. 2015-02-07 18:33:58 +00:00
pyexec.h pyexec: Add event-driven variant pyexec_friendly_repl(). 2015-01-16 01:30:42 +02:00
qstrdefsport.h stmhal: Add ability to mount custom block device. 2014-12-27 20:20:51 +00:00
rng.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
rng.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
rtc.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
rtc.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
sdcard.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00: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 stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
servo.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
spi.c py: Remove mp_obj_str_builder and use vstr instead. 2015-01-21 23:18:02 +00:00
spi.h stmhal: For spi_init, add argument to select if NSS pin is enabled. 2014-09-30 22:36:47 +01:00
startup_stm32f40xx.s Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
std.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
stm32f4xx_it.c py, unix, stmhal: Allow to compile with -Wshadow. 2015-01-20 11:55:10 +00:00
stm32f4xx_it.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
stm32f405.ld stmhal: Set entry point for ELF binary debugging 2014-10-21 16:48:32 +02:00
storage.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
storage.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
string0.c Fix errors after enabling -Wpointer-arith 2014-10-29 15:42:38 +00:00
system_stm32f4xx.c stmhal: Allow pyb.freq() function to change SYSCLK frequency. 2014-10-04 01:54:31 +01:00
systick.c stmhal: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:06:20 +00:00
systick.h stmhal: Make pyb.[u]delay use systick with IRQs, busy loop otherwise. 2014-11-30 21:23:25 +00:00
timer.c stmhal: Allow to build without float support if wanted. 2015-01-08 17:55:55 +00:00
timer.h stmhal: Add pulse_width_ratio to timer channel object. 2014-09-21 22:54:02 +01:00
uart.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
uart.h stmhal: Overhaul UART class to use read/write, and improve it. 2014-10-21 22:15:20 +01:00
usb.c py: Remove mp_obj_str_builder and use vstr instead. 2015-01-21 23:18:02 +00:00
usb.h stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00:00
usbd_cdc_interface.c stmhal: Add USB_VCP.setinterrupt method, to disable CTRL-C. 2014-11-29 15:23:21 +00:00
usbd_cdc_interface.h stmhal: Add ioctl to USB_VCP object, so it works with select. 2014-10-31 00:12:02 +00:00
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 stmhal: Change USB PID when in CDC+HID mode. 2014-10-25 22:55:07 +01:00
usbd_desc_cdc_msc.c stmhal: Change USB PID when in CDC+HID mode. 2014-10-25 22:55:07 +01:00
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 Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
usrsw.c stmhal: Collect all root pointers together in 1 place. 2015-01-07 23:38:50 +00:00
usrsw.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00