summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/virtpin.h
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/virtpin.h')
-rw-r--r--extmod/virtpin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/extmod/virtpin.h b/extmod/virtpin.h
index 3821f9dec5..0410103505 100644
--- a/extmod/virtpin.h
+++ b/extmod/virtpin.h
@@ -38,3 +38,6 @@ typedef struct _mp_pin_p_t {
int mp_virtual_pin_read(mp_obj_t pin);
void mp_virtual_pin_write(mp_obj_t pin, int value);
+
+// If a port exposes a Pin object, it's constructor should be like this
+mp_obj_t mp_pin_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args);