Headers for MAX32630FTHR Demo Board sample programs

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers generalinterface.h Source File

generalinterface.h

00001 #ifndef _GENERALINTERFACE_H_
00002 #define _GENERALINTERFACE_H_
00003 
00004 #include "USBSerial.h"
00005 #include "SDFileSystem.h"
00006 #include "USBMSD_BD.h"
00007 #include "SDBlockDevice.h"
00008 #include "HeapBlockDevice.h"
00009 #include "FATFileSystem.h"
00010 
00011 extern Serial daplink;
00012 extern USBSerial microUSB;
00013 extern SDBlockDevice bd;
00014 extern FATFileSystem fs;
00015 extern USBMSD_BD msd;
00016 
00017 /*
00018     Cleans up any left over characters sent via the daplink serial stream
00019 */
00020 void clearSerialStream();
00021 
00022 /*
00023     Initializes the USB file system visible to the computer (routes files to SD card)
00024 */
00025 void startFileSystem();
00026 
00027 /*
00028     Obtains input from the DAPLINK TERMINAL via getc() and echoes it back to the puTTY terminal via putc()
00029     this blocks program flow until a CARRIAGE RETURN ( \r ) is recieved from the PC.
00030 */
00031 bool getInput(int maxSize,char *inputArray);
00032 
00033 #endif