|
|
ARM 5.4.2. DCC driver
Transmitting and receiving DCC data by installing 5.4.2. DCC driver.
By lea on August 19, 2009
|
You must write a DCC driver to allow the sending and receiving of words of data in an interrupt-driven manner (see the uC/OS-II port example described in readme_uCOS.txt). This must buffer one word of data in each direction to allow for rapid transmission (between target and host).
The DCC driver has two main responsibilities:
-
Transmitting DCC data
-
Receiving DCC data.
The transmit component of the driver must operate as follows:
-
Wait for a COMMTX interrupt.
-
Send the next word of data, over the DCC, from the one-word transmit buffer.
-
Disable the COMMTX interrupt source so that no further interrupts are received until the monitor thread has placed the next word of data in the buffer.
-
Post a semaphore.
The semaphore that is posted then allows the monitor thread(Monitor driver) to generate new data for transmission .
The receive component of the driver must operate in a similar manner:
-
Wait for a COMMRX interrupt.
-
Read the next word of data, from the DCC, and store it in the one-word receive buffer.
-
Disable the COMMRX interrupt source so that no further interrupts are received until the monitor thread has processed the word of data in the buffer.
-
Post a semaphore.
More drivers download you can go to www.downloadatoz.com/driver/
|
|
|
ARM 5.4.2. DCC driver
Transmitting and receiving DCC data by installing 5.4.2. DCC driver.
By lea on August 19, 2009
|
|


|