py/mphal.h: If virtpin API is used, automagically include its header.

This commit is contained in:
Paul Sokolovsky 2016-06-19 00:12:37 +03:00
parent 413c3e10b4
commit 41167554e4
1 changed files with 1 additions and 0 deletions

View File

@ -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__