From f98d12c0f266b9059683a08959f6c3c005bbded2 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 3 May 2010 00:29:13 +0000 Subject: XTI interrupt enable/disable logic git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2647 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/olimex-strp711/src/up_enc28j60.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nuttx/configs/olimex-strp711') diff --git a/nuttx/configs/olimex-strp711/src/up_enc28j60.c b/nuttx/configs/olimex-strp711/src/up_enc28j60.c index 8d80e4d34..f222160d1 100755 --- a/nuttx/configs/olimex-strp711/src/up_enc28j60.c +++ b/nuttx/configs/olimex-strp711/src/up_enc28j60.c @@ -125,9 +125,9 @@ /* SPI Assumptions **********************************************************/ -#define ENC28J60_SPI_PORTNO 1 /* On SPI1 */ -#define ENC28J60_DEVNO 0 /* Only one ENC28J60 */ -#define ENC28J60_IRQ 0 /* NEEDED!!!!!!!!!!!!!!!! */ +#define ENC28J60_SPI_PORTNO 1 /* On SPI1 */ +#define ENC28J60_DEVNO 0 /* Only one ENC28J60 */ +#define ENC28J60_IRQ STR71X_IRQ_FIRSTXTI /* NEEDED!!!!!!!!!!!!!!!! */ #warning "Eventually need to fix XTI IRQ number!" @@ -166,7 +166,7 @@ void up_netinitialize(void) /* Configure the XTI for the ENC28J60 interrupt. */ - ret = str7x_xticonfig(ENC28J60_IRQ, false); + ret = str71x_xticonfig(ENC28J60_IRQ, false); if (ret < 0) { ndbg("Failed configure interrupt for IRQ %d: %d\n", ENC28J60_IRQ, ret); -- cgit v1.2.3