File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
targets/TARGET_Ambiq_Micro/TARGET_Apollo3/device Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ WEAK MBED_NORETURN void mbed_die(void)
3131
3232#ifdef LED1
3333 gpio_t led_err ;
34+ memset (& led_err , 0 , sizeof (gpio_t ));
3435 gpio_init_out (& led_err , LED1 );
3536#endif
3637
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ int gpio_is_connected(const gpio_t *obj)
5757void gpio_init (gpio_t * obj , PinName pin )
5858{
5959 MBED_ASSERT (obj != NULL );
60- memset (obj , 0 , sizeof (gpio_t ));
6160 obj -> pad = (ap3_uart_pad_t )pin ;
6261 return ;
6362}
Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ typedef enum {
5454 PullDown = 1 << 1 ,
5555
5656 OpenDrain = 1 << 2 ,
57- OpenDrainPullUp = OpenDrain | PullUp , ///< Open-drain mode with pull up
58- OpenDrainPullDown = OpenDrain | PullDown , ///< Open-drain mode with pull down
59- OpenDrainNoPull = OpenDrain , ///< Open-drain mode with no pullup/pulldown
57+ OpenDrainPullUp = OpenDrain | PullUp , ///< Open-drain mode with pull up. Supported on all IOs except IO 20.
58+ OpenDrainPullDown = OpenDrain | PullDown , ///< Open-drain mode with pull down. Only supported on IO 20.
59+ OpenDrainNoPull = OpenDrain , ///< Open-drain mode with no pullup/pulldown. Supported on all IOs.
6060
6161 PullDefault = PullNone
6262} PinMode ;
You can’t perform that action at this time.
0 commit comments