diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-19 00:12:37 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-19 00:12:37 +0300 |
| commit | 41167554e4d02f7f0e45099c5f6a41af01071559 (patch) | |
| tree | b98b4079447c9f34c45dc48769dfccb7b1fbe83e /py/mphal.h | |
| parent | 413c3e10b4a046493e648686e8d355db95e8846b (diff) | |
py/mphal.h: If virtpin API is used, automagically include its header.
Diffstat (limited to 'py/mphal.h')
| -rw-r--r-- | py/mphal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/mphal.h b/py/mphal.h index aacd02ebd..54a45b024 100644 --- a/py/mphal.h +++ b/py/mphal.h @@ -73,6 +73,7 @@ mp_uint_t mp_hal_ticks_us(void); #define mp_hal_get_pin_obj(pin) (pin) #define mp_hal_pin_read(pin) mp_virtual_pin_read(pin) #define mp_hal_pin_write(pin, v) mp_virtual_pin_write(pin, v) +#include "extmod/virtpin.h" #endif #endif // __MICROPY_INCLUDED_PY_MPHAL_H__ |
