Skip to content
Snippets Groups Projects
Commit 41167554 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent 413c3e10
No related branches found
No related tags found
No related merge requests found
......@@ -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__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment