1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

48 Commits

Author SHA1 Message Date
Leandro Lanzieri
a06d9bbb66
Merge pull request #13315 from jia200x/pr/kconfig/ieee802154
ieee802154: Expose configurations to Kconfig
2020-04-08 19:34:55 +02:00
Jose Alamos
77325b4cde ieee802154: add CONFIG_ prefix to config macros 2020-04-08 19:08:25 +02:00
Leandro Lanzieri
f89514e466
drivers/mrf24j40: Expose configurations to Kconfig 2020-04-08 18:49:31 +02:00
Leandro Lanzieri
ede9117a1e
drivers/mrf24j40: Turn MRF24J40_USE_EXT_PA_LNA into bool config
MRF24J40_USE_EXT_PA_LNA is moved to the 'CONFIG_' namespace and by
default is not set. Now it is checked in code using 'IS_ACTIVE'.
2020-04-08 18:49:30 +02:00
Leandro Lanzieri
655ce69903
drivers/mrf24j40: Turn MRF24J40_TEST_SPI_CONNECTION into bool config
MRF24J40_TEST_SPI_CONNECTION is moved to the 'CONFIG_' namespace and by
default is not set. Now it is checked in code using 'IS_ACTIVE'.
2020-04-08 18:49:27 +02:00
Jose Alamos
3ad574a822 drivers/netdev: use netdev_trigger_event_isr function 2020-03-06 14:03:43 +01:00
2e94fc9253 drivers/mrf24j40: fix typos 2019-11-23 22:39:39 +01:00
Francois Berder
4a31f94cfc many typo fixes
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Leandro Lanzieri
bfd81c1d72
Merge pull request #12431 from benpicco/mrf24j40-fix_reset
drivers/mrf24j40: don't loop in mrf24j40_reset_state_machine()
2019-10-14 17:21:17 +02:00
Benjamin Valentin
38b35c513c drivers/mrf24j40: allow for basic self-test on init
During production it is often desirable for devices to perform
some kind of basic self-test to isolate defects.

For this it is necessary for the initialization not to hang if a
component is faulty / not connected.

This moves an already exising self-test that was previously enabled
as a debug option to an independent compile-time configurable.

It is necessary to call this in _init() before mrf24j40_hardware_reset()
as the reset function uses xtimer_usleep() which will cause another
thread to get scheduled.
If this thread (e.g. rpl or ipv6) then tries to access the netdev, RIOT
will crash.
2019-10-14 14:50:06 +02:00
Benjamin Valentin
853bbaf5a5 drivers/mrf24j40: don't loop in mrf24j40_reset_state_machine()
When hooking up the mrf24j40 to a bluepill board, the driver would
always get stuck on init.

Debugging revealed that it would get stuck in the mrf24j40_reset_state_machine()
function because it expects the RFSTATE to have a special value after reset.

However, the data sheet does not mention this in section 3.1 Reset.
Waiting 192µs should be enough - the value of the RFSTATE is not specified.

The Linux driver also does not wait for the RFSTATE register.

And even without the loop, the driver is functioning fine.
2019-10-11 23:01:54 +02:00
Carton
886a29311e drivers/mrf24j40 : support of NETOPT_LAST_ED_LEVEL 2019-05-23 15:45:03 +02:00
Benjamin Valentin
477938e46e drivers/mrf24j40: add external PA/LNA control on MC/MD/ME devices
The MRF24J40MC/MD/ME modules contain an external power amplifier &
low noise amplifier that has to be enabled manually by setting three bits
in the TESTMODE register.
On MRF24J40MC the power amplifier is powered by a separate voltage regualtor
that has to be enabled by setting GPIO3 to HIGH.

During Sleep and CCA the PA should be disabled.

