Help with writing device driver for RS-485 transceiver

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

 



Hi all,

I am trying to write a device driver for two MAX3085Es (a kind of
half-duplex RS-485 transceiver, more product info can be found at
http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2338) which are
connected to S3C2410's UART1 (TXD1 & RXD1), EINT6 (External INTerrupt)
and UART2 (TXD2 & RXD2), EINT7 respectively.

According to the schematic, my intention is:
when there is data arrives on the RS-485 serial line, an external
interrupt (EINT6 or EINT7) would be triggered, and an user space
application (process) would be informed by the interrupt service
routine, and then the application could access the data using a
specific device node under /dev (for example, /dev/max3085e).

So my questions are as follows:
1) How to write a device driver for MAX3085E according to my scenario?

2) Further, how could the application be informed by interrupt service routine?

I am a Linux device driver newbie, any hints would be highly
appreciated, thanks in advance.

--
Best regards,

WANG Zhen
----
Only the paranoid survive.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux