diff options
Diffstat (limited to 'os')
-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__)
|