This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <msp430.h> | |
void initGpio(void); | |
int main(void) | |
{ | |
WDTCTL = WDTPW | WDTHOLD; // Stop WDT | |
initGpio(); // Configure GPIO | |
// Initialize XT1 32kHz crystal | |
P2SEL1 |= BIT6 | BIT7; // P2.6~P2.7: crystal pins |