Other Parts Discussed in Thread: TM4C123GH6PGE, EK-TM4C123GXL
Hi,
I own a TM4C123GH6PGE evaluation kit.
I have installed CCS5.5 and TI-RTOS 1.10.
I want to use TI-RTOS and the NDK to create a sockets based application.
TM4C123GH6PGE does not have an EMAC on it.
I want to interface the TM4C123GH6PGE with a SPI based Ethernet Controller.
This controller can receive ethernet frames over SPI and forward it to the actual physical medium and whenever it receives a frame via the physical medium, it can interrupt the TM4C123GH6PGE and forward the ethernet frame to it over SPI.
I want to know how I should go about adding this as an EMAC device to NDK. I went through " TMS320C6000 Network Developer's Kit (NDK) Support Package Ethernet Driver Design Guide" and http://processors.wiki.ti.com/index.php/Guidelines_when_porting_NDK_to_different_PHYs but still have lots of doubts.
While browsing the TI-RTOS, I found EMACTiva.c and EMACTiva.c at the location C:\ti\tirtos_1_10_00_23\packages\ti\drivers\emac
1. Can I go on and modify these files and replace the body of the EMAC functions contained in them with my own code to interface to my ethernet controller over SPI?
2. If yes, how would I integrate those two files in my CCS project? do i need to enable EMAC in my RTOS.cfg file? When do I call NIMURegister? Are these functions (The ones in EMACTiva.c) all that are needed to interface an ethernet controller to NDK or are there other things that I have to do?
Functions in EMACTiva.c
EMACTiva_emacStart
EMACTiva_emacStop
EMACTiva_emacPoll
EMACTiva_emacSend
EMACTiva_emacServicePacket
EMACTiva_emacioctl
Thanks
