summaryrefslogtreecommitdiff
path: root/nuttx/configs/olimex-strp711/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-05-03 00:29:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-05-03 00:29:13 +0000
commitf98d12c0f266b9059683a08959f6c3c005bbded2 (patch)
treeb4862850ba647500fb0519067515e0666d7561ea /nuttx/configs/olimex-strp711/src
parent3189113f3d66055d80d8b97f11ebe391ae53c1f6 (diff)
downloadpx4-nuttx-f98d12c0f266b9059683a08959f6c3c005bbded2.tar.gz
px4-nuttx-f98d12c0f266b9059683a08959f6c3c005bbded2.tar.bz2
px4-nuttx-f98d12c0f266b9059683a08959f6c3c005bbded2.zip
XTI interrupt enable/disable logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2647 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/olimex-strp711/src')
-rwxr-xr-xnuttx/configs/olimex-strp711/src/up_enc28j60.c8
1 files changed, 4 insertions, 4 deletions
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);