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/platforms/AT91SAM7 | |
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/platforms/AT91SAM7')
-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 |
3 files changed, 8 insertions, 2 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__)
|