Copied "Basic" version of BlinkyLED project to integrate the use of timers and interrupts to accomplish the same thing; Not complete, only copied so far

This commit is contained in:
William Miceli
2021-05-15 21:32:46 -04:00
parent a25d6e03cf
commit 8704d3841c
13 changed files with 1028 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
/*
* main.c
*/
#include "SunseekerTelemetry2021.h"
int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
_DINT(); // Disables interrupts
clock_init(); // Configure HF and LF clocks
delay();
P8DIR = LEDG | LEDR | LEDY0 | LEDY1; // Set all four main LEDs as output
P8OUT |= LEDG; // Turn on permanently the green LED
_EINT(); //enable global interrupts
while(1)
{
P8OUT ^= LEDY0 | LEDY1; // Toggle both yellow LEDs
delay();
}
}