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
MSCFileSystem.h
- Committer:
- WiredHome
- Date:
- 2011-04-04
- Revision:
- 5:42b456ce6f71
- Parent:
- 4:ca93a8d4874d
File content as of revision 5:42b456ce6f71:
/* USB Mass Storage device file system * Copyrigh (c) 2010, Igor Skochinsky * based on SDFileStorage * Copyright (c) 2008-2009, sford */ #ifndef MSCFILESYSTEM_H #define MSCFILESYSTEM_H #include "mbed.h" #include "FATFileSystem.h" /* Class: MSCFileSystem * Access the filesystem on an attached USB mass storage device (e.g. a memory stick) * * Example: * > MSCFileSystem msc("msc"); * > * > int main() { * > FILE *fp = fopen("/msc/myfile.txt", "w"); * > fprintf(fp, "Hello World!\n"); * > fclose(fp); * > } */ class MSCFileSystem : public FATFileSystem { public: /* Constructor: MSCFileSystem * Create the File System for accessing a USB mass storage device * * Parameters: * name - The name used to access the filesystem */ MSCFileSystem(const char* name); virtual int disk_initialize(); virtual int disk_write(const char *buffer, int block_number); virtual int disk_read(char *buffer, int block_number); virtual int disk_status(); virtual int disk_sync(); virtual int disk_sectors(); protected: int initialise_msc(); uint32_t _numBlks; uint32_t _blkSize; }; #endif