sstaub / Ethernet3

Ethernet library for Arduino and Ethernetshield2 / WIZ550io / WIZ850io / USR-ES1 with Wiznet W5500 chip
Other
76 stars 34 forks source link

Using the alternate SPI on stm32/blue pill #28

Closed chechu2k5 closed 5 years ago

chechu2k5 commented 5 years ago

I am presently looking to use a W5500 board with a stm32f103 based "Bluepill" development board.

w5500

bluepill

While I am successfully able to use this library on the default SPI pins, I'd like to be able to use the second SPI bus available on this microcontroller.

Thanks

P.S. I couldn't find a way attach a "question label" to this issue ..

sstaub commented 5 years ago

You have to do some changes in W5500.h When you look to https://github.com/stm32duino/Arduino_Core_STM32/tree/master/libraries/SPI there is a possibility to use a constructor for using different SPIs. I think you have to call SPIClass::SPIClass(uint8_t mosi, uint8_t miso, uint8_t sclk, uint8_t ssel) ssel must be a hardware CS pin It is not planned to support different SPIs ports.

chechu2k5 commented 5 years ago

Thank you for your quick response. I will investigate further based on your suggestion.