diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-03 03:46:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-03 03:46:21 +0000 |
commit | eccc4cf309273c74ea4a51c57efcaf29572175c0 (patch) | |
tree | 7cfa06e17a5b58678257f51b39b8ccec43db8e78 /nuttx/configs/olimex-strp711 | |
parent | 2e25934ad05dbfc7d1bdd3448dc8e898e8144f8a (diff) | |
download | px4-nuttx-eccc4cf309273c74ea4a51c57efcaf29572175c0.tar.gz px4-nuttx-eccc4cf309273c74ea4a51c57efcaf29572175c0.tar.bz2 px4-nuttx-eccc4cf309273c74ea4a51c57efcaf29572175c0.zip |
More debug fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2649 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/olimex-strp711')
-rwxr-xr-x | nuttx/configs/olimex-strp711/src/up_enc28j60.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/nuttx/configs/olimex-strp711/src/up_enc28j60.c b/nuttx/configs/olimex-strp711/src/up_enc28j60.c index f222160d1..047d271cf 100755 --- a/nuttx/configs/olimex-strp711/src/up_enc28j60.c +++ b/nuttx/configs/olimex-strp711/src/up_enc28j60.c @@ -125,7 +125,7 @@ /* SPI Assumptions **********************************************************/ -#define ENC28J60_SPI_PORTNO 1 /* On SPI1 */ +#define ENC28J60_SPI_PORTNO 0 /* On SPI0 */ #define ENC28J60_DEVNO 0 /* Only one ENC28J60 */ #define ENC28J60_IRQ STR71X_IRQ_FIRSTXTI /* NEEDED!!!!!!!!!!!!!!!! */ @@ -154,13 +154,12 @@ void up_netinitialize(void) /* Get the SPI port */ - nvdbg("Initializing SPI port %d\n", ENC28J60_SPI_PORTNO); + nllvdbg("Initializing SPI port %d\n", ENC28J60_SPI_PORTNO); spi = up_spiinitialize(ENC28J60_SPI_PORTNO); if (!spi) { - ndbg("Failed to initialize SPI port %d\n", - ENC28J60_SPI_PORTNO); + nlldbg("Failed to initialize SPI port %d\n", ENC28J60_SPI_PORTNO); return; } @@ -169,27 +168,26 @@ void up_netinitialize(void) ret = str71x_xticonfig(ENC28J60_IRQ, false); if (ret < 0) { - ndbg("Failed configure interrupt for IRQ %d: %d\n", ENC28J60_IRQ, ret); + nlldbg("Failed configure interrupt for IRQ %d: %d\n", ENC28J60_IRQ, ret); return; } - nvdbg("Successfully initialized SPI port %d\n", - ENC28J60_SPI_PORTNO); + nllvdbg("Successfully initialized SPI port %d\n", ENC28J60_SPI_PORTNO); /* Bind the SPI port to the ENC28J60 driver */ - nvdbg("Binding SPI port %d to ENC28J60 device %d\n", - ENC28J60_SPI_PORTNO, ENC28J60_DEVNO); + nllvdbg("Binding SPI port %d to ENC28J60 device %d\n", + ENC28J60_SPI_PORTNO, ENC28J60_DEVNO); ret = enc_initialize(spi, ENC28J60_DEVNO, ENC28J60_IRQ); if (ret < 0) { - ndbg("Failed to bind SPI port %d ENC28J60 device %d: %d\n", - ENC28J60_SPI_PORTNO, ENC28J60_DEVNO, ret); + nlldbg("Failed to bind SPI port %d ENC28J60 device %d: %d\n", + ENC28J60_SPI_PORTNO, ENC28J60_DEVNO, ret); return; } - nvdbg("Successfuly bound SPI port %d ENC28J60 device %d\n", + nllvdbg("Successfuly bound SPI port %d ENC28J60 device %d\n", ENC28J60_SPI_PORTNO, ENC28J60_DEVNO); } #endif /* CONFIG_NET_ENC28J60 */ |