Embedded RTOS 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-2 watchdog

Fork of USB_device_project by Mike Moore

Files at this revision

API Documentation at this revision

Comitter:
gatedClock
Date:
Sun Sep 01 04:06:30 2013 +0000
Parent:
8:db29cce17a33
Child:
10:a3245aefabe9
Commit message:
tweak error messages.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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.
           {