summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Gonchar <leonid.gonchar@globallogic.com>2018-06-25 13:57:05 +0300
committerLeonid Gonchar <leonid.gonchar@globallogic.com>2018-06-25 13:57:05 +0300
commitc799120a61882d049a940066ee44c66fa6a1e5cf (patch)
treebe4c9a592140569b485c4e09ec36a2352bcd1d37
parent3892a0c8f5bfbb660a11c93153faf3a57dbe7dc3 (diff)
downloadmts-io-c799120a61882d049a940066ee44c66fa6a1e5cf.tar.gz
mts-io-c799120a61882d049a940066ee44c66fa6a1e5cf.tar.bz2
mts-io-c799120a61882d049a940066ee44c66fa6a1e5cf.zip
Fixing LEDs mapping
-rw-r--r--io-module/mths.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/io-module/mths.c b/io-module/mths.c
index df7fa27..28a4f19 100644
--- a/io-module/mths.c
+++ b/io-module/mths.c
@@ -104,10 +104,19 @@ static struct gpio_pin gpio_pins_mths_0_0[] = {
.active_low = 1,
},
{
- .name = "LED4",
+ .name = "LED3",
.pin = {
.gpio = AT91_PIN_PC20,
.flags = GPIOF_OUT_INIT_HIGH,
+ .label = "led-c",
+ },
+ .active_low = 1,
+ },
+ {
+ .name = "LED4",
+ .pin = {
+ .gpio = AT91_PIN_PC16,
+ .flags = GPIOF_OUT_INIT_HIGH,
.label = "led-cd",
},
.active_low = 1,
@@ -115,7 +124,7 @@ static struct gpio_pin gpio_pins_mths_0_0[] = {
{
.name = "LED5",
.pin = {
- .gpio = AT91_PIN_PC16,
+ .gpio = AT91_PIN_PC21,
.flags = GPIOF_OUT_INIT_HIGH,
.label = "led-status",
},