字體:小 中 大 | |
|
|
2020/12/15 18:07:52瀏覽55|回應0|推薦0 | |
device tree
設定了LED_name/trigger_name/gpio_id的關係
label = "status1:green:usr"
linux,default-trigger = "gcat0"
triggler_driver
會連接LED內,相同的trigger_name
access trigger_name而不是gpio_id或是LED_name
DEFINE_LED_TRIGGER(ledtrig_gcat0);
led_trigger_register_simple("gcat0",&ledtrig_gcat0);
led_trigger_unregister_simple(ledtrig_gcat0);
led_trigger_event(ledtrig_gcat0,LED_FULL)
|
|
( 不分類|不分類 ) |