Headers for MAX32630FTHR Demo Board sample programs

Committer:
Lugs
Date:
Tue Jul 30 02:44:30 2019 +0000
Revision:
0:a6a8578e95af
actually working header-using version of mini piano player

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Lugs 0:a6a8578e95af 1 #ifndef _GENERALINTERFACE_H_
Lugs 0:a6a8578e95af 2 #define _GENERALINTERFACE_H_
Lugs 0:a6a8578e95af 3
Lugs 0:a6a8578e95af 4 #include "USBSerial.h"
Lugs 0:a6a8578e95af 5 #include "SDFileSystem.h"
Lugs 0:a6a8578e95af 6 #include "USBMSD_BD.h"
Lugs 0:a6a8578e95af 7 #include "SDBlockDevice.h"
Lugs 0:a6a8578e95af 8 #include "HeapBlockDevice.h"
Lugs 0:a6a8578e95af 9 #include "FATFileSystem.h"
Lugs 0:a6a8578e95af 10
Lugs 0:a6a8578e95af 11 extern Serial daplink;
Lugs 0:a6a8578e95af 12 extern USBSerial microUSB;
Lugs 0:a6a8578e95af 13 extern SDBlockDevice bd;
Lugs 0:a6a8578e95af 14 extern FATFileSystem fs;
Lugs 0:a6a8578e95af 15 extern USBMSD_BD msd;
Lugs 0:a6a8578e95af 16
Lugs 0:a6a8578e95af 17 /*
Lugs 0:a6a8578e95af 18 Cleans up any left over characters sent via the daplink serial stream
Lugs 0:a6a8578e95af 19 */
Lugs 0:a6a8578e95af 20 void clearSerialStream();
Lugs 0:a6a8578e95af 21
Lugs 0:a6a8578e95af 22 /*
Lugs 0:a6a8578e95af 23 Initializes the USB file system visible to the computer (routes files to SD card)
Lugs 0:a6a8578e95af 24 */
Lugs 0:a6a8578e95af 25 void startFileSystem();
Lugs 0:a6a8578e95af 26
Lugs 0:a6a8578e95af 27 /*
Lugs 0:a6a8578e95af 28 Obtains input from the DAPLINK TERMINAL via getc() and echoes it back to the puTTY terminal via putc()
Lugs 0:a6a8578e95af 29 this blocks program flow until a CARRIAGE RETURN ( \r ) is recieved from the PC.
Lugs 0:a6a8578e95af 30 */
Lugs 0:a6a8578e95af 31 bool getInput(int maxSize,char *inputArray);
Lugs 0:a6a8578e95af 32
Lugs 0:a6a8578e95af 33 #endif