cc2420 and cc2430: removed compiler warning on unused tbiv

This commit is contained in:
Simon Duquennoy 2015-10-01 11:59:38 +02:00
parent 560d6af97b
commit 01984f07c2
2 changed files with 2 additions and 0 deletions

View file

@ -45,6 +45,7 @@ ISR(TIMERB1, cc2420_timerb1_interrupt)
ENERGEST_ON(ENERGEST_TYPE_IRQ);
/* always read TBIV to clear IFG */
tbiv = TBIV;
(void)tbiv;
if(CC2420_SFD_IS_1) {
cc2420_sfd_counter++;
cc2420_sfd_start_time = TBCCR1;

View file

@ -44,6 +44,7 @@ ISR(TIMERB1, cc2520_timerb1_interrupt)
ENERGEST_ON(ENERGEST_TYPE_IRQ);
/* always read TBIV to clear IFG */
tbiv = TBIV;
(void)tbiv;
if(CC2520_SFD_IS_1) {
cc2520_sfd_counter++;
cc2520_sfd_start_time = TBCCR1;