Example define as LED:
add C code for WR703N as example this or this in mach-tl-wr703n.c:
#define TL_WR703N_GPIO_LED_SYSTEM 27
#define TL_WR703N_GPIO_LED_TX 9
#define TL_WR703N_GPIO_LED_RX 10
also add to static struct gpio_led Function:
static struct gpio_led tl_wr703n_leds_gpio[] __initdata = {
{
.name = "tp-link:blue:system",
.gpio = TL_WR703N_GPIO_LED_SYSTEM,
.active_low = 1,
},
{
.name = "tp-link:blue:tx",
.gpio = TL_WR703N_GPIO_LED_TX,
.active_low = 1,
},
{
.name = "tp-link:blue:rx",
.gpio = TL_WR703N_GPIO_LED_RX,
.active_low = 1,
}
};
Then after build:
When you use rmmod leds_gpio, you also unlock this gpios used as tx and rx.
(Last edited by Dioptimizer on 24 Feb 2012, 21:48)