Skip to content

Instantly share code, notes, and snippets.

View Vijayenthiran's full-sized avatar

Vijayenthiran Subramaniam Vijayenthiran

View GitHub Profile
@Vijayenthiran
Vijayenthiran / msp430fr231x_lpm_3_5_01.c
Created January 13, 2018 10:23
MSP430FR231x LPM3.5
#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