diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-05-27 09:09:39 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-06-26 11:50:24 -0500 |
| commit | 159728b550c70f239e03c267a23f3950de635d3a (patch) | |
| tree | b17fe16e1cc48258c64504c29281c9554570977d /shared-bindings/microcontroller/Pin.h | |
| parent | 57fde2e07bb2ee4dcff342deed08e4e7799da799 (diff) | |
shared-bindings: Factor out validate_list_is_free_pins
This will ultimately be used by SDIO, where a variable length list
of data lines is called for.
Diffstat (limited to 'shared-bindings/microcontroller/Pin.h')
| -rw-r--r-- | shared-bindings/microcontroller/Pin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shared-bindings/microcontroller/Pin.h b/shared-bindings/microcontroller/Pin.h index bb5256b55..f6659db7d 100644 --- a/shared-bindings/microcontroller/Pin.h +++ b/shared-bindings/microcontroller/Pin.h @@ -37,6 +37,7 @@ mcu_pin_obj_t *validate_obj_is_pin(mp_obj_t obj); mcu_pin_obj_t *validate_obj_is_pin_or_none(mp_obj_t obj); mcu_pin_obj_t *validate_obj_is_free_pin(mp_obj_t obj); mcu_pin_obj_t *validate_obj_is_free_pin_or_none(mp_obj_t obj); +void validate_list_is_free_pins(qstr what, mcu_pin_obj_t **pins_out, mp_int_t max_pins, mp_obj_t seq, uint8_t *count_out); void assert_pin_free(const mcu_pin_obj_t* pin); |
