summaryrefslogtreecommitdiff
path: root/nuttx/drivers/net
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-11 16:50:16 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-11 16:50:16 +0000
commit88da8a5b4f042532c0b980510b0d90b77158eff4 (patch)
tree7549e64438eb97eda761a8274c9e00fa92870b20 /nuttx/drivers/net
parent9f572dff87614ce1d025e8d98fac36db13bcfd71 (diff)
downloadpx4-nuttx-88da8a5b4f042532c0b980510b0d90b77158eff4.tar.gz
px4-nuttx-88da8a5b4f042532c0b980510b0d90b77158eff4.tar.bz2
px4-nuttx-88da8a5b4f042532c0b980510b0d90b77158eff4.zip
Updates/fixes related to ENC28J60, Kconfigs, and fire-stm32v2
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5128 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/net')
-rw-r--r--nuttx/drivers/net/Make.defs6
-rw-r--r--nuttx/drivers/net/enc28j60.c24
2 files changed, 15 insertions, 15 deletions
diff --git a/nuttx/drivers/net/Make.defs b/nuttx/drivers/net/Make.defs
index ab256cd8a..bb0d6a718 100644
--- a/nuttx/drivers/net/Make.defs
+++ b/nuttx/drivers/net/Make.defs
@@ -1,8 +1,8 @@
############################################################################
# drivers/net/Make.defs
#
-# Copyright (C) 2007, 2010-2011 Gregory Nutt. All rights reserved.
-# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+# Copyright (C) 2007, 2010-2012 Gregory Nutt. All rights reserved.
+# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@@ -47,7 +47,7 @@ ifeq ($(CONFIG_NET_CS89x0),y)
CSRCS += cs89x0.c
endif
-ifeq ($(CONFIG_NET_ENC28J60),y)
+ifeq ($(CONFIG_ENC28J60),y)
CSRCS += enc28j60.c
endif
diff --git a/nuttx/drivers/net/enc28j60.c b/nuttx/drivers/net/enc28j60.c
index 4862b7b21..eee9ff6f0 100644
--- a/nuttx/drivers/net/enc28j60.c
+++ b/nuttx/drivers/net/enc28j60.c
@@ -42,7 +42,7 @@
****************************************************************************/
#include <nuttx/config.h>
-#if defined(CONFIG_NET) && defined(CONFIG_NET_ENC28J60)
+#if defined(CONFIG_NET) && defined(CONFIG_ENC28J60)
#include <stdint.h>
#include <stdbool.h>
@@ -74,7 +74,7 @@
/* ENC28J60 Configuration Settings:
*
- * CONFIG_NET_ENC28J60 - Enabled ENC28J60 support
+ * CONFIG_ENC28J60 - Enabled ENC28J60 support
* CONFIG_ENC28J60_SPIMODE - Controls the SPI mode
* CONFIG_ENC28J60_FREQUENCY - Define to use a different bus frequency
* CONFIG_ENC28J60_NINTERFACES - Specifies the number of physical ENC28J60
@@ -172,36 +172,36 @@ struct enc_driver_s
{
/* Device control */
- bool bifup; /* true:ifup false:ifdown */
- uint8_t bank; /* Currently selected bank */
- uint16_t nextpkt; /* Next packet address */
- FAR struct enc_lower_s *lower; /* Low-level MCU-specific support */
+ bool bifup; /* true:ifup false:ifdown */
+ uint8_t bank; /* Currently selected bank */
+ uint16_t nextpkt; /* Next packet address */
+ FAR const struct enc_lower_s *lower; /* Low-level MCU-specific support */
/* Timing */
- WDOG_ID txpoll; /* TX poll timer */
- WDOG_ID txtimeout; /* TX timeout timer */
+ WDOG_ID txpoll; /* TX poll timer */
+ WDOG_ID txtimeout; /* TX timeout timer */
/* We we don't own the SPI bus, then we cannot do SPI accesses from the
* interrupt handler.
*/
#ifndef CONFIG_SPI_OWNBUS
- struct work_s work; /* Work queue support */
+ struct work_s work; /* Work queue support */
#endif
/* This is the contained SPI driver intstance */
- FAR struct spi_dev_s *spi;
+ FAR struct spi_dev_s *spi;
/* This holds the information visible to uIP/NuttX */
- struct uip_driver_s dev; /* Interface understood by uIP */
+ struct uip_driver_s dev; /* Interface understood by uIP */
/* Statistics */
#ifdef CONFIG_ENC28J60_STATS
- struct enc_stats_s stats;
+ struct enc_stats_s stats;
#endif
};