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
Neil Thiessen 2014-05-21 09:21:43 -06:00
parent 0f94cf84e8
commit e441e0aa4f
1 changed files with 5 additions and 2 deletions

View File

@ -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);