ARMmbed / mbed-semtech-lora-rf-drivers

Semtech's LoRa RF drivers for mbed OS
Other
31 stars 25 forks source link

Make it possible to use shared SPI module #43

Closed danluck closed 4 years ago

danluck commented 5 years ago

I have two devices on one physical SPI bus: SX1272 and LIS3DSH accelerometer. When I create SX1272_LoRaRadio object it catch SPI and I can't use it with another device.

Now I have to change source code of SX1272_LoRaRadio to make it possible.

I think it will be very usefull to have two ways to create SX1272_LoRaRadio objects: with current-style with GPIO PinNames (MISO, MOSI, SCLK that used to create SPI module inside class) for backward compatibility and new-style with shared SPI in constructor.

Did you going to add this feature in SX1272_LoRaRadio?

ciarmcom commented 5 years ago

ARM Internal Ref: IOTCELL-2106

AnttiKauppila commented 4 years ago

“At this time, due to our prioritisation of work on customer projects, we are unable to devote the time to fix this issue. As an open source project, we welcome fixes to Mbed OS, so if would like to contribute a fix yourself then we would very much welcome that, please see our contribution guidelines here - https://os.mbed.com/docs/mbed-os/v5.14/contributing/workflow.html#contributions