Added UART-USB project; has been in development for past few days; currently cannot resolve compilation issues
This commit is contained in:
35
Telem_Debug/Debug_UART-USB/main.c
Normal file
35
Telem_Debug/Debug_UART-USB/main.c
Normal file
@@ -0,0 +1,35 @@
|
||||
#include "SunseekerTelemetry2021.h"
|
||||
#include "clock_init.h"
|
||||
#include "interrupts.h"
|
||||
#include "io_init.h"
|
||||
#include "timers.h"
|
||||
#include "usci_init.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
|
||||
_DINT(); // Disable interrupts
|
||||
|
||||
clock_init(); // Configure HF and LF clocks
|
||||
delay();
|
||||
|
||||
timerB_init(); // Initialize timer B
|
||||
delay();
|
||||
|
||||
io_init(); // Initialize all input/output pins
|
||||
delay();
|
||||
|
||||
usci_init(); // Initialize USCI modules
|
||||
delay();
|
||||
|
||||
P8OUT &= ~LEDY0; // Initially set LEDY0 to High
|
||||
P8OUT |= LEDY1; // Initially set LEDY1 to Low
|
||||
|
||||
_EINT(); // Enable global interrupts
|
||||
|
||||
while(1)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user