* Updated GPIO added gpio_toggle() function.

* Fixed ROM to RAM Linker script (libopencm3_lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld).
This commit is contained in:
TitanMKD
2012-06-25 22:12:00 +02:00
parent 397af25401
commit 81317c02ab
3 changed files with 10 additions and 4 deletions

View File

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