I believe the Debug_BlinkyLED-Advanced is now complete; need to test now
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user