micropython/stmhal
Damien George 78d702c300 py: Allow builtins to be overridden.
This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS)
which, when enabled, allows to override all names within the builtins
module.  A builtins override dict is created the first time the user
assigns to a name in the builtins model, and then that dict is searched
first on subsequent lookups.  Note that this implementation doesn't
allow deleting of names.

This patch also does some refactoring of builtins code, creating the
modbuiltins.c file.

Addresses issue #959.
2014-12-09 16:19:48 +00:00
..
boards stmhal: Enable DAC on STM32F4DISC. 2014-11-25 11:42:26 +00:00
cmsis
fatfs
hal
usbdev stmhal: Fill in USB class/subclass/proto for CDC+HID device. 2014-10-25 01:14:39 +01:00
usbhost
.gitignore
Makefile stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00:00
accel.c
accel.h
adc.c
adc.h
autoflash
bufhelper.c
bufhelper.h
can.c Adding CAN filter management 2014-11-26 18:52:33 +00:00
can.h
dac.c stmhal: Allow DAC object to be initialised from a pin. 2014-10-26 21:46:06 +00:00
dac.h
diskio.c
diskio.h
extint.c modsys: Add sys.print_exception(exc, file=sys.stdout) function. 2014-12-08 20:25:49 +00:00
extint.h
ffconf.c
ffconf.h
file.c py: Make stream seek correctly check for ioctl fn; add seek for textio. 2014-11-16 23:56:37 +00:00
file.h stmhal: Declare variables extern in include files 2014-11-05 22:52:51 +00:00
flash.c
flash.h
font_petme128_8x8.h
gccollect.c
gccollect.h
gchelper.s
help.c
i2c.c stmhal: Use OSError with POSIX error code for HAL errors. 2014-10-23 14:25:32 +01:00
i2c.h
import.c
input.c stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00:00
irq.c
irq.h stmhal: Make pyb.[u]delay use systick with IRQs, busy loop otherwise. 2014-11-30 21:23:25 +00:00
lcd.c
lcd.h
led.c
led.h
lexerfatfs.c
lexerfatfs.h
main.c stmhal: Change fresh boot.py and main.py to use \r\n newlines. 2014-10-25 01:14:39 +01: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: Allow network, uselect, usocket mods to be used by other ports. 2014-12-07 17:03:47 +00:00
modnetwork.h stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00:00
modnwcc3k.c stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00:00
modnwwiznet5k.c stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00:00
modpyb.c stmhal: Enhance pyb.freq to configure bus (AHB, APB1, APB2) freqs. 2014-12-08 21:32:55 +00:00
modstm.c Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
modstmconst.gen.c
moduos.c Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
moduselect.c stmhal: Allow network, uselect, usocket mods to be used by other ports. 2014-12-07 17:03:47 +00:00
modusocket.c stmhal: Allow network, uselect, usocket mods to be used by other ports. 2014-12-07 17:03:47 +00:00
modutime.c Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
mpconfigport.h py: Allow builtins to be overridden. 2014-12-09 16:19:48 +00:00
mpconfigport.mk
mphal.c stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00:00
mphal.h stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00:00
pendsv.c py: Add mp_pending_exception global variable, for VM soft interrupt. 2014-10-25 23:37:57 +01:00
pendsv.h
pin.c
pin.h
pin_defs_stmhal.c
pin_defs_stmhal.h
pin_named_pins.c
portmodules.h
printf.c py: Fix some macros defines; cleanup some includes. 2014-11-05 21:16:41 +00:00
pybcdc.inf_template
pybioctl.h
pybstdio.c
pybstdio.h py: Fix some macros defines; cleanup some includes. 2014-11-05 21:16:41 +00:00
pyexec.c modsys: Add sys.print_exception(exc, file=sys.stdout) function. 2014-12-08 20:25:49 +00:00
pyexec.h stmhal: Don't return SystemExit value from parse_compile_execute. 2014-10-22 19:14:20 +01:00
qstrdefsport.h stmhal: Overhaul network drivers; has generic network protocol in C. 2014-12-04 18:57:57 +00:00
readline.c stmhal: Remove unnecessary HAL_Delay in readline loop. 2014-11-27 17:04:09 +00:00
readline.h stmhal: Reduce coupling between USB driver and readline. 2014-11-27 16:58:31 +00:00
rng.c
rng.h
rtc.c stmhal: Move RTC HAL init functions to rtc.c, where they belong. 2014-12-02 12:40:37 +00:00
rtc.h
sdcard.c
sdcard.h
servo.c
servo.h
spi.c stmhal: Allow SPI.init to specify prescaler directly; improve SPI docs. 2014-12-08 21:34:07 +00:00
spi.h
startup_stm32f40xx.s
std.h
stm32f4xx_it.c stmhal: Overhaul UART class to use read/write, and improve it. 2014-10-21 22:15:20 +01:00
stm32f4xx_it.h
stm32f405.ld
storage.c
storage.h
string0.c Fix errors after enabling -Wpointer-arith 2014-10-29 15:42:38 +00:00
system_stm32f4xx.c
systick.c stmhal: Make pyb.[u]delay use systick with IRQs, busy loop otherwise. 2014-11-30 21:23:25 +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 modsys: Add sys.print_exception(exc, file=sys.stdout) function. 2014-12-08 20:25:49 +00:00
timer.h
uart.c stream: Convert .ioctl() to take fixed number of args. 2014-11-17 00:16:14 +02:00
uart.h stmhal: Overhaul UART class to use read/write, and improve it. 2014-10-21 22:15:20 +01:00
usb.c stmhal: Add USB_VCP.setinterrupt method, to disable CTRL-C. 2014-11-29 15:23:21 +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
usbd_conf.h
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
usbd_msc_storage.h
usrsw.c
usrsw.h