This package contains a simple test of tests for various elements of the SmartBoard hardware, which is a simple baseboard designed for easy embedding. It is able to run both a semi-automatic test suite as well as allow interactive testing.

Dependencies:   EthernetNetIf NTPClient_NetServices mbed

This program is most of what you need to test your SmartBoard baseboard hardware. It provides a means to test the following:

  • Two channels of CAN (with a loopback cable)
  • RS-232 Ports
  • Analog inputs
  • PWM outputs
  • Ethernet port
  • Real time clock
  • micro SD
  • USB Host port
Revision:
2:02e7d896824f
Parent:
1:586392c0e935
Child:
3:2b4fe31e8d15
--- a/SmartBoard_Tester.cpp	Mon Jan 24 00:41:01 2011 +0000
+++ b/SmartBoard_Tester.cpp	Mon Jan 24 00:45:16 2011 +0000
@@ -14,11 +14,11 @@
 #include "SDFileSystem.h"
 #include "MSCFileSystem.h"
 
-Serial pc(USBTX, USBRX);    ///< Used as the console for interactively reporting progress
+Serial pc(USBTX, USBRX);    ///!< Used as the console for interactively reporting progress
 
-const char * TicTocServer = "ntp.okstate.edu";  ///< time server since it is closer than "0.uk.pool.ntp.org"
-const int tzOffsetHr = -6;      ///< time zone offset hours to print time in local time
-const int tzOffsetMin = 0;      ///< time zone offset minutes to print time in local time
+const char * TicTocServer = "ntp.okstate.edu";  ///!< time server since it is closer than "0.uk.pool.ntp.org"
+const int tzOffsetHr = -6;      ///!< time zone offset hours to print time in local time
+const int tzOffsetMin = 0;      ///!< time zone offset minutes to print time in local time
 
 void LED_Tests(void);
 void PWM_Tests(void);
@@ -46,7 +46,7 @@
 /// @returns true if the input parameters was not 'X'.
 ///
 bool TestVector(int i) {
-    bool r = true;  ///< expect to return true
+    bool r = true;  ///!< expect to return true
 
     switch (i) {
         default:
@@ -114,10 +114,10 @@
 /// @returns never
 ///
 int main() {
-    bool init = true;                   ///< init is slightly different
-    bool interactive = false;           ///< track when in interactive mode
-    int test = 0;                       ///< which test to run
-    char TestList[] = "XLPARrMSCEU";    ///< list of valid test commands AUTOTESTS are uppercase
+    bool init = true;                   ///!< init is slightly different
+    bool interactive = false;           ///!< track when in interactive mode
+    int test = 0;                       ///!< which test to run
+    char TestList[] = "XLPARrMSCEU";    ///!< list of valid test commands AUTOTESTS are uppercase
 
     while (1) {
         if (pc.readable() || init) {