mirror of https://github.com/ARMmbed/mbed-os.git
Update gpio_api.c
Modified gpio_set() to allow PIO0_0, PIO0_10, and PIO0_15 to be properly configured for GPIO.pull/321/head
parent
0f94cf84e8
commit
e441e0aa4f
|
@ -17,10 +17,13 @@
|
|||
#include "pinmap.h"
|
||||
|
||||
uint32_t gpio_set(PinName pin) {
|
||||
int f = ((pin == P0_11) ||
|
||||
int f = ((pin == P0_0) ||
|
||||
(pin == P0_10) ||
|
||||
(pin == P0_11) ||
|
||||
(pin == P0_12) ||
|
||||
(pin == P0_13) ||
|
||||
(pin == P0_14)) ? (1) : (0);
|
||||
(pin == P0_14) ||
|
||||
(pin == P0_15)) ? (1) : (0);
|
||||
|
||||
pin_function(pin, f);
|
||||
|
||||
|
|
Loading…
Reference in New Issue