Co-authored-by: Carton <joel.carron@eeproperty.ch>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2019-05-23 11:07:04 +02:00
1804730c0e
mrf24j40: don't load data if iol->iol_len == 0 2019-04-01 11:46:42 +02:00
smlng
6183d5f5c5 netdev: remove layer2 netstats from netdev drivers
Removing usage of netdev->stats in all net drivers, as it is
handled by gnrc_netif.
2019-02-01 11:25:27 +02:00
Sebastian Meiling
2fde8335c9
Merge pull request #10728 from keestux/memcpy-struct-copy
Do normal assignment instead of memcpy
2019-01-16 09:18:44 +01:00
a6e7882879
mrf24j40: use byteorder for address operations 2019-01-13 12:03:03 +01:00
38e5bd627b
mrf24j40: Don't propagate address to 802154 layer 2019-01-12 20:23:36 +01:00
e6ace9c05d
mrf24j40: Add NETOPT_ADDRESS{,_LONG} to getters 2019-01-12 20:23:36 +01:00
f7bf03073c
mrf24j40: read address from device
This change modifies the mrf24j40 driver to read the address directly
from the device instead of returning the netdev_ieee802154_t member
2019-01-12 20:23:27 +01:00
Kees Bakker
45a3d00552 drivers/mrf24j40: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
2abf86afb4
mrf24j40: Remove netdev access from set_pan
This write access is only required when a modification to the PAN ID
happened directly via this function and not via a netdev::set operation.
The only direct call was done in the reset function of the driver
2018-11-28 11:31:04 +01:00
03653ecd39
mrf24j40: Remove PAN ID initialization from reset 2018-11-28 11:31:03 +01:00
Semjon Kerner
5b0152f4f7 drivers/netdev_ieee802154: drop NETOPT_MAX_PKT_SIZE 2018-10-16 13:28:03 +02:00
71fac036e5
mrf24j40: Remove default event report settings 2018-07-16 14:43:45 +02:00
Peter Kietzmann
fd8ef789b7
Merge pull request #9531 from bergzand/pr/netdev/reset_refactor
netdev_ieee802154: Add and use common reset function
2018-07-13 12:01:14 +02:00
517f4d37cc
mrf24j40: Fix netdev recv implementation
The mrf24j40 driver should return the frame length when both buf is NULL
and len is zero and drop the packet when len is nonzero and buf is NULL.
This commit fixes that behaviour
2018-07-12 15:54:31 +02:00
91bd1a38ba
mrf24j40: use netdev reset function 2018-07-11 09:39:18 +02:00
Martine Lenders
0da273deb9
Merge pull request #8702 from aabadie/pr/drivers/params/mrf24j40
drivers/mrf24j40: apply unified driver params scheme
2018-03-07 16:10:10 +01:00
23b414b732 drivers: net: adapt to iolist-using netdev 2018-03-06 14:00:31 +01:00
a492207eb1 drivers/mrf24j40: use new driver params scheme 2018-03-01 14:31:55 +01:00
Martine Lenders
a63bb6d47b
Merge pull request #6895 from bergzand/drivers/radio-rssi-conv
drivers/radios Apply register to rssi dBm conversion to all radios
2017-11-27 23:52:15 +01:00
4bd5fd611c mrf24j40: Add RSSI dBm conversion 2017-11-27 21:49:15 +01:00
b7c4a81702
drivers/mrf24j40: fix radio ack request enabling 2017-11-05 15:05:31 +01:00
Sebastian Meiling
cbc5eb0c06 Merge pull request #7525 from bergzand/mrf24j40-cleanup
mrf24j40: Minor cleanup
2017-09-28 15:56:26 +02:00
a2d790c924 mrf24j40: Add tx_retries_needed netopt 2017-09-26 11:16:12 +02:00
smlng
ae1833c871 doc: fix or remove weird and invisble chars 2017-09-06 08:49:05 +02:00
162478cd6d spelling: s/initialise/initialize/ 2017-09-05 11:04:25 +02:00
3712def1f5 mrf24j40: Remove TX fifo write function 2017-09-04 15:59:31 +02:00
94c753c07a drivers: doxygen cleanup 2017-09-01 15:12:20 +02:00
d3ff68f3ae mrf24j40: rewrite binary constants to hex 2017-08-29 10:30:57 +02:00
2f6346930a mrf24j40: Correct signedness of iterator 2017-08-29 10:27:26 +02:00
c7d8c7ace5 mrf24j40: Remove rx fifo write function 2017-08-29 10:27:20 +02:00
Joakim Nohlgård
065bc62e0a netdev: Make set() value parameter const void * 2017-08-25 13:41:19 +02:00
cfd10c394a adapt to changed byteorder.h 2017-04-13 11:35:35 +02:00
Martine Lenders
29842bb5e4 netdev2: rename to netdev and remove gnrc_netdev
With some minor hand-edits I used the following chain of commands:

```sh
git rm sys/include/net/gnrc/netdev.h
git grep --name-only -i netdev2 | \
        xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \
                     -e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \
                     -e 's/\(netdev\)2/\1/gI'
git add -p
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \
        grep "netdev2" | while read dir; do
                new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")"
                git mv -f "$dir" "$new_dir"
        done
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | while read file; do
                new_file="$(echo "$file" | sed "s/netdev2/netdev/g")"
                git mv -f "$file" "$new_file"
        done
git commit --amend
git grep --name-only "\<drivers_netdev_netdev\>" | \
        xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g"
git add -p
git commit --amend
```
2017-03-15 09:31:20 +01:00
Hauke Petersen
79a113d1ba sys/drivers: renamed uuid module to luid 2017-02-27 11:01:20 +01:00
672da2c457 drivers/mrf24j40: initial mrf24j40 support 2017-01-26 10:05:20 +01:00