This repository has been archived by the owner on Nov 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GNSS change only: add support for Data Ready, AKA TXReady, pin.
GNSS devices support toggling a TXReady pin when there is data available. This can be useful for power saving, allowing an MCU to sleep, or perform other tasks under the OS, while waiting for data from the GNSS device. Building on 128a72b, which added interrupt support to the GPIO API of the port layer, GNSS Data Ready is now supported using the fields pinDataReady and devicePioDataReady of the GNSS part of the device configuration structure passed to uDeviceOpen() for a GNSS device. Note that pinDataReady was already present in the configuration structure, normally set to -1, but for this feature to work the PIO of the GNSS device that this MCU pin is connected to must also be known, hence the addition of devicePioDataReady, and must be set to a valid value if pinDataReady is not -1. Note that this is only supported on M9 devices and later, on I2C and SPI interfaces, and also that devicePioDataReady must not already be in use for something else on the GNSS device: where that is the case uDeviceOpen() will return the error U_GNSS_PIO_IN_USE. Test: 1 2 6.1.0 6.2.0 10.0 10.2.0 10.2.1 11.0 11.2
- Loading branch information
Showing
27 changed files
with
1,392 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.