Wake up from sleep in the interrupt when the receiver process is going

to be polled.
This commit is contained in:
nvt-se 2007-12-18 15:26:25 +00:00
parent d21572da02
commit f9d24f0d24
1 changed files with 3 additions and 1 deletions

View File

@ -272,6 +272,7 @@ int
cc1020_read(void *buf, unsigned short size)
{
unsigned len;
printf("Read time: %lu\n", RTIMER_NOW());
if (cc1020_rxlen <= HDRSIZE)
return 0;
@ -450,7 +451,8 @@ interrupt(UART0RX_VECTOR) cc1020_rxhandler(void)
// disable receiver
DISABLE_RX_IRQ();
CC1020_SET_OPSTATE(CC1020_RX | CC1020_RX_PROCESSING);
_BIC_SR_IRQ(LPM3_bits);
printf("Poll time: %lu\n", RTIMER_NOW());
// call receiver to copy from buffer
process_poll(&cc1020_receiver_process);
}