[riot-notifications] [RIOT-OS/RIOT] drivers/sx127x: optimize power consumption on nss pin (#11384)
notifications at github.com
Tue Apr 16 10:59:14 CEST 2019
@aabadie I think handling the NSS pin should be done but this doesn't seem to me like the right way to do so.
The SPI interface is active LOW. With this PR the device would always think it is active since after read or write actions to a register your are setting the pin as input with a pull down. This could interfere with other SPI devices on the same line.
I think the correct way would be using spi_init_cs() and passing the cs_pin when calling spi_acquire(). The NSS mode should be OUT_PP with a pull-up resistor. I thinks that should work for minimizing current consumption for the NSS pin.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications