Added UART-USB project; has been in development for past few days; currently cannot resolve compilation issues

This commit is contained in:
William Miceli
2021-05-31 17:56:29 -04:00
parent b5fc460e46
commit e56fcb5e8f
22 changed files with 1267 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#include "interrupts.h"
extern volatile unsigned char status_flag;
/*
* Timer B CCR0 Interrupt Service Routine
* - Interrupts on Timer B CCR0 match at 10Hz
* - Sets Time_Flag variable
*/
/*
* GNU interrupt semantics
* interrupt(TIMERB0_VECTOR) timer_b0(void)
*/
#pragma vector = TIMERB0_VECTOR
__interrupt void timer_b0(void)
{
static unsigned int status_count = TELEM_STATUS_COUNT;
// Primary System Heart beat
status_count--;
if(status_count == 0){
status_count = TELEM_STATUS_COUNT;
status_flag = TRUE;
P8OUT |= LEDG; // Turn on the green LED
}else{
P8OUT &= ~LEDG; // Turn off the green LED
}
}