# HG changeset patch # User Paul Boddie # Date 1475512076 -7200 # Node ID cb43c3400045deb5d3bb424600789c7c3323c73a # Parent 6e8ae1e82437e7baa3df6fb4e5a071d6afc9b814 Attempt to properly use the GPIO set and clear registers. diff -r 6e8ae1e82437 -r cb43c3400045 stage2/task_gpio.c --- a/stage2/task_gpio.c Mon Oct 03 16:36:26 2016 +0200 +++ b/stage2/task_gpio.c Mon Oct 03 18:27:56 2016 +0200 @@ -41,12 +41,12 @@ inline void task_gpio_set_pin(unsigned short pin) { - TASK_REG_GPIO_PXDATS(pin / 32) |= (1 << (pin % 32)); + TASK_REG_GPIO_PXDATS(pin / 32) = (1 << (pin % 32)); } inline void task_gpio_clear_pin(unsigned short pin) { - TASK_REG_GPIO_PXDATS(pin / 32) &= ~(1 << (pin % 32)); + TASK_REG_GPIO_PXDATC(pin / 32) = (1 << (pin % 32)); } inline int task_gpio_get_pin(unsigned short pin)