circuitpython/drivers
Damien George 571e6f26db py: Specialise builtin funcs to use separate type for fixed arg count.
Builtin functions with a fixed number of arguments (0, 1, 2 or 3) are
quite common.  Before this patch the wrapper for such a function cost
3 machine words.  After this patch it only takes 2, which can reduce the
code size by quite a bit (and pays off even more, the more functions are
added).  It also makes function dispatch slightly more efficient in CPU
usage, and furthermore reduces stack usage for these cases.  On x86 and
Thumb archs the dispatch functions are now tail-call optimised by the
compiler.

The bare-arm port has its code size increase by 76 bytes, but stmhal drops
by 904 bytes.  Stack usage by these builtin functions is decreased by 48
bytes on Thumb2 archs.
2016-10-21 16:26:01 +11:00
..
cc3000 py: Specialise builtin funcs to use separate type for fixed arg count. 2016-10-21 16:26:01 +11:00
cc3100 drivers: Update CC3100 driver library to SDK release version 1.1.0. 2015-03-16 00:42:08 +01:00
dht py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros. 2016-10-21 16:26:01 +11:00
display drivers/display/ssd1306: Add width arg and support 64px wide displays. 2016-06-26 13:09:31 +01:00
nrf24l01 drivers/nrf24l01: Fix SPI phase setting to match specs of nRF chip. 2015-09-18 13:00:12 +00:00
onewire drivers/onewire: Fix ds18x20.read_temp so it works when no rom given. 2015-07-30 23:10:39 +01:00
sdcard drivers/sdcard: Port the SDCard driver to new machine API. 2016-09-01 17:44:07 +10:00
wiznet5k drivers/wiznet5k: Fix indentation so it's not misleading. 2016-07-11 21:11:25 +01:00
README.md Added 'drivers' directory, intended to hold code for specific hardware. 2014-09-01 22:52:37 +01:00

README.md

This directory contains drivers for specific hardware. The drivers are intended to work across multiple ports.