Subversion Repositories HomeAutomation

Rev

Rev 663 | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. /**
  2.  * Configuration file .
  3.  */
  4.  
  5. #ifndef ENC28J60_CFG_H_
  6. #define ENC28J60_CFG_H_
  7.  
  8. /*-----------------------------------------------------------------------------
  9.  * Defines
  10.  *---------------------------------------------------------------------------*/
  11.  
  12.  /**
  13.  * ENC28J60 SPI select. For USART in SPI-mode, use the following defined
  14.  */
  15.  
  16. //#define ENC28J60_USART_SPI_MODE
  17.  
  18.  /**
  19.  * ENC28J60 Chip Select port on avr.
  20.  */
  21.  
  22. //#define ENC28J60_CS_PORT  PORTC
  23. //#define ENC28J60_CS_DDR       DDRC
  24. //#define ENC28J60_CS           0
  25.  
  26.  /**
  27.  * ENC28J60 Reset port on avr.
  28.  */
  29.  
  30. //#define ENC28J60_RESET_PORT   PORTC
  31. //#define ENC28J60_RESET_DDR    DDRC
  32. //#define ENC28J60_RESET    1
  33.  
  34. // only for USART in SPImode
  35. //#define XCK_DDR               DDRD
  36. //#define XCK                   PD4
  37.  
  38.  
  39. #endif /*ENC28J60_CFG_H_*/
  40.