Skip to content

Commit 07386bd

Browse files
Add docs
1 parent c2f648b commit 07386bd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

targets/TARGET_Ambiq_Micro/TARGET_Apollo3/device/gpio_api.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
#include "gpio_api.h"
2626
#include "PeripheralPins.h"
2727

28-
#include <string.h>
29-
3028
/** Set the given pin as GPIO
3129
*
3230
* @param pin The pin to be set as GPIO

targets/TARGET_Ambiq_Micro/TARGET_Apollo3/device/objects_gpio.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ typedef enum {
6464
typedef struct _gpio_t {
6565
ap3_gpio_pad_t pad;
6666
am_hal_gpio_pincfg_t cfg;
67-
bool openDrain;
68-
bool isOutput;
67+
bool openDrain; ///< Whether the pin is configured open drain as of the last gpio_mode() call
68+
bool isOutput; ///< Whether the pin is configured as an output as of the last gpio_dir() call
6969
} gpio_t;
7070

7171
typedef struct ap3_gpio_irq_control_t {

0 commit comments

Comments
 (0)