From 81317c02ab3c33e820fe4852c053476a33c6f834 Mon Sep 17 00:00:00 2001 From: TitanMKD Date: Mon, 25 Jun 2012 22:12:00 +0200 Subject: * Updated GPIO added gpio_toggle() function. * Fixed ROM to RAM Linker script (libopencm3_lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld). --- lib/lpc43xx/gpio.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/lpc43xx/gpio.c') diff --git a/lib/lpc43xx/gpio.c b/lib/lpc43xx/gpio.c index 9134f70..1256fd0 100644 --- a/lib/lpc43xx/gpio.c +++ b/lib/lpc43xx/gpio.c @@ -26,5 +26,10 @@ void gpio_set(u32 gpioport, u32 gpios) void gpio_clear(u32 gpioport, u32 gpios) { - GPIO_CLR(gpioport) = gpios; + GPIO_CLR(gpioport) = gpios; } + +void gpio_toggle(u32 gpioport, u32 gpios) +{ + GPIO_NOT(gpioport) = gpios; +} \ No newline at end of file -- cgit v1.2.3