Improve rf23x cca procesing
Fix delay_loop timing bug by using long long calculation. 128rfa1 and rf230 both working with contikimac RDC
This commit is contained in:
parent
062b85123e
commit
31ba84eb75
3 changed files with 30 additions and 19 deletions
|
@ -66,13 +66,15 @@
|
|||
#define RF230_REVA ( 1 )
|
||||
#define RF230_REVB ( 2 )
|
||||
#define SUPPORTED_MANUFACTURER_ID ( 31 )
|
||||
/* RF230 does not support RX_START interrupts in extended mode, but it seems harmless to always enable it. */
|
||||
/* In non-extended mode this allows RX_START to sample the RF rssi at the end of the preamble */
|
||||
//#define RF230_SUPPORTED_INTERRUPT_MASK ( 0x0C ) //disable RX_START
|
||||
|
||||
#if defined(__AVR_ATmega128RFA1__)
|
||||
#define RF230_SUPPORTED_INTERRUPT_MASK ( 0xFF )
|
||||
#else
|
||||
#define RF230_SUPPORTED_INTERRUPT_MASK ( 0x0F )
|
||||
/* RF230 does not support RX_START interrupts in extended mode, but it seems harmless to always enable it. */
|
||||
/* In non-extended mode this allows RX_START to sample the RF rssi at the end of the preamble */
|
||||
//#define RF230_SUPPORTED_INTERRUPT_MASK ( 0x08 ) //enable trx end only
|
||||
//#define RF230_SUPPORTED_INTERRUPT_MASK ( 0x0F ) //disable bat low, trx underrun
|
||||
#define RF230_SUPPORTED_INTERRUPT_MASK ( 0x0C ) //disable bat low, trx underrun, pll lock/unlock
|
||||
#endif
|
||||
|
||||
#define RF230_MIN_CHANNEL ( 11 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue