mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-19 03:05:14 +00:00
use smaller payload buffer size and provision for synchronization word in
the total buffer.
This commit is contained in:
parent
bcefffb0e7
commit
1566f55e04
@ -86,7 +86,7 @@
|
||||
#define RX_CURRENT 0x86
|
||||
|
||||
// CC1020 driver configuration
|
||||
#define CC1020_BUFFERSIZE 250
|
||||
#define CC1020_BUFFERSIZE 128
|
||||
|
||||
// PDI (Data in) is on P21
|
||||
#define PDO (P2IN & 0x01)
|
||||
|
@ -76,8 +76,8 @@ static void cc1020_reset(void);
|
||||
// current mode of cc1020 chip
|
||||
static enum cc1020_state cc1020_state = CC1020_OFF;
|
||||
static volatile uint8_t cc1020_rxbuf[HDRSIZE + CC1020_BUFFERSIZE];
|
||||
static uint8_t cc1020_txbuf[PREAMBLESIZE + HDRSIZE + CC1020_BUFFERSIZE +
|
||||
TAILSIZE];
|
||||
static uint8_t cc1020_txbuf[PREAMBLESIZE + SYNCWDSIZE + HDRSIZE +
|
||||
CC1020_BUFFERSIZE + TAILSIZE];
|
||||
//static volatile enum cc1020_rxstate cc1020_rxstate = CC1020_RX_SEARCHING;
|
||||
|
||||
// number of bytes in receive and transmit buffers respectively.
|
||||
|
Loading…
Reference in New Issue
Block a user