BlinkyLED-Basic should be completed; it has an intentionally extremely simple program loop

This commit is contained in:
William Miceli
2021-05-15 21:16:24 -04:00
parent 27bda00eda
commit 3f7a034389
16 changed files with 8960 additions and 9201 deletions

View File

@@ -4,31 +4,21 @@
#include "SunseekerTelemetry2021.h"
// General Variables
// CAN Communication Variables
volatile unsigned char cancomm_flag = FALSE; //used for CAN transmission timing
volatile unsigned char send_can = FALSE; //used for CAN transmission timing
volatile unsigned char rcv_can = FALSE; //used for CAN transmission timing
volatile unsigned char can_full = FALSE; //used for CAN transmission status
int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
_DINT(); //disables interrupts
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
_DINT(); // Disables interrupts
clock_init(); //Configure HF and LF clocks
clock_init(); // Configure HF and LF clocks
delay();
P8DIR
P8DIR = LEDG | LEDR | LEDY0 | LEDY1; // Set all four main LEDs as output
P8OUT |= LEDG; // Turn on permanently the green LED
_EINT(); //enable global interrupts
_EINT(); //enable global interrupts
while(1)
{
P8OUT ^= BIT3; // Toggle P1.0
P8OUT ^= BIT6; // Toggle P1.0
P8OUT ^= LEDY0 | LEDY1; // Toggle both yellow LEDs
delay();
}
}