Commit graph

31 commits

Author SHA1 Message Date
jgromes
48ed06aa4b [Morse] Fixed issues found by cppcheck 2024-05-11 20:32:57 +01:00
jgromes
6fe581aea7 Fix minor format warnings 2024-05-03 20:54:18 +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
4ee17cc168 Debugging rework 2024-03-10 11:07:23 +01:00
S5NC
ed15ce3569
Remove double '_RADIOLIB's 2023-11-30 20:23:45 +00:00
jgromes
8f5cff0cd4 [Morse] Reworked macro configuration system 2023-11-27 21:17:35 +01:00
jgromes
498c5d5e22 [Morse] Fix typo 2023-07-15 19:25:51 +02:00
jgromes
8fd0a67a78 Typo fixes 2023-07-15 19:13:16 +02:00
jgromes
a5edb9b1e6 [Morse] Fixed long prints 2023-05-21 18:26:23 +02:00
jgromes
4be3389587 Added missing headers 2023-04-30 11:37:38 +02:00
jgromes
adf2f3ba98 [Print] Removed redundant headers 2023-04-30 11:34:58 +02:00
jgromes
0030a59028 [Morse] Use common print class 2023-04-29 22:54:43 +02:00
jgromes
bb4e6cf946 [Morse] Use compact Doxygen and stop using reserved format 2023-04-22 19:35:23 +02:00
Mestery
0cf308be04 remove byte usage 2023-04-16 21:00:05 +02:00
Mestery
ec3d4eaf20 Improve hardware abstraction layer 2023-04-12 23:16:18 +02:00
Mestery
220b4dad7f
use printf in both build 2023-04-10 09:13:58 +00:00
Mestery
7b6fd24c8e
fix non arduino build 2023-04-10 09:13:57 +00:00
jgromes
f69723b96c [Morse] Added support for interrupt-based timing 2022-11-18 17:55:08 +01:00
jgromes
8675f13e5d [Morse] Added basic Morse receive support (#545) CI_BUILD_ALL 2022-07-30 08:53:57 +02:00
jgromes
2faa4b5d71 [Morse] Use out of band tone for space in AFSK mode (#529) 2022-05-28 17:57:42 +02:00
jgromes
d0670fd997 [Morse] Update to 5.0.0 2021-11-14 11:39:51 +01:00
jgromes
8a293cbaab [Morse] Use startDirect from PHY 2021-02-13 17:42:55 +01:00
jgromes
182a9688cb [Morse] Added Module overrides for all Arduino core functions 2020-08-01 16:36:11 +02:00
jgromes
27471fd788 [Morse] Fixed exclusion macros 2020-07-04 21:19:16 +02:00
jgromes
b611cf3a9c [Morse] Fixes from cppcheck scan 2020-07-04 15:34:06 +02:00
jgromes
e5437deae2 [Morse] Reworked driver exclusion 2020-06-30 10:45:45 +02:00
jgromes
0a705f5bb9 [Morse] Added AFSK support 2020-04-30 17:10:54 +02:00
jgromes
318de480ab Reworked PhysicalLayer to accept frequency step directly 2020-02-07 18:31:51 +01:00
jgromes
41f4848b9e [Morse] Formatting fixes, added missing symbol space 2019-12-23 14:25:34 +01:00
Marco Campinoti
4272b0ff30
Reorganized morsecode symbols array and updated the MorseClient::write(uint8_t b) method
The whole idea was taken from the CubeSat way of doing morsecode,
2019-12-22 22:07:46 +01:00
jgromes
915f3780cc Reworked directory structure 2019-11-20 17:19:15 +01:00