File tree 2 files changed +240
-159
lines changed
libraries/Ethernet/src/utility/enc28j60
2 files changed +240
-159
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ extern "C" {
23
23
typedef struct {
24
24
spi_host_device_t spi_host_id ; /*!< SPI peripheral */
25
25
spi_device_interface_config_t * spi_devcfg ; /*!< SPI device configuration */
26
+ eth_spi_custom_driver_config_t custom_spi_driver ; /*!< Custom SPI driver definitions */
26
27
int int_gpio_num ; /*!< Interrupt GPIO number */
28
+ uint32_t poll_period_ms ; /*!< Period in ms to poll rx status when interrupt mode is not used */
27
29
} eth_enc28j60_config_t ;
28
30
29
31
/**
@@ -41,12 +43,13 @@ typedef enum {
41
43
* @brief Default ENC28J60 specific configuration
42
44
*
43
45
*/
44
- #define ETH_ENC28J60_DEFAULT_CONFIG (spi_host , spi_devcfg_p ) \
45
- { \
46
- .spi_host_id = spi_host, \
47
- .spi_devcfg = spi_devcfg_p, \
48
- .int_gpio_num = 4, \
49
- }
46
+ #define ETH_ENC28J60_DEFAULT_CONFIG (spi_host , spi_devcfg_p ) { \
47
+ .spi_host_id = spi_host, \
48
+ .spi_devcfg = spi_devcfg_p, \
49
+ .custom_spi_driver = ETH_DEFAULT_SPI, \
50
+ .int_gpio_num = 4, \
51
+ .poll_period_ms = 0, \
52
+ }
50
53
51
54
/**
52
55
* @brief Compute amount of SPI bit-cycles the CS should stay active after the transmission
You can’t perform that action at this time.
0 commit comments