Page | 47
input_event(input, type, button->code, !!state);
input_sync(input);
}
6.5.2
Driver for the gpio_leds
1.
Device Definition
Linux-3.2.0-psp04.06.00.08.sdk/arch/arm/mach-omap2/board-am335xev
m.c
Configure GPIO 1.30 as ”sys_led”
(
system indicator
)
and GPIO 1.31 as
“user_led”, both activated by a high level signal.
static struct gpio_led gpio_leds[] = {
{
.name = "sys_led",
.default_trigger = "heartbeat",
.gpio = GPIO_TO_PIN(1, 30),
},
{
.name = "user_led",
.gpio = GPIO_TO_PIN(1, 31),
},
};
static struct gpio_led_platform_data gpio_led_info = {
.leds = gpio_leds,
.num_leds = ARRAY_SIZE(gpio_leds),
};
static struct platform_device leds_gpio = {
.name = "leds-gpio",
.id = -1,
.dev = {
.platform_data = &gpio_led_info,
},
};
2.
GPIO pinmux Configuration
Linux-3.2.0-psp04.06.00.08.sdk/arch/arm/mach-omap2/board-am335xev
m.c
Summary of Contents for SBC8600B
Page 1: ...SBC8600B Single Board Computer Quick Start Guide Version 1 1 23rd Jan 2014...
Page 9: ...Page 2 1 3 Board Interfaces Figure 1 SBC8600B Interfaces...
Page 10: ...Page 3 1 4 System Block Diagram Figure 2 SBC8600B System Block Diagram...
Page 11: ...Page 4 1 5 Physical Dimensions Figure 3 MINI8600B Physical Dimensions...
Page 12: ...Page 5 Figure 4 SBC8600B Physical Dimensions...
Page 114: ...Page 107...