uart: try to open uart based on uart.ini 53/260753/2 accepted/tizen/unified/20210705.125135 submit/tizen/20210705.023617
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 2 Jul 2021 06:19:20 +0000 (15:19 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Fri, 2 Jul 2021 06:55:13 +0000 (15:55 +0900)
commitfa9c36057d082414262a185813565abc8874862e
treee8f892fa4ec0309865893b68e59b0c92c55a7ae0
parent0b7edafc65d8e3cad5fe1a3f250fb2c39619753f
uart: try to open uart based on uart.ini

Now try once to find which devpath corresponds to a port number. It is
specified in /hal/etc/peripheral-io/uart.ini. For example, if the
uart.ini contains
  [UART]
  0=/dev/ttyS0
then it returns "/dev/ttyS0" as devpath of the port number 0.
If the above process fail, follow normal opening routine.

Change-Id: Icec9d6601387f7f135b6e1a8692915553014ae8c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/peripheral_uart.c