Skip to content
Snippets Groups Projects
Commit abbe18c3 authored by Minkyu Kang's avatar Minkyu Kang Committed by trix
Browse files

s5pc1xx: update the README file


Because adds support the GPIO Interface, README file is updated.

Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
parent ab693e9c
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,23 @@ To check SoC:
printf("cpu is s5pc110\n");
gpio
not supported yet.
struct s5pc100_gpio *gpio = (struct s5pc100_gpio*)S5PC100_GPIO_BASE;
/* GPA[0] pin set to irq */
gpio_cfg_pin(&gpio->gpio_a, 0, GPIO_IRQ);
/* GPA[0] pin set to input */
gpio_direction_input(&gpio->gpio_a, 0);
/* GPA[0] pin set to output/high */
gpio_direction_output(&gpio->gpio_a, 0, 1);
/* GPA[0] value set to low */
gpio_set_value(&gpio->gpio_a, 0, 0);
/* get GPA[0] value */
value = gpio_get_value(&gpio->gpio_a, 0);
Links
=====
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment