mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC15XX/gpio_api.c
- Revision:
- 113:65a335a675de
- Parent:
- 103:9b881da47c92
- Child:
- 227:7bd0639b8911
--- a/targets/hal/TARGET_NXP/TARGET_LPC15XX/gpio_api.c Fri Mar 07 16:00:07 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC15XX/gpio_api.c Mon Mar 10 11:30:07 2014 +0000 @@ -33,7 +33,7 @@ return (1UL << ((int)pin & 0x1f)); } -void gpio_init(gpio_t *obj, PinName pin, PinDirection direction) { +void gpio_init(gpio_t *obj, PinName pin) { if(pin == NC) return; obj->pin = pin; @@ -45,12 +45,6 @@ obj->reg_clr = &LPC_GPIO_PORT->CLR[port]; obj->reg_in = &LPC_GPIO_PORT->PIN[port]; obj->reg_dir = &LPC_GPIO_PORT->DIR[port]; - - gpio_dir(obj, direction); - switch (direction) { - case PIN_OUTPUT: pin_mode(pin, PullNone); break; - case PIN_INPUT : pin_mode(pin, PullDown); break; - } } void gpio_mode(gpio_t *obj, PinMode mode) {