USB Device Programming class project. This project allows a Python/Tk program running on a PC host to monitor/control a test-CPU programmed into an altera development board.
Dependencies: C12832_lcd USBDevice mbed-rtos mbed mmSPI
Diff: main.cpp
- Revision:
- 9:81726c95be74
- Parent:
- 2:08655e2bb776
--- a/main.cpp Sun Sep 01 03:55:03 2013 +0000 +++ b/main.cpp Sun Sep 01 04:06:30 2013 +0000 @@ -370,7 +370,7 @@ { // bring it in from the queue. gpToHost = (tToHost *) gqToHostEvent.value.p; - if (!gpToHost) error("\n\r processOutgoingSerial : FATAL null gpToHost pointer. \n\r"); + if (!gpToHost) error("\n\r processOutgoingSerial : FATAL NULL gpToHost pointer. \n\r"); // clear outgoing buffer. for (dLoop = 0; dLoop < SER_BYTES; dLoop++) gpcSerialToHost[dLoop] = 0; @@ -440,7 +440,7 @@ for (dLoop = 0; dLoop < SPI_BYTES; dLoop++) pcReceiveBuffer[dLoop] = 0; pSPI = new mmSPI; // SPI allocation. - if (!pSPI) error("\n\r SPIprocessingThread : FATAL malloc error for pSPI. \n\r"); + if (!pSPI) error("\n\r SPIprocessingThread : FATAL new error for pSPI. \n\r"); pSPI->setSendBuffer (pcSendBuffer); // set SPI send buffer. pSPI->setReceiveBuffer(pcReceiveBuffer); // set SPI receive buffer. @@ -456,7 +456,7 @@ { // bring it in from the queue. pFromHost = (tFromHost *) qFromHostEvent.value.p; - if (!pFromHost) error("\n\r SPIprocessingThread : FATAL null pFromHost pointer. \n\r"); + if (!pFromHost) error("\n\r SPIprocessingThread : FATAL NULL pFromHost pointer. \n\r"); switch(pFromHost->cCommand) // host command decode. {