Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

802.15.4 stm-s2lp-rf-driver update to v1.0.10 #14913

Merged
merged 2 commits into from
Jul 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,15 @@ class RFPins {
UnlockedSPI spi;
DigitalOut CS;
DigitalOut SDN;
#if INTERRUPT_GPIO == S2LP_GPIO0
InterruptIn RF_S2LP_GPIO0;
#elif INTERRUPT_GPIO == S2LP_GPIO1
InterruptIn RF_S2LP_GPIO1;
#elif INTERRUPT_GPIO == S2LP_GPIO2
InterruptIn RF_S2LP_GPIO2;
#else
InterruptIn RF_S2LP_GPIO3;
#endif
Timeout cca_timer;
Timeout backup_timer;
Timer tx_timer;
Expand All @@ -153,10 +158,15 @@ RFPins::RFPins(PinName spi_sdi, PinName spi_sdo,
: spi(spi_sdi, spi_sdo, spi_sclk),
CS(spi_cs),
SDN(spi_sdn),
#if INTERRUPT_GPIO == S2LP_GPIO0
RF_S2LP_GPIO0(spi_gpio0),
#elif INTERRUPT_GPIO == S2LP_GPIO1
RF_S2LP_GPIO1(spi_gpio1),
#elif INTERRUPT_GPIO == S2LP_GPIO2
RF_S2LP_GPIO2(spi_gpio2),
#else
RF_S2LP_GPIO3(spi_gpio3),
#endif
irq_thread(osPriorityRealtime, 1024)
{
irq_thread.start(mbed::callback(this, &RFPins::rf_irq_task));
Expand Down