move MAX_PACKET_SIZE to maca.h
This commit is contained in:
parent
67db72908a
commit
b39287cc2d
|
@ -5,6 +5,8 @@
|
||||||
#include <types.h>
|
#include <types.h>
|
||||||
#include <utils.h>
|
#include <utils.h>
|
||||||
|
|
||||||
|
#define MAX_PACKET_SIZE (MAX_PAYLOAD_SIZE + 2) /* packet includes 2 bytes of checksum */
|
||||||
|
|
||||||
#define MACA_BASE (0x80004000)
|
#define MACA_BASE (0x80004000)
|
||||||
#define MACA_RESET ((volatile uint32_t *) (MACA_BASE+0x04))
|
#define MACA_RESET ((volatile uint32_t *) (MACA_BASE+0x04))
|
||||||
#define MACA_RANDOM ((volatile uint32_t *) (MACA_BASE+0x08))
|
#define MACA_RANDOM ((volatile uint32_t *) (MACA_BASE+0x08))
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
#define RECV_SOFTIMEOUT (32*128*CLK_PER_BYTE)
|
#define RECV_SOFTIMEOUT (32*128*CLK_PER_BYTE)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_PACKET_SIZE (MAX_PAYLOAD_SIZE + 2) /* packet includes 2 bytes of checksum */
|
|
||||||
|
|
||||||
#define reg(x) (*(volatile uint32_t *)(x))
|
#define reg(x) (*(volatile uint32_t *)(x))
|
||||||
|
|
||||||
static volatile packet_t packet_pool[NUM_PACKETS];
|
static volatile packet_t packet_pool[NUM_PACKETS];
|
||||||
|
|
Loading…
Reference in a new issue