We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2f648b commit 07386bdCopy full SHA for 07386bd
targets/TARGET_Ambiq_Micro/TARGET_Apollo3/device/gpio_api.c
@@ -25,8 +25,6 @@
25
#include "gpio_api.h"
26
#include "PeripheralPins.h"
27
28
-#include <string.h>
29
-
30
/** Set the given pin as GPIO
31
*
32
* @param pin The pin to be set as GPIO
targets/TARGET_Ambiq_Micro/TARGET_Apollo3/device/objects_gpio.h
@@ -64,8 +64,8 @@ typedef enum {
64
typedef struct _gpio_t {
65
ap3_gpio_pad_t pad;
66
am_hal_gpio_pincfg_t cfg;
67
- bool openDrain;
68
- bool isOutput;
+ bool openDrain; ///< Whether the pin is configured open drain as of the last gpio_mode() call
+ bool isOutput; ///< Whether the pin is configured as an output as of the last gpio_dir() call
69
} gpio_t;
70
71
typedef struct ap3_gpio_irq_control_t {
0 commit comments