Remove SPI init from CYW43 ethernet shim

parent c889a3c1
#include <LwipEthernet.h> #include <LwipEthernet.h>
#include <SPI.h> //#include <SPI.h>
//#ifndef ETHERNET_SPI_CLOCK_DIV //#ifndef ETHERNET_SPI_CLOCK_DIV
//#define ETHERNET_SPI_CLOCK_DIV SPI_CLOCK_DIV4 // 4MHz (SPI.h) //#define ETHERNET_SPI_CLOCK_DIV SPI_CLOCK_DIV4 // 4MHz (SPI.h)
//#endif //#endif
void SPI4EthInit() { void SPI4EthInit() {
SPI.begin(); //SPI.begin();
// SPI.setClockDivider(ETHERNET_SPI_CLOCK_DIV); // SPI.setClockDivider(ETHERNET_SPI_CLOCK_DIV);
// SPI.setBitOrder(MSBFIRST); // SPI.setBitOrder(MSBFIRST);
// SPI.setDataMode(SPI_MODE0); // SPI.setDataMode(SPI_MODE0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment