Wykres commitów

23 Commity (master)

Autor SHA1 Wiadomość Data
jgromes 639ff00109 [SSTV] Added image converter tool 2024-05-03 21:28: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 a4dbae03a3 [MOD] Fixed missing cast (#776) 2023-06-26 19:41:12 +02:00
jgromes 397bd9ab04 [CI] Fix lib include path 2023-05-18 21:59:45 +02:00
jgromes a97baa6fc2 [CI] Updated SX1261 autotest 2023-05-18 21:57:24 +02:00
jgromes 54c1b30959 Added cleanup to test 2023-05-07 07:40:12 +01:00
jgromes 2a265251b1 Made test scripts executable 2023-05-07 07:23:25 +01:00
jgromes 9ce2581942 Added CI autotest file 2023-05-07 08:19:14 +02:00
jgromes c10343e853 [SX126x] Added spectral scan in frequency 2023-03-27 18:48:32 +02:00
jgromes 97ab0d357a [SX126x] Added spectral scan 2023-03-11 20:09:03 +01:00
jgromes c6eb3ee94f Removed reference to AT commands 2021-11-14 11:34:13 +01:00
jgromes 0d9718a603 Dropped support for ESP8266, HC05, JDY08, HTTP and MQTT 2021-11-14 11:29:51 +01:00
jgromes 2096a811d4 Added TODO list for debug decoder 2020-12-05 12:06:12 +01:00
jgromes eea595a5ae Added debug decoder script 2020-12-05 11:48:35 +01:00
jgromes f670cc3361 Changed structure of extras folder 2020-12-05 11:46:33 +01:00
jgromes 93f1bd51d3 Updated template implementation file 2020-07-04 21:13:16 +02:00
jgromes e60435d57c Updated module template 2020-07-04 15:09:14 +02:00
jgromes e74cbe4c51 Added missing godmode guard 2019-11-20 17:21:43 +01:00
jgromes 2101203d07 Changed name to RadioLib 2019-02-08 15:58:29 +01:00
jgromes 24947cb9e3 Updated template 2018-12-26 11:19:40 +01:00
jgromes 9c9d2b7ec4 Updated module templates 2018-09-29 12:15:56 +02:00
Jan Gromeš 719f31b0c1 Added module template file 2018-07-12 11:43:37 +02:00
Jan Gromeš 9ee5b1b30c Added ESP8266 AT firmware 2018-03-24 10:14:50 +01:00