mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
arch/arm/src/samv7/sam_emac.c: Fix a compile problem introduced with commit cf1e0f7976.
This commit is contained in:
@@ -342,6 +342,7 @@
|
|||||||
|
|
||||||
#define EMAC_NQUEUES_REVA 3
|
#define EMAC_NQUEUES_REVA 3
|
||||||
#define EMAC_NQUEUES_REVB 6
|
#define EMAC_NQUEUES_REVB 6
|
||||||
|
#define EMAC_NQUEUES_MAX 6
|
||||||
|
|
||||||
/* Interrupt settings */
|
/* Interrupt settings */
|
||||||
|
|
||||||
@@ -547,15 +548,15 @@ struct sam_emac_s
|
|||||||
|
|
||||||
/* Transfer queues */
|
/* Transfer queues */
|
||||||
|
|
||||||
struct sam_queue_s xfrq[EMAC_MAX_NQUEUES];
|
struct sam_queue_s xfrq[EMAC_NQUEUES_MAX];
|
||||||
|
|
||||||
/* Debug stuff */
|
/* Debug stuff */
|
||||||
|
|
||||||
#ifdef CONFIG_SAMV7_EMAC_REGDEBUG
|
#ifdef CONFIG_SAMV7_EMAC_REGDEBUG
|
||||||
bool wrlast; /* Last was a write */
|
bool wrlast; /* Last was a write */
|
||||||
uintptr_t addrlast; /* Last address */
|
uintptr_t addrlast; /* Last address */
|
||||||
uint32_t vallast; /* Last value */
|
uint32_t vallast; /* Last value */
|
||||||
int ntimes; /* Number of times */
|
int ntimes; /* Number of times */
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user