Commit graph

27 commits

Author SHA1 Message Date
jgromes
2fd2926c9f [PHY] Make frequency step and max packet length public variables 2025-02-15 14:47:45 +01:00
jgromes
1324b53f7b [Print] Fix duplicate methods 2025-01-18 18:14:34 +01:00
jgromes
1357d672c7 [Hell] Cppcheck fixes 2025-01-18 17:49:24 +01:00
Matej Frančeškin
f3276c2e66 fix implicit conversion from float to double warnings 2025-01-15 16:06:47 +01:00
jgromes
d4e7af836c [Hell] Fixed issues found by cppcheck 2024-05-12 12:03:43 +01:00
jgromes
d779a834a0 [Hell] Fixed issues found by cppcheck 2024-05-11 20:32:50 +01:00
Elizabeth Myers
205031550b
Use RadioLibTime_t (aka unsigned long) when dealing with millis() and micros() (#1075)
* Use unsigned long when dealing with millis() and micros().

Although sizeof(uint32_t) == sizeof(unsigned long) on Arduino, this is
not the case on 64-bit Linux, where sizeof(unsigned long) ==
sizeof(uint64_t).

Most timestamp arithmetic and comparisons have been left alone, to
reduce code churn. This is fine, as uint32_t is perfectly wide to store
most timestamp deltas this library will deal with, and C will promote
the integer rather than do a narrowing conversion. The real problem
arises with narrowing conversions being done by assuming timestamps are
32-bit.

No functional changes intended for platforms where sizeof(uint32_t) ==
sizeof(unsigned long) (so most 8/16/32-bit platforms).

Signed-off-by: Elizabeth Myers <elizabeth.jennifer.myers@gmail.com>

* Change most timestamps to use RadioLibTime_t.

This makes it obvious what is and isn't a timestamp.

Not everything has been converted; anything dealing with protocol and
chip-level timestamps has been left alone on purpose, to make it clear
that these functions do require 32-bit timestamps.

No functional changes intended on platforms where sizeof(uint32_t) ==
sizeof(unsigned long).

Signed-off-by: Elizabeth Myers <elizabeth.jennifer.myers@gmail.com>

* Use uint32_t internally in getTimeOnAir.

We need to not overflow the integers with the shifts and
multiplications, so this is correct behaviour.

Signed-off-by: Elizabeth Myers <elizabeth.jennifer.myers@gmail.com>

---------

Signed-off-by: Elizabeth Myers <elizabeth.jennifer.myers@gmail.com>
2024-04-25 21:50:58 +02:00
jgromes
ac18a2c8f7 [Hell] Reworked macro configuration system 2023-11-27 21:17:06 +01:00
jgromes
adf2f3ba98 [Print] Removed redundant headers 2023-04-30 11:34:58 +02:00
jgromes
24f714b914 [Hell] Use common print class 2023-04-29 22:55:04 +02:00
jgromes
34e59605b5 [Hell] Use compact Doxygen and stop using reserved format 2023-04-22 19:35:33 +02:00
Mestery
ec3d4eaf20 Improve hardware abstraction layer 2023-04-12 23:16:18 +02:00
Mestery
7b6fd24c8e
fix non arduino build 2023-04-10 09:13:57 +00:00
jgromes
2c8b63e038 [Hell] Fixed timing issues on SX126x with TCXO (#659) 2023-01-14 23:13:58 +01:00
jgromes
e1c217305f [Hell] Added support for interrupt-based timing 2022-11-18 17:39:18 +01:00
jgromes
ed43f8062e [Hell] Added method to invert text color (#529) 2022-05-28 17:58:34 +02:00
jgromes
d7701c3ec7 [Hell] Update to 5.0.0 2021-11-14 11:39:33 +01:00
jgromes
730abc0903 [Hell] Fixed comma direction (#384) 2021-10-10 09:00:27 +02:00
jgromes
6cd7c8efdc [Hell] Fixed comma bitmap (#384) 2021-10-09 09:55:36 +02:00
jgromes
98970be860 [Hell] Use startDirect from PHY 2021-02-13 17:42:49 +01:00
jgromes
e965072092 [Hell] Added Module overrides for all Arduino core functions 2020-08-01 16:36:02 +02:00
jgromes
e23f095585 [Hell] Fixed exclusion macros 2020-07-04 21:19:00 +02:00
jgromes
0c7f597b7f [Hell] Made ctors explicit 2020-07-04 15:28:02 +02:00
jgromes
02bb36e1af [Hell] Fixes from cppcheck scan 2020-07-04 15:26:55 +02:00
jgromes
d032015e31 [Hell] Reworked driver exclusion 2020-06-30 10:45:28 +02:00
jgromes
21c0703383 [Hell] Added AFSK support 2020-04-30 17:10:37 +02:00
jgromes
abad47bdae [Hell] Added Hellschreiber support 2020-04-14 09:33:39 +02:00