I believe the Debug_BlinkyLED-Advanced is now complete; need to test now

This commit is contained in:
William Miceli
2021-05-18 12:57:24 -04:00
parent b719769971
commit 02d9ac3003
10 changed files with 230 additions and 65 deletions

View File

@@ -3,6 +3,12 @@
*/
#include "SunseekerTelemetry2021.h"
#include "clock_init.h"
#include "interrupts.h"
#include "io_init.h"
#include "timers.h"
volatile unsigned char status_flag = FALSE;
int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer; `WDTPW` is the "WatchDog Timer PassWord", required for all `WDTCTL` operations
@@ -11,8 +17,14 @@ int main(void) {
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
timerB_init(); // Initialize timer B
delay();
io_init(); // Initialize all input/output pins
delay();
P8OUT &= ~LEDY0; // Initially set LEDY0 to High
P8OUT |= LEDY1; // Initially set LEDY1 to Low
_EINT(); //enable global interrupts