Hi,
The TS-CAN1 board is really special, if you want to use a driver for recieve
and transmit I suggest you to develop a new driver only for that purpose.
What you need to develop a new driver, is to map the physical register and
start writing to those mapped registers the correct bits, in special to:
BASE + 4: Page selection register
BASE + 5: Mode control register
The page selection register, is to acces to the the SJA1000 registers, in these
registers you can configure the baudrate, the output mode, the bytes to be
sent, etc.
Read the lincan source, they do this implementation by a char driver, I think
the only difference is that they use memset instead of __ioremap to map the
physical registers.
Regards,
Edwin Samanez,
--- In "zhangjing80" <> wrote:
>
> hello, everyone, I'm beginner in the learning of embedded Linux. sevaral days
> ago I have bought a TS-7300 and a TS-CAN1 board. I have also read some
> relative manuals. It says that TS-CAN1 can work with TS-7300 as a integrated
> system with this command.
> # insmod -f lincan.o hw=tscan1 io=0x150 baudrate=1000
> But there are no further informations. So I'm very comfused about some
> details and have some questions as follows. Might somebody give me any help.
> Thank you very much in advance.
> 1.first, the TS-CAN1 board receives CAN message, then send them to TS-7300 by
> PC/104.And vice versa. You know that these I/O interfaces are fixed. Have the
> relative programs been written yet?
> 2.you know, CAN module has read and write functions. Maybe these functions
> are contained in SJA1000.c. When I wanna send a frame CAN message, I must
> write the data£¬id and so forth. Have these programs been written yet? How
> can I write the datas and id?
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|