gps on /dev/ttyS1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello! I have gps device on ttyS1, but to use I must enable it by i2c-tools:
$ i2cset -y 0 0x20 2 0x80 b 0x80

and disable:
$ i2cset -y 0 0x20 2 0x0 b 0x80

I want add some wrapper code to start gps device when ttyS1 is open and shutdown device on close.
How is is easy to do?
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux