FreeJoy-Team / FreeJoy

STM32F103 USB HID game device controller with flexible configuration
GNU General Public License v3.0
760 stars 142 forks source link

Incorrect work of devices with different SPI modes on same bus #142

Open vostrenkov opened 3 years ago

vostrenkov commented 3 years ago

MCP3201 works fine with no other sensors connected. Adding TLE5011 makes MCP3201 work incorrect (wrong fullscale range)

vostrenkov commented 3 years ago

Found out that issued changing SPI modes like: CPOL = 0 ==> CPOL = 1 CPHA = 0 ==> CPHA = 1

vostrenkov commented 2 years ago

Hotfixed in #0372b64d