benpicco
bd5b195433
Merge pull request #15726 from jia200x/pr/cc2538_fix
...
cc2538_rf/radio_hal: fix transmit function
2021-01-14 11:42:42 +01:00
Jose Alamos
3c56cdf0c0
cc2538_rf/radio_hal: fix transmit function
...
This commit sets the correct value to the MCU_CTRL bit for the
cc2538_rf. This variable is used to detect when the radio is doing
transmission with CCA. Since this was not set to 1 when sending without
CCA, the `confirm_transmit` function returned -EAGAIN after the TX_DONE
event (which violates the HAL API).
This error was discovered using some Radio HAL riotctrl scripts by @LarsKowoll.
2021-01-14 10:34:50 +01:00
José Alamos
2bf10413d0
Merge pull request #15397 from fjmolinas/pr_ieee802154_crc_error
...
sys/net/iee802154/radio: add IEEE802154_RADIO_INDICATION_CRC_ERROR
2021-01-14 10:29:17 +01:00
Martine Lenders
09463b73cb
Merge pull request #15756 from miri64/dist/enh/shellcheck-enabled
...
static_tests: enable shellcheck and annote its output
2021-01-14 01:21:45 +01:00
Francisco Molina
960e0c5f43
sys/ieee802154/submac: add handling of invalid CRC frames
2021-01-13 23:42:45 +01:00
Francisco Molina
5cbb8093cf
tests/ieee802154_hal: add CRC_ERROR handling
2021-01-13 23:42:44 +01:00
Francisco Molina
83fbe6d100
pkg/openwsn: use IEEE802154_RADIO_INDICATION_CRC_ERROR
2021-01-13 23:42:43 +01:00
Francisco Molina
fe1e16cdc7
sys/net/iee802154/radio: add IEEE802154_RADIO_INDICATION_CRC_ERROR
2021-01-13 23:42:41 +01:00
Martine Lenders
89418e4277
dist/tools/ci/static_tests.sh: fix shellcheck warnings
2021-01-13 22:03:11 +01:00
Martine Lenders
f6290c1c02
shellcheck: annotate errors in Github Action
2021-01-13 22:03:11 +01:00
Martine Lenders
79301c623d
static-tests: add shellcheck (but don't fail)
2021-01-13 22:02:49 +01:00
José Alamos
db449673f2
Merge pull request #15616 from fjmolinas/pr_ieee802154_rssi_conversion
...
sys/inet/ieee802154/radio: fix wrong rssi conversions treewide
2021-01-13 20:38:22 +01:00
Francisco Molina
49c90cd517
pkg/openwsn/contrib/radio_hal: fix rssi conversion
2021-01-13 19:45:13 +01:00
Francisco Molina
6d4d00ebe9
cpu/nrf52/nrf802154_radio: fix rssi calculation
2021-01-13 19:45:13 +01:00
Francisco Molina
f8bc934785
cpu/cc2538/radio/cc2538_rf_radio_ops: fix rssi reporting
2021-01-13 19:45:11 +01:00
daf5a7d6b4
Merge pull request #15585 from aabadie/pr/doc/emulator
...
doc/emulators: add emulators documentation in Doxygen
2021-01-13 17:43:02 +01:00
Martine Lenders
5457105fe0
Merge pull request #15751 from miri64/dist/enh/codespell-annotate
...
dist/tools/codespell: annotate errors in Github Action
2021-01-13 17:27:19 +01:00
Martine Lenders
7b3b01659f
dist/tools/codespell: annotate errors in Github Action
2021-01-13 17:16:59 +01:00
4b90d93fc0
dist/tools/renode: remove documentation
...
The documentation was moved to doc/doxygen/src/emulators.md
2021-01-13 17:14:40 +01:00
c9e0604612
doc: add emulator documentation
2021-01-13 17:14:39 +01:00
Francisco
4736a881fc
Merge pull request #15512 from aabadie/pr/tools/emulator_term
...
tools/emulator: allow use with *term targets + introduce EMULATE=1 instead of emulate target
2021-01-13 17:12:00 +01:00
Martine Lenders
ff0e41ff9f
Merge pull request #15750 from miri64/dist/enh/buildsystem-sanity-check-annotate
...
dist/tools/buildsystem_sanity_check: minor fixes and annotate errors in Github Action
2021-01-13 16:42:36 +01:00
Martine Lenders
688b89ba40
Merge pull request #15748 from miri64/dist/enh/uncrustify-annotate
...
dist/tools/uncrustify: annotate errors in Github Action
2021-01-13 15:30:14 +01:00
Kevin "Tristate Tom" Weiss
aa19614a6c
Merge pull request #15731 from miri64/dist/enh/pr_check-annotate
...
dist/tools/pr_check: cleanup and annotate errors in Github Action
2021-01-13 15:24:13 +01:00
Martine Lenders
d4628dc07f
dist/tools/pr_check: annotate errors in Github Action
2021-01-13 15:18:06 +01:00
José Alamos
ae841519cb
Merge pull request #15629 from jia200x/pr/ieee802154_rssi_dbm
...
ieee802154: add helpers for RSSI and dBm conversion
2021-01-13 14:53:56 +01:00
Jose Alamos
728b84dc69
netdev_ieee802154_submac: use RSSI in dBm
2021-01-13 14:14:45 +01:00
Jose Alamos
59d5a808a7
tests/unittest/ieee802154: add tests for RSSI and dBm conversion
2021-01-13 14:14:45 +01:00
Jose Alamos
49f4ecc595
ieee802154: add helpers for RSSI and dBm conversion
2021-01-13 14:14:45 +01:00
Marian Buschsieweke
605220ce06
Merge pull request #15736 from bergzand/pr/riscv/use_ecall
...
cpu/fe310: Use ecall instruction for thread yield
2021-01-13 14:03:19 +01:00
Marian Buschsieweke
582f8d8430
Merge pull request #15754 from maribu/rssi
...
sys/net/gnrc: fix in-band signaling of no RSSI
2021-01-13 13:28:06 +01:00
5a203413a1
cpu/fe310: Remove software IRQ handling
2021-01-13 12:51:32 +01:00
1b2adb4821
cpu/fe310: Use ecall instruction for thread yield
2021-01-13 12:51:25 +01:00
Martine Lenders
3c688e31ad
Merge pull request #15753 from miri64/dist/enh/vera++-annotate
...
dist/tools/vera++: annotate errors in Github Action
2021-01-13 12:13:24 +01:00
Martine S. Lenders
bb310ec644
dist/tools/vera++: annotate errors in Github Action
2021-01-13 12:06:48 +01:00
Martine Lenders
375df5740a
pr_check: remove label check
2021-01-13 12:02:18 +01:00
Martine Lenders
741aaf9a38
pr_check: fix README
2021-01-13 12:02:18 +01:00
2e0e5a5477
Merge pull request #15759 from basilfx/feature/bmx280_release
...
drivers/bmx280: add missing _release
2021-01-13 09:04:47 +01:00
Marian Buschsieweke
b50964f6fc
sys/net/gnrc: fix in-band signaling of no RSSI
...
Previously a value of 0 was used for the RSSI to signal that this value is not
present in `gnrc_netif_hdr_t`. However, an RSSI of 0 dBm is legal and even very
plausible data.
This commit defines `GNRC_NETIF_HDR_NO_RSSI` as `INT16_MIN`, which is below the
noise floor in the vacuum of outer space and hence impossible to receive.
For consistency, also GNRC_NETIF_HDR_NO_LQI is defined.
2021-01-13 08:53:33 +01:00
Marian Buschsieweke
e2c5467d09
cpu/nrf5x_common/radio/nrfmin: drop duplicated code
...
`gnrc_netif_hdr_build()` calls internally `gnrc_netif_hdr_init()`, which does
initialize `gnrc_netif_hdr_t::rssi` and `gnrc_netif_hdr_t::lqi`. So no need to
do this twice.
2021-01-13 08:53:17 +01:00
Bas Stottelaar
c42c3475bf
drivers/bmx280: add missing _release
2021-01-12 23:47:08 +01:00
Marian Buschsieweke
9029d6f7c2
Merge pull request #15757 from maribu/sock-aux-cleanup
...
sys/net/gnrc/sock: cleanup & fix aux handling
2021-01-12 22:57:21 +01:00
Marian Buschsieweke
dd68fb7273
tests/gnrc_sock_{ip,udp}: fix copy paste error
2021-01-12 22:00:43 +01:00
Marian Buschsieweke
8f24cc840c
sys/net/gnrc/sock: cleanup & fix aux handling
...
The logic used to check whether the RX timestamp was provided in the GNRC
implementation of `sock_ip_recv_buf_aux()` is incorrect: It still uses in-band
signalling via a timestamp of zero, but a dedicated flag was added to allow for
timestamps of zero.
Additionally, it is not necessary to check if a bit is set only to clear it -
clearing it unconditionally is faster and smaller.
2021-01-12 21:31:24 +01:00
Martine Lenders
3fdf9f925e
Merge pull request #15745 from aabadie/pr/ci/tests-on-iotlab-fix
...
ci/test-on-iotlab: fix unsupported set-env command
2021-01-12 19:20:01 +01:00
703c33fd3e
Merge pull request #15752 from aabadie/pr/tests/usbus_hid_cleanup
...
tests/usbus_hid: uncrustify and cleanup Makefile
2021-01-12 18:52:32 +01:00
benpicco
20f2ab44ac
Merge pull request #15556 from benpicco/cpu/samd51-spurious_tamper
...
cpu/samd5x: RTC: add timeout to spurious tamper event
2021-01-12 18:22:49 +01:00
Benjamin Valentin
3a7aa5d09a
cpu/sam0_common: RTC: add timeout to spurious tamper event
...
Errate 2.17.4 says:
> Upon enabling the RTC tamper detection feature, a false tamper
> detection *can* be reported by the RTC.
It turns out that this spurious event is not always generated.
If RTC alarm is used and the CPU was previously woken from hibernate
by RTC, it *can* happen that the false tamper event is *not* generated.
In this case, we will block indefinitely on the mutex.
To solve this, add a timeout to the event.
Also poll the event instead of using a mutex, as we have already set
`PM->SLEEPCFG.bit.SLEEPMODE` at this point.
2021-01-12 17:36:40 +01:00
Martine Lenders
7a6dec464e
Merge pull request #15644 from miri64/dist/enh/externc-annotate
...
dist/tools/externc: annotate errors in Github Action
2021-01-12 17:24:57 +01:00
Martine Lenders
750e656b6f
Merge pull request #15645 from miri64/dist/enh/cppcheck-annotate
...
dist/tools/cppcheck: annotate errors in Github Action
2021-01-12 17:24:40 +01:00