Skip to content

Instantly share code, notes, and snippets.

@ZachOrr
Created February 13, 2013 23:15
Show Gist options
  • Save ZachOrr/4949295 to your computer and use it in GitHub Desktop.
Save ZachOrr/4949295 to your computer and use it in GitHub Desktop.
#include <msp430g2553.h>
extern void turnLEDOn();
int main() {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog
turnLEDOn(); // Call our assembly code
return 0;
}
.global turnLEDOn
turnLEDOn:
bis.b #0x0001, &0x0022 ; Make P1.0 an output
bis.b #0x0001, &0x0021 ; Turn P1.0 on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment