Skip to content

Sensor: Rename and add LoRa to sensor mutex #153

Description

@NArmistead

Version: 2.8.0

Describe the feature you'd like
sensor_mutex_reserve and sensor_data_release should enable or disable the interrupt for LoRa since it may concurrently access sensor data. We have macros for the IRQn for most peripherals in the pin defines for A0002 in lib, but not for LoRa. We need to add the correct SPI IRQn to the pin defines (LoRa is hspi4, so probably SPI4_IRQn ), then fill in the comment on each function.

Also, the name of these functions is misleading since there isn't an actual mutex. Consider changing the name to something like sensor_data_reserve/release

Pin defines are in lib in sdr_pin_defines_A0002.h.

Describe alternatives you've considered
N/A

Additional context
This should be merged into staging instead of main.

Points of Contact
Firmware Lead: @NArmistead

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions