GPS implementation (#216)

Implemented basic GPS support:
- GPS HAL
- GPS Service
- GPS Settings app
This commit is contained in:
Ken Van Hoeylandt
2025-02-11 23:46:52 +01:00
committed by GitHub
parent 2345ba6d13
commit 14e459e50f
36 changed files with 2596 additions and 30 deletions
@@ -52,6 +52,8 @@ uint32_t getTickFrequency();
TickType_t getTicks();
inline size_t getMillis() { return getTicks() / portTICK_PERIOD_MS; }
/** Delay execution
* @warning don't call from ISR context
* Also keep in mind delay is aliased to scheduler timer intervals.
@@ -66,6 +68,14 @@ void delayTicks(TickType_t ticks);
*/
bool delayUntilTick(TickType_t tick);
constexpr inline TickType_t secondsToTicks(uint32_t seconds) {
return (TickType_t)seconds * 1000U / portTICK_PERIOD_MS;
}
constexpr inline TickType_t minutesToTicks(uint32_t minutes) {
return secondsToTicks(minutes * 60U);
}
/** Convert milliseconds to ticks
*
* @param[in] milliSeconds time in milliseconds