git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1364 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2009-11-29 18:51:15 +00:00
parent 79c27fd17e
commit 3d87970a4d
9 changed files with 8 additions and 44 deletions

View File

@ -55,13 +55,6 @@
#define CH_HAL_USE_MAC FALSE #define CH_HAL_USE_MAC FALSE
#endif #endif
/**
* @brief Enables the MII subsystem.
*/
#if !defined(CH_HAL_USE_MII) || defined(__DOXYGEN__)
#define CH_HAL_USE_MII FALSE
#endif
/** /**
* @brief Enables the SERIAL subsystem. * @brief Enables the SERIAL subsystem.
*/ */

View File

@ -55,13 +55,6 @@
#define CH_HAL_USE_MAC TRUE #define CH_HAL_USE_MAC TRUE
#endif #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. * @brief Enables the SERIAL subsystem.
*/ */

View File

@ -55,13 +55,6 @@
#define CH_HAL_USE_MAC TRUE #define CH_HAL_USE_MAC TRUE
#endif #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. * @brief Enables the SERIAL subsystem.
*/ */

View File

@ -55,13 +55,6 @@
#define CH_HAL_USE_MAC FALSE #define CH_HAL_USE_MAC FALSE
#endif #endif
/**
* @brief Enables the MII subsystem.
*/
#if !defined(CH_HAL_USE_MII) || defined(__DOXYGEN__)
#define CH_HAL_USE_MII FALSE
#endif
/** /**
* @brief Enables the SERIAL subsystem. * @brief Enables the SERIAL subsystem.
*/ */

View File

@ -55,13 +55,6 @@
#define CH_HAL_USE_MAC FALSE #define CH_HAL_USE_MAC FALSE
#endif #endif
/**
* @brief Enables the MII subsystem.
*/
#if !defined(CH_HAL_USE_MII) || defined(__DOXYGEN__)
#define CH_HAL_USE_MII FALSE
#endif
/** /**
* @brief Enables the SERIAL subsystem. * @brief Enables the SERIAL subsystem.
*/ */

View File

@ -26,9 +26,10 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "at91sam7_mii.h" #include "at91sam7_mii.h"
#if CH_HAL_USE_MAC || defined(__DOXYGEN__)
/** /**
* @brief Low level MII driver initialization. * @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 */
/** @} */ /** @} */

View File

@ -27,6 +27,8 @@
#ifndef _AT91SAM7_MII_H_ #ifndef _AT91SAM7_MII_H_
#define _AT91SAM7_MII_H_ #define _AT91SAM7_MII_H_
#if CH_HAL_USE_MAC || defined(__DOXYGEN__)
/*===========================================================================*/ /*===========================================================================*/
/* Driver pre-compile time settings. */ /* Driver pre-compile time settings. */
/*===========================================================================*/ /*===========================================================================*/
@ -96,6 +98,8 @@ extern "C" {
} }
#endif #endif
#endif /* CH_HAL_USE_MAC */
#endif /* _AT91SAM7_MII_H_ */ #endif /* _AT91SAM7_MII_H_ */
/** @} */ /** @} */

View File

@ -29,7 +29,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "mii.h" #include "mii.h"
#include "at91sam7_mii.h" #include "at91sam7_mii.h"
#if CH_HAL_USE_MAC || defined(__DOXYGEN__) #if CH_HAL_USE_MAC || defined(__DOXYGEN__)

View File

@ -55,13 +55,6 @@
#define CH_HAL_USE_MAC TRUE #define CH_HAL_USE_MAC TRUE
#endif #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. * @brief Enables the SERIAL subsystem.
*/ */