![Isee IGEP v2 Скачать руководство пользователя страница 31](http://html.mh-extra.com/html/isee/igep-v2/igep-v2_hardware-reference-manual_2092480031.webp)
IGEP
TM
v2
Hardware Reference Manual
ISEE 2007 S.L. All rights reserved, IGEP
™
is a registered trademar k from ISEE 2007 S.L. The followi ng is provided for informational purpos es onl y.
DOCUMENT FROM ISEE 2007 S.L. Ref: MAN-PR-IGEP0020-RCx
31
Figure 29 IGEP
™
v2 revision C resistors for UART hardware selection
5.10.3
HOW TO USE UART 1
On IGEP
™
v2 revision C, UART1 is shared with RS485 driver.
In order to use UART1 as RS232 port instead of RS485 you need configure to UART1_RTS and
UART1_CTS pins in safe mode. To do that you have two options:
1.
Modify your kernel:
a.
On file board-igep0020.c
b.
On function static void __init igep2_init(void)
c.
After line omap3_mux_init(board_mux, OMAP_PACKAGE_CBB)
d.
Place this two lines:
i.
omap_mux_init_signal("uart1_rts.safe_mode", 0);
ii.
omap_mux_init_signal("uart1_cts.safe_mode", 0);
2.
From kernel space:
a.
$ mount -t debugfs none /sys/kernel/debug
b.
$ echo 0x007 > /sys/kernel/debug/omap_mux/uart1_rts
c.
$ echo 0x007 > /sys/kernel/debug/omap_mux/uart1_cts
Take care that next two options are enabled on your kernel:
1.
CONFIG_OMAP_MUX=y
2.
CONFIG_OMAP_MUX_DEBUG=y