[riot-notifications] [RIOT-OS/RIOT] drivers/sx127x: optimize power consumption on nss pin (#11384)

Francisco 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:
https://github.com/RIOT-OS/RIOT/pull/11384#issuecomment-483573851
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190416/a2a7a4eb/attachment.html>


More information about the notifications mailing list