SubGHz: Rework GPS as plugin, fix VGM (#5)

- Streamlined atomic init and deinit
- Load from plugin into RAM dynamically
- Don't attempt load if VGM / Expansion is connected
- Deduplicated some code, cleaned up some other bits
This commit is contained in:
Willy-JL
2024-03-30 03:38:59 +00:00
parent dcb5c50351
commit ef2c955995
15 changed files with 309 additions and 369 deletions

View File

@@ -92,16 +92,20 @@ void subghz_txrx_get_frequency_and_modulation(
bool long_name);
/**
* Get string latitude and longitude
*
* Get latitude value
*
* @param instance Pointer to a SubGhzTxRx
* @param latitude Pointer to a string latitude
* @param longitude Pointer to a string longitude
* @return latitude
*/
void subghz_txrx_get_latitude_and_longitude(
SubGhzTxRx* instance,
FuriString* latitude,
FuriString* longitude);
float subghz_txrx_get_latitude(SubGhzTxRx* instance);
/**
* Get longitude value
*
* @param instance Pointer to a SubGhzTxRx
* @return longitude
*/
float subghz_txrx_get_longitude(SubGhzTxRx* instance);
/**
* Start TX CC1101