void boardInitialisation(void)
{
	WDT_A_hold( WDT_A_BASE );																//MSP's WDT is turned on by default. If you don't stop it, at some point, your system'll restart
	unusedPinsConfiguration();																//To minimise power consumption, all pins needs to be initialised. Floating pins waste a lot of power
	pinConfiguration();																		//This function will configure all the pins used in this project
	clockConfiguration();																	//Will configure MCLK = SMCLK = 8MHz and ACLK to 32768 Hz
	ADCConfiguration();																		//Will configure ADC and memory location to which it'll write to
	timerConfiguration();																	//Will configure timer to tick once every 8 seconds
}
Example #2
0
/* Constructor and Destructor */
MainWindow::MainWindow(QWidget *parent):QMainWindow(parent),ui(new Ui::MainWindow){
    uiConfiguration();
    timerConfiguration();

    printCredits();
    printHelp();

    stereo = new StereoProcessor(0);
    stereoVisionProcessInit();

    closeEventOccured = false;
    isTrackingObjects=true;
}