aboutsummaryrefslogtreecommitdiff
path: root/py/mphal.h
AgeCommit message (Collapse)Author
2016-06-19py/mphal.h: If virtpin API is used, automagically include its header.Paul Sokolovsky
2016-05-27extmod/virtpin: Initial implementation of open-ended C-level Pin interface.Paul Sokolovsky
Using usual method of virtual method tables. Single virtual method, ioctl, is defined currently for all operations. This universal and extensible vtable-based method is also defined as a default MPHAL GPIO implementation, but a specific port may override it with its own implementation (e.g. close-ended, but very efficient, e.g. avoiding virtual method dispatch).
2016-05-21py/mphal.h: Provide default prototypes for mp_hal_delay_us/mp_hal_ticks_us.Paul Sokolovsky
Similar to existing mp_hal_delay_ms/mp_hal_ticks_ms.
2015-10-31all: Add py/mphal.h and use it in all ports.Damien George
py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.