get LQI of received packets
This commit is contained in:
parent
ae0b7f846f
commit
f1fede7090
4 changed files with 11 additions and 5 deletions
|
@ -30,7 +30,7 @@
|
|||
* This file is part of libmc1322x: see http://mc1322x.devl.org
|
||||
* for details.
|
||||
*
|
||||
* $Id: maca.c,v 1.5 2010/07/28 18:49:34 maralvira Exp $
|
||||
* $Id: maca.c,v 1.6 2010/11/07 14:06:58 maralvira Exp $
|
||||
*/
|
||||
|
||||
#include <mc1322x.h>
|
||||
|
@ -609,6 +609,7 @@ void maca_isr(void) {
|
|||
if (data_indication_irq()) {
|
||||
*MACA_CLRIRQ = (1 << maca_irq_di);
|
||||
dma_rx->length = *MACA_GETRXLVL - 2; /* packet length does not include FCS */
|
||||
dma_rx->lqi = get_lqi();
|
||||
// PRINTF("maca data ind %x %d\n\r", dma_rx, dma_rx->length);
|
||||
if(maca_rx_callback != 0) { maca_rx_callback(dma_rx); }
|
||||
add_to_rx(dma_rx);
|
||||
|
@ -1078,6 +1079,8 @@ void set_channel(uint8_t chan) {
|
|||
if(bit_is_set(*NIPEND, INT_NUM_MACA)) { *INTFRC = (1 << INT_NUM_MACA); }
|
||||
}
|
||||
|
||||
uint8_t (*get_lqi)(void) = (void *) 0x0000e04d;
|
||||
|
||||
#define ROM_END 0x0013ffff
|
||||
#define ENTRY_EOF 0x00000e0f
|
||||
/* processes up to 4 words of initialization entries */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue