Skip to content

Commit d1531da

Browse files
ithinuelc1728p9
authored andcommitted
add form_factors
1 parent a762fe2 commit d1531da

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/design-documents/hal/0002-pinmap-extension.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,16 @@ It is proposed to introduce the following elements :
3636
- `DEVICE_PIN_EXTENDED_SUPPORT` A `device_has` flag indicating the implementation of this extension.
3737
- The following part of the API provides the features needed for requirements 3, 4 and 5
3838
```c
39+
enum pinmap_form_factor_ {
40+
PINMAP_FORM_FACTOR_ARDUINO_ZERO,
41+
PINMAP_FORM_FACTOR_ARDUINO_DUE,
42+
PINMAP_FORM_FACTOR_NXP_FRDM,
43+
PINMAP_FORM_FACTOR_ST_MORPHO,
44+
PINMAP_FORM_FACTOR_MTB,
45+
} pinmap_form_factor_t;
46+
3947
/// returns an NC terminated array of pins.
40-
const PinName *pinmap_form_factor_pins();
48+
const PinName *pinmap_form_factor_pins(pinmap_form_factor_t form_factor);
4149
/// returns an NC terminated array of pins.
4250
const PinName *pinmap_restricted_pins();
4351
/// returns a null (\0) terminated character array.

0 commit comments

Comments
 (0)