diff options
author | Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> | 2017-02-17 21:19:07 +0530 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2017-02-17 12:58:16 -0800 |
commit | 3ff48feae1e83761563a554a6b10faa8ebcc6356 (patch) | |
tree | 69b303d673f64cf465f64b1eebeda828f87fd1d9 /platform/drivers/src/gpio_vf6xx.c | |
parent | 2f818b5e1b05ee0ce5cb7073ea312bb216ec591b (diff) |
vf6xx: gpio_vf6xx: correct the GPIO toggle control
Drop unnecessary parameter gpio_pin_action_t and use the port toggle
register to toggle the pin.
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'platform/drivers/src/gpio_vf6xx.c')
-rw-r--r-- | platform/drivers/src/gpio_vf6xx.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/platform/drivers/src/gpio_vf6xx.c b/platform/drivers/src/gpio_vf6xx.c index 5f9326c..637080a 100644 --- a/platform/drivers/src/gpio_vf6xx.c +++ b/platform/drivers/src/gpio_vf6xx.c @@ -86,14 +86,6 @@ void GPIO_WritePinOutput(GPIO_Type* base, uint32_t pin, gpio_pin_action_t pinVal GPIO_PSOR_REG(base) &= ~(GPIO_OFFSET(pin)); /* Set pin output to low level.*/ } -void GPIO_TogglePinOutput(GPIO_Type* base, uint32_t pin, gpio_pin_action_t pinVal) -{ - if (pinVal == gpioPinSet) - GPIO_PTOR_REG(base) |= GPIO_OFFSET(pin); /* Set pin output to high level.*/ - else - GPIO_PTOR_REG(base) &= ~(GPIO_OFFSET(pin)); /* Set pin output to low level.*/ -} - /******************************************************************************* * EOF ******************************************************************************/ |