1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 15:31:17 +01:00

drivers/gpio: improved doc for gpio_init()

This commit is contained in:
Hauke Petersen 2017-06-12 13:43:52 +02:00
parent 9ce9dd601c
commit 3ec75635ba

View File

@ -138,6 +138,10 @@ typedef struct {
/**
* @brief Initialize the given pin as general purpose input or output
*
* When configured as output, the pin state after initialization is undefined.
* The output pin's state **should** be untouched during the initialization.
* This behavior can however **not be guaranteed** by every platform.
*
* @param[in] pin pin to initialize
* @param[in] mode mode of the pin, see @c gpio_mode_t
*