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,9 @@
#include "timers.h"
void timerB_init(void)
{
TBCTL = CNTL_0 | TBSSEL_1 | ID_3 | TBCLR; // ACLK/8, clear TBR
TBCCR0 = (ACLK_RATE/8/TICK_RATE); // Set timer to count to this value = TICK_RATE overflow
TBCCTL0 = CCIE; // Enable CCR0 interrupt
TBCTL |= MC_1; // Set timer to 'up' count mode
}