summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/modonewire.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-06-22 15:40:04 +1000
committerDamien George <damien.p.george@gmail.com>2017-06-22 15:47:56 +1000
commit68c640d7cbebd4cc3bf22af3871ca2c9d74bb292 (patch)
tree02094a58307c5729ce887ab70e4c6d2ee127542a /extmod/modonewire.c
parentd94bc675e8f3bcf37acf2d88d7c0ce0d9de68672 (diff)
downloadmicropython-68c640d7cbebd4cc3bf22af3871ca2c9d74bb292.tar.gz
micropython-68c640d7cbebd4cc3bf22af3871ca2c9d74bb292.zip
esp8266/modonewire: Move low-level 1-wire bus code to modonewire.c.
The reason it was separated is so that the low-level code could be put in iRAM, for timing reasons. But: 1. Tests show that it's not necessary to have this code in iRAM for it to function correctly, and taking it out of iRAM reclaims some of that precious resource. Furthermore, even though these functions were in iRAM there were some functions that it called (eg pin get/set functions) which were not in iRAM, so partially defeated the purpose of putting the 1-wire code in iRAM. 2. It's easier to reuse this 1-wire code in other ports if it's in a single file. 3. If it turns out that certain code does need to be in iRAM then one can use the MP_FASTCODE macro to do that.
Diffstat (limited to 'extmod/modonewire.c')
0 files changed, 0 insertions, 0 deletions