working version of song control with initialization from sd card

Dependencies:   MFRC522 NRF2401P SDFileSystem SPI_TFT_ILI9341 TFT_fonts mbed

Fork of Song_Control by Malcolm McCulloch

test.cpp

Committer:
dxyang
Date:
2016-02-29
Revision:
9:72e93d9ddc8c
Parent:
1:c2232b1eaf31

File content as of revision 9:72e93d9ddc8c:

/**
* All the code associated to run the mbed as a Test
* 
*/
#include "mbed.h"
#include "utils.h"
#define debug 

// Flags
// Variables
// tx nRF2401

long long addr=0xBBBBBBBBBB;
extern int channel;

// Initializaton
/**
* Initialise for a locker
* fp is the config file if additonal information is needed.
*/
void initialiseTest(FILE *fp){
#ifdef debug
    printf("Initialise Test\n\r");
#endif

    // Read in hub address and channel
    if (fscanf (fp,"%x %*c %*s",&channel )!=1) writeError("Test config: cannot read channel");
    if (fscanf (fp,"%llx %*c %*s",&addr )!=1) writeError("Test config: cannot read address");

#ifdef debug
    printf("  Channel:%x,  Address %llx \n\r",channel, addr);
#endif


}
// Interupt routines


// Loop through slow routines

void loopTest(){

}