From 3e0bc820dcf14fe0849af91fdf7bba82e56d1901 Mon Sep 17 00:00:00 2001 From: schulz Date: Wed, 8 Apr 2015 09:02:27 +0000 Subject: [PATCH] rpi2 as well as B+ boards use LEDs wired between GPIO and ground. Fix setting LED on and off git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50298 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/arm-raspi/kernel/platform_bcm2708.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm-raspi/kernel/platform_bcm2708.c b/arch/arm-raspi/kernel/platform_bcm2708.c index bf3c187f3b..b40ae3a13f 100644 --- a/arch/arm-raspi/kernel/platform_bcm2708.c +++ b/arch/arm-raspi/kernel/platform_bcm2708.c @@ -27,13 +27,13 @@ static void bcm2708_toggle_led(int LED, int state) if (__arm_periiobase == BCM2836_PERIPHYSBASE) { int pin = 35; - IPTR gpiofunc = GPSET1; + IPTR gpiofunc = GPCLR1; if (LED == ARM_LED_ACTIVITY) pin = 47; if (state == ARM_LED_ON) - gpiofunc = GPCLR1; + gpiofunc = GPSET1; *(volatile unsigned int *)gpiofunc = (1 << (pin-32)); } -- 2.11.4.GIT