diff options
| author | Minkyu Kang <[email protected]> | 2010-02-12 18:21:17 +0900 |
|---|---|---|
| committer | trix <[email protected]> | 2010-03-13 08:11:16 -0600 |
| commit | 28937af2321ebd96e5032508fc9048fc150b8f61 (patch) | |
| tree | 89a28acd5eb1b711614d1d24e2bdf04b841793c9 | |
| parent | 2c1ad699e53a19964794e97713b7f2f8cdc4f4cb (diff) | |
s5pc1xx: update the README file
Because adds support the GPIO Interface, README file is updated.
Signed-off-by: Minkyu Kang <[email protected]>
| -rw-r--r-- | doc/README.s5pc1xx | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/doc/README.s5pc1xx b/doc/README.s5pc1xx index 5a0fe33db1b..ab1f02469c5 100644 --- a/doc/README.s5pc1xx +++ b/doc/README.s5pc1xx @@ -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 ===== |
