Skip to content

Commit 0a515da

Browse files
committed
Add link to porting guide in GPIO page
1 parent d32456d commit 0a515da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/porting/target/gpio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
Implement the api declared in `mbed-os/hal/gpio_api.h`. You must define the struct `gpio_t`. This struct is commonly defined in an `objects.h` file within the `mbed-os/targets/TARGET_VENDOR/`, `mbed-os/targets/TARGET_VENDOR/TARGET_MCU_FAMILY` or `mbed-os/targets/TARGET_VENDOR/TARGET_MCU_FAMILY/TARGET_MCUNAME` directories.
44

5-
You should define the Physical LEDs and switches in the target's `PinNames.h` file. LED and switch names begin incrementing at 1 and follow the convention `LED1...LEDn` and `BUTTON1...BUTTONn`. You can see an [example](https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PinNames.h#L198) for more information.
5+
You should follow the standard described in the [Standard Pin Names Porting Guide](../standard_pin_names/pin_names_porting.md) to define the Physical LEDs and switches in the target's `PinNames.h` file.

0 commit comments

Comments
 (0)