Skip to content

Commit

Permalink
Merge pull request #28 from alexpogostin/fix-interrupts-c
Browse files Browse the repository at this point in the history
Fix interrupts c
  • Loading branch information
alexpogostin committed Jan 7, 2024
2 parents d7d6ecd + e319767 commit a7ff768
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

#include "twine.h"

/*****************************************************************************/
/* global declarations */
/*****************************************************************************/
#define OFS_UCA0RXBUF 0x0C
/*****************************************************************************/
/* externs - these global variables are declared in tasks.c */
/*****************************************************************************/
Expand Down Expand Up @@ -86,7 +90,7 @@ __interrupt void USCIA0Interrupt(void)
break;

case 0x02: // RX interrupt
rxReg = read_reg_8(EUSCI_A0_BASE + UCA0RXBUF);
rxReg = read_reg_8(EUSCI_A0_BASE + OFS_UCA0RXBUF);
if(i < UART_RX_BUF_SIZE - 1)
{
if(rxReg == BACKSPACE)
Expand Down

0 comments on commit a7ff768

Please sign in to comment.