diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-29 18:51:15 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-29 18:51:15 +0000 |
commit | 3d87970a4d3f0f72560d725ecb284eaac1a69835 (patch) | |
tree | 3f60cd7da421be3825a0bd4d6541eb8bda749706 /os/hal | |
parent | 79c27fd17e0fbbf79b56853bf2fc7a02b6f72ac4 (diff) | |
download | ChibiOS-3d87970a4d3f0f72560d725ecb284eaac1a69835.tar.gz ChibiOS-3d87970a4d3f0f72560d725ecb284eaac1a69835.tar.bz2 ChibiOS-3d87970a4d3f0f72560d725ecb284eaac1a69835.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1364 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/AT91SAM7/at91sam7_mii.c | 5 | ||||
-rw-r--r-- | os/hal/platforms/AT91SAM7/at91sam7_mii.h | 4 | ||||
-rw-r--r-- | os/hal/platforms/AT91SAM7/mac_lld.c | 1 | ||||
-rw-r--r-- | os/hal/templates/halconf.h | 7 |
4 files changed, 8 insertions, 9 deletions
diff --git a/os/hal/platforms/AT91SAM7/at91sam7_mii.c b/os/hal/platforms/AT91SAM7/at91sam7_mii.c index 2b7491e38..d48d81c10 100644 --- a/os/hal/platforms/AT91SAM7/at91sam7_mii.c +++ b/os/hal/platforms/AT91SAM7/at91sam7_mii.c @@ -26,9 +26,10 @@ #include "ch.h"
#include "hal.h"
-
#include "at91sam7_mii.h"
+#if CH_HAL_USE_MAC || defined(__DOXYGEN__)
+
/**
* @brief Low level MII driver initialization.
*/
@@ -112,4 +113,6 @@ void miiPut(MACDriver *macp, phyaddr_t addr, phyreg_t value) { ;
}
+#endif /* CH_HAL_USE_MAC */
+
/** @} */
diff --git a/os/hal/platforms/AT91SAM7/at91sam7_mii.h b/os/hal/platforms/AT91SAM7/at91sam7_mii.h index 6db87e31c..7bf472a61 100644 --- a/os/hal/platforms/AT91SAM7/at91sam7_mii.h +++ b/os/hal/platforms/AT91SAM7/at91sam7_mii.h @@ -27,6 +27,8 @@ #ifndef _AT91SAM7_MII_H_
#define _AT91SAM7_MII_H_
+#if CH_HAL_USE_MAC || defined(__DOXYGEN__)
+
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/
@@ -96,6 +98,8 @@ extern "C" { }
#endif
+#endif /* CH_HAL_USE_MAC */
+
#endif /* _AT91SAM7_MII_H_ */
/** @} */
diff --git a/os/hal/platforms/AT91SAM7/mac_lld.c b/os/hal/platforms/AT91SAM7/mac_lld.c index 6112a13ad..11c3413f8 100644 --- a/os/hal/platforms/AT91SAM7/mac_lld.c +++ b/os/hal/platforms/AT91SAM7/mac_lld.c @@ -29,7 +29,6 @@ #include "ch.h"
#include "hal.h"
#include "mii.h"
-
#include "at91sam7_mii.h"
#if CH_HAL_USE_MAC || defined(__DOXYGEN__)
diff --git a/os/hal/templates/halconf.h b/os/hal/templates/halconf.h index f08ffcda5..35948950b 100644 --- a/os/hal/templates/halconf.h +++ b/os/hal/templates/halconf.h @@ -56,13 +56,6 @@ #endif
/**
- * @brief Enables the MII subsystem.
- */
-#if !defined(CH_HAL_USE_MII) || defined(__DOXYGEN__)
-#define CH_HAL_USE_MII TRUE
-#endif
-
-/**
* @brief Enables the SERIAL subsystem.
*/
#if !defined(CH_HAL_USE_SERIAL) || defined(__DOXYGEN__)
|