use smaller payload buffer size and provision for synchronization word in

the total buffer.
This commit is contained in:
nvt-se 2007-12-17 20:15:53 +00:00
parent bcefffb0e7
commit 1566f55e04
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@
#define RX_CURRENT 0x86 #define RX_CURRENT 0x86
// CC1020 driver configuration // CC1020 driver configuration
#define CC1020_BUFFERSIZE 250 #define CC1020_BUFFERSIZE 128
// PDI (Data in) is on P21 // PDI (Data in) is on P21
#define PDO (P2IN & 0x01) #define PDO (P2IN & 0x01)

View File

@ -76,8 +76,8 @@ static void cc1020_reset(void);
// current mode of cc1020 chip // current mode of cc1020 chip
static enum cc1020_state cc1020_state = CC1020_OFF; static enum cc1020_state cc1020_state = CC1020_OFF;
static volatile uint8_t cc1020_rxbuf[HDRSIZE + CC1020_BUFFERSIZE]; static volatile uint8_t cc1020_rxbuf[HDRSIZE + CC1020_BUFFERSIZE];
static uint8_t cc1020_txbuf[PREAMBLESIZE + HDRSIZE + CC1020_BUFFERSIZE + static uint8_t cc1020_txbuf[PREAMBLESIZE + SYNCWDSIZE + HDRSIZE +
TAILSIZE]; CC1020_BUFFERSIZE + TAILSIZE];
//static volatile enum cc1020_rxstate cc1020_rxstate = CC1020_RX_SEARCHING; //static volatile enum cc1020_rxstate cc1020_rxstate = CC1020_RX_SEARCHING;
// number of bytes in receive and transmit buffers respectively. // number of bytes in receive and transmit buffers respectively.