Example #1
0
void GpiManager::reinitialize()
{
    QString serialPort = DatabaseManager::getInstance().getConfigurationByName("GpiSerialPort").getValue();
    int baudRate = DatabaseManager::getInstance().getConfigurationByName("GpiBaudRate").getValue().toInt();

    this->device->reset(serialPort, baudRate);

    setupPorts();
}
void main(void)
{
	WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT

	setupPorts();
	//setupTimer();

	_EINT();

	while(1){

		blinkLED1(1);
		USCI_SLAVE_SETUP();

	}
}
Example #3
0
void main(void){

	configClock();
	setupPorts();

	setupTimer();

	_EINT();   // Not really necessary since CPU is going to LPM3 @ the main

	TACCTL0 &= ~CCIE;

	while(1)
	{
		__low_power_mode_3(); //enter LPM3 w/GIE
	}
}