installVP and removeVP
I must have a mis-apprehension about what removeVp and installVP do. I want to use these to keep the number of VPs down. So I creat a VP remove it and then reinstall it when needed. However, the way I implemented this did not work. Code is attached. I am testing the approach by sending text to the 4x20 LCD display. A flag determines whether the removeVPP/installVP system is in place. That way I can verify that other aspects of the code do what I intended.
marshall edgell
marshall edgell
java
![](/plugins/FileUpload/images/file.png)
396B
Comments
Instead, use the provided start() and stop() for the Uart class.
Eg.
To stop a Uart, call dataFromCPU.stop()
To start a Uart, call dataFromCPU.start()
Edit:
Before stopping a transmit uart, call
while (!dataFromCPU.sendBufferEmpty()) ;
This will ensure all data will have been transmitted
before the uart is stopped.
regards peter
Post Edited (Peter Verkaik) : 6/19/2008 12:16:06 AM GMT
What are the removeVp and installVP functions for?
marshall
an object reference to the vpList, removeVP removes it
from the vpList.
regards peter