Files
Senior-Design-Project_WMU-S…/Telem_Debug/Debug_BlinkyLED/main.c
William Miceli 27bda00eda Comment changes; changed delay function to use count-down instead of count-up as per TI's Ultra-Low Power Advisor, rule 13.1
It doesn't really make any difference since it's just a delay function, but will follow their best practices anyway.
2021-05-14 17:00:05 -04:00

35 lines
806 B
C

/*
* main.c
*/
#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
clock_init(); //Configure HF and LF clocks
delay();
P8DIR
_EINT(); //enable global interrupts
while(1)
{
P8OUT ^= BIT3; // Toggle P1.0
P8OUT ^= BIT6; // Toggle P1.0
delay();
}
}