Embest Technology Co., Ltd
struct gpio_led_data *led_dat, struct device *parent,
int (*blink_set)(struct gpio_desc *, int, unsigned long *,
{
...
ret = devm_gpio_request_one(parent, template->gpio, flags,
template->name);
...
ret = gpiod_direction_output(led_dat->gpiod, state);
...
return led_classdev_register(parent, &led_dat->cdev);
}
Users may access the file named brightness under
/sys/class/leds/xxx/brightness, and call gpio_led_set to configure LED
status
static void gpio_led_set(struct led_classdev *led_cdev,
enum led_brightness value)
{
...
}
3.9 System Update
SBC8600B can boot up from TF card or NAND Flash, if the jumper JP5 is disconnect,
the board will boot from nand flash, otherwise it will boot from TF card.
This section will briefly introduce the process of system update on a TF card and a
NAND Flash.
3.9.1 Update of TF Card System Image
Formatting TF Card
1.
HP USB Disk Storage Format Tool 2.0.6 is recommended as the formatting tool:
Please download it from here:
Copyright © 2017 Embest Technology
unsigned long *))
gpiod_set_value(led_dat->gpiod, level);
SBC8600B-UM-V2.0
52