You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
net: lib: nrf_cloud: Add optional P-GPS data partition
Add a Kconfig choice for CONFIG_NRF_CLOUD_PGPS_STORAGE. Allow for
three choices: a new dedicated P-GPS subsystem partition, the older
reuse of the MCUboot secondary partition, or a custom option.
Add a new partition manager configuration for P-GPS which is used if
CONFIG_NRF_CLOUD_PGPS_STORAGE_PARTITION is enabled.
Enable P-GPS partition by default if CONFIG_BUILD_S1_VARIANT is enabled.
This defines new Kconfig symbols CONFIG_NRF_CLOUD_PGPS_PARTITION_ALIGN
and CONFIG_NRF_CLOUD_PGPS_PARTITION_SIZE. Any application-specified
values passed to the nrf_cloud_pgps_init() function are overridden with
either the dedicated P-GPS partition location or the MCUboot secondary
location, if CONFIG_NRF_CLOUD_PGPS_STORAGE_CUSTOM is not defined.
CONFIG_NRF_CLOUD_PGPS_PARTITION_ALIGN accesses the device tree to look
up the flash page size, and use that for aligning the P-GPS partition.
Add BUILD_ASSERT to ensure partition size is large enough based on the
configured number of predictions.
Pass any prediction found during initialization with the PGPS_EVT_READY
event, so callers can process injections sooner.
Signed-off-by: Pete Skeggs <[email protected]>
0 commit comments