circuitpython/stmhal
Paul Sokolovsky 0ef01d0a75 py: Implement core of OrderedDict type.
Given that there's already support for "fixed table" maps, which are
essentially ordered maps, the implementation of OrderedDict just extends
"fixed table" maps by adding an "is ordered" flag and add/remove
operations, and reuses 95% of objdict code, just making methods tolerant
to both dict and OrderedDict.

Some things are missing so far, like CPython-compatible repr and comparison.

OrderedDict is Disabled by default; enabled on unix and stmhal ports.
2015-03-20 17:26:10 +00:00
..
boards stmhal: Add config option to use LSE/LSI for RTC. 2015-03-16 22:54:44 +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: Remove obsolete usbdev file. 2015-02-13 14:03:44 +00: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
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: Fix adc.read_timed so buffer store respects element size. 2015-03-13 22:11:50 +00: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 stmhal: Add support for CAN rx callbacks. 2015-02-15 03:10:53 +00:00
can.h stmhal: Add support for CAN rx callbacks. 2015-02-15 03:10:53 +00: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: Include fatfs headers using lib/fatfs prefix. 2015-03-04 20:35:41 +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: Include fatfs headers using lib/fatfs prefix. 2015-03-04 20:35:41 +00:00
ffconf.h stmhal: Add ability to mount custom block device. 2014-12-27 20:20:51 +00:00
file.c stmhal: Include fatfs headers using lib/fatfs prefix. 2015-03-04 20:35:41 +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: Include fatfs headers using lib/fatfs prefix. 2015-03-04 20:35:41 +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: Include fatfs headers using lib/fatfs prefix. 2015-03-04 20:35:41 +00:00
input.c stmhal: Make pybstdio usable by other ports, and use it. 2015-02-13 15:04:53 +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: Include fatfs headers using lib/fatfs prefix. 2015-03-04 20:35:41 +00:00
lexerfatfs.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
main.c stmhal: Include fatfs headers using lib/fatfs prefix. 2015-03-04 20:35:41 +00:00
make-stmconst.py stmhal: Add I2S2EXT and I2S3EXT constants to stm module. 2015-03-01 12:32:44 +00:00
Makefile stmhal: Include fatfs headers using lib/fatfs prefix. 2015-03-04 20:35:41 +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: Make os.sync use disk_ioctl exclusively; reuse os.sync in pyb. 2015-03-04 20:38:28 +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 I2S2EXT and I2S3EXT constants to stm module. 2015-03-01 12:32:44 +00:00
moduos.c stmhal: Make os.sync use disk_ioctl exclusively; reuse os.sync in pyb. 2015-03-04 20:38:28 +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 py: Implement core of OrderedDict type. 2015-03-20 17:26:10 +00:00
mpconfigport.mk stmhal: Initial implementation of cc3k module and driver. 2014-09-26 00:57:26 +01:00
mphal.c stmhal: Make pybstdio usable by other ports, and use it. 2015-02-13 15:04:53 +00:00
mphal.h stmhal: Make pybstdio usable by other ports, and use it. 2015-02-13 15:04:53 +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_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
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
portmodules.h stmhal: Make os.sync use disk_ioctl exclusively; reuse os.sync in pyb. 2015-03-04 20:38:28 +00:00
printf.c minimal: Allow to compile without defining MICROPY_HAL_H. 2015-02-13 15:26:53 +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: Make pybstdio usable by other ports, and use it. 2015-02-13 15:04:53 +00:00
pyexec.c stmhal: Make pybstdio usable by other ports, and use it. 2015-02-13 15:04:53 +00:00
pyexec.h pyexec: Add event-driven variant pyexec_friendly_repl(). 2015-01-16 01:30:42 +02:00
qstrdefsport.h stmhal: Add rtc.wakeup method, to set wakeup timer. 2015-03-15 17:15:55 +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: Add config option to use LSE/LSI for RTC. 2015-03-16 22:54:44 +00:00
rtc.h Add license header to (almost) all files. 2014-05-03 23:27:38 +01:00
sdcard.c py: Use m_{new,renew,del} consistently. 2015-02-27 09:34:51 +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 stmhal: Add rtc.wakeup method, to set wakeup timer. 2015-03-15 17:15:55 +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: Add support for quadrature encoder mode to pyb.TimerChannel. 2015-03-09 13:23:14 +00:00
timer.h stmhal: Add pulse_width_ratio to timer channel object. 2014-09-21 22:54:02 +01:00
uart.c stmhal: For UART, check that baudrate is within 5% of desired value. 2015-02-22 00:26:49 +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 stmhal: Properly define pyb.usb_mode() semantics. 2015-02-13 14:02:51 +00:00
usb.h stmhal: Properly define pyb.usb_mode() semantics. 2015-02-13 14:02:51 +00:00
usbd_cdc_interface.c stmhal: Add Python-configurable USB HID mode. 2015-02-13 14:02:51 +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.c stmhal: Fix setting of VID. 2015-02-13 22:25:55 +00:00
usbd_desc.h stmhal: Properly define pyb.usb_mode() semantics. 2015-02-13 14:02:51 +00:00
usbd_msc_storage.c stmhal: Include fatfs headers using lib/fatfs prefix. 2015-03-04 20:35:41 +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