summaryrefslogtreecommitdiff
path: root/platform/drivers/src/gpio_vf6xx.c
diff options
context:
space:
mode:
authorBhuvanchandra DV <bhuvanchandra.dv@toradex.com>2017-02-17 21:19:07 +0530
committerStefan Agner <stefan.agner@toradex.com>2017-02-17 12:58:16 -0800
commit3ff48feae1e83761563a554a6b10faa8ebcc6356 (patch)
tree69b303d673f64cf465f64b1eebeda828f87fd1d9 /platform/drivers/src/gpio_vf6xx.c
parent2f818b5e1b05ee0ce5cb7073ea312bb216ec591b (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.c8
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
******************************************************************************/