gpio: enhance exception handling in interface function 94/163994/4
authorSegwon <segwon.han@samsung.com>
Thu, 14 Dec 2017 11:13:04 +0000 (20:13 +0900)
committerSegwon <segwon.han@samsung.com>
Mon, 18 Dec 2017 03:21:20 +0000 (12:21 +0900)
commit4e217917479bccac3d79b1312c249cbf72ae9593
tree283aeff2d67c76d55b36203352406d7313ffeaf9
parentf2b38db50344ce5a9c240b352435614f676bc6b1
gpio: enhance exception handling in interface function

 - GPIO set type functions require prerequisites

 1) [edge_mode]                [direction]

    none ----------------------> in, out (O)

    rising, falling, both -----> in (O)
                           \
                            ---> out (X)

 2) [direction]                [edge_mode]

    in ------------------------> none, rising, falling, both (O)

    out -----------------------> none (O)
              \
               ----------------> rising, falling, both (X)

 3) [direction]                [value]

    in ------------------------> read (O)
              \
               ----------------> write (X)

    out -----------------------> read, write (O)

Change-Id: I72f8557568916b01c1e2e9edef79ed79f5bb20e6
Signed-off-by: Segwon <segwon.han@samsung.com>
src/interface/peripheral_interface_gpio.c