summaryrefslogtreecommitdiff
path: root/extmod/machine_pinbase.c
AgeCommit message (Collapse)Author
2017-09-12extmod/machine_pinbase: Put PinBase singleton in ROM.Damien George
This patch also removes the empty type "pinbase_type" (which crashes if accessed) and uses "machine_pinbase_type" instead as the type of the PinBase singleton.
2016-06-19extmod/machine_pinbase: Fix nanbox build.Paul Sokolovsky
MP_ROM_PTR() is only for data structures initialization, code should use MP_OBJ_FROM_PTR().
2016-06-18extmod/machine_pinbase: Implementation of PinBase class.Paul Sokolovsky
Allows to translate C-level pin API to Python-level pin API. In other words, allows to implement a pin class and Python which will be usable for efficient C-coded algorithms, like bitbanging SPI/I2C, time_pulse, etc.