Hi everyone,
it is probably a very stupid question.
But i'm simply trying to toggle a LED(P1.0) by using the button S2(P1.1) which is on the launch pad of FR5969.
but it is not wotking at all...
#include <msp430.h>
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1DIR |= 0x01; // Set P1.0 to output direction
P1REN = 0x02; ?
P1OUT= 0x02; ?
P1IE |= 0x02; // P1.1 interrupt enabled
P1IES |= 0x02; // P1.1 Hi/lo edge
P1IFG &= ~0x02; // P1.1 IFG cleared
_BIS_SR(LPM3_bits + GIE); // Enter LPM4 w/interrupt
}
// Port 1 interrupt service routine
#pragma