#include "driverlib.h"
#include <msp430.h>
void main (void)
{
//Stop WDT
WDT_A_hold(WDT_A_BASE);
PMM_unlockLPM5();
//LINE relay mosfet gate signal pin
GPIO_setAsOutputPin(
GPIO_PORT_P3,
GPIO_PIN6
);
//NEUTRAL relay mosfet gate signal pin
GPIO_setAsOutputPin(
GPIO_PORT_P3,
GPIO_PIN7
);
//just for toggling one GPIO pin
GPIO_setAsOutputPin(
GPIO_PORT_P2,
GPIO_PIN4
);
while(1)
{
__delay_cycles(700000);
GPIO_setOutputHighOnPin( GPIO_PORT_P3,GPIO_PIN6);
__delay_cycles(700000);
GPIO_setOutputHighOnPin( GPIO_PORT_P3,GPIO_PIN7);
__delay_cycles(700000);
GPIO_setOutputLowOnPin( GPIO_PORT_P3,GPIO_PIN6);
__delay_cycles(700000);
GPIO_setOutputLowOnPin( GPIO_PORT_P3,GPIO_PIN7);
GPIO_toggleOutputOnPin(GPIO_PORT_P2,GPIO_PIN4);
}
}