From d1531daa396c227180bb0e5a2da148a2916170ca Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Mon, 12 Nov 2018 11:20:42 +0000 Subject: [PATCH] add form_factors --- docs/design-documents/hal/0002-pinmap-extension.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/design-documents/hal/0002-pinmap-extension.md b/docs/design-documents/hal/0002-pinmap-extension.md index fa654ce546..eb06dd2284 100644 --- a/docs/design-documents/hal/0002-pinmap-extension.md +++ b/docs/design-documents/hal/0002-pinmap-extension.md @@ -36,8 +36,16 @@ It is proposed to introduce the following elements : - `DEVICE_PIN_EXTENDED_SUPPORT` A `device_has` flag indicating the implementation of this extension. - The following part of the API provides the features needed for requirements 3, 4 and 5 ```c + enum pinmap_form_factor_ { + PINMAP_FORM_FACTOR_ARDUINO_ZERO, + PINMAP_FORM_FACTOR_ARDUINO_DUE, + PINMAP_FORM_FACTOR_NXP_FRDM, + PINMAP_FORM_FACTOR_ST_MORPHO, + PINMAP_FORM_FACTOR_MTB, + } pinmap_form_factor_t; + /// returns an NC terminated array of pins. - const PinName *pinmap_form_factor_pins(); + const PinName *pinmap_form_factor_pins(pinmap_form_factor_t form_factor); /// returns an NC terminated array of pins. const PinName *pinmap_restricted_pins(); /// returns a null (\0) terminated character array.