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];