Use splhigh and splx.

This commit is contained in:
nvt-se 2007-09-14 19:20:54 +00:00
parent 290f41db06
commit 6955e028da
2 changed files with 9 additions and 4 deletions

View file

@ -130,7 +130,9 @@ uart_unlock(unsigned char mode)
static void
uart_configure(unsigned char mode)
{
_DINT();
int s;
s = splhigh();
UART_WAIT_TXDONE();
@ -162,7 +164,8 @@ uart_configure(unsigned char mode)
UMCTL1 = uart_speed_bmn[mode]; // set modulation
UCTL1 &= ~SWRST; // clear reset flag
_EINT(); // enable interrupts
splx(s);
}
static void