From b39287cc2d5bad95d5cb172d0a2cc089368f8faf Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Fri, 19 Mar 2010 22:32:55 -0400 Subject: [PATCH] move MAX_PACKET_SIZE to maca.h --- lib/include/maca.h | 2 ++ lib/maca.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/maca.h b/lib/include/maca.h index 65ee3605d..1540f682e 100644 --- a/lib/include/maca.h +++ b/lib/include/maca.h @@ -5,6 +5,8 @@ #include #include +#define MAX_PACKET_SIZE (MAX_PAYLOAD_SIZE + 2) /* packet includes 2 bytes of checksum */ + #define MACA_BASE (0x80004000) #define MACA_RESET ((volatile uint32_t *) (MACA_BASE+0x04)) #define MACA_RANDOM ((volatile uint32_t *) (MACA_BASE+0x08)) diff --git a/lib/maca.c b/lib/maca.c index 918d717c3..f48c7bee3 100644 --- a/lib/maca.c +++ b/lib/maca.c @@ -24,8 +24,6 @@ #define RECV_SOFTIMEOUT (32*128*CLK_PER_BYTE) #endif -#define MAX_PACKET_SIZE (MAX_PAYLOAD_SIZE + 2) /* packet includes 2 bytes of checksum */ - #define reg(x) (*(volatile uint32_t *)(x)) static volatile packet_t packet_pool[NUM_PACKETS];