357eed551d
at86rf2xx: 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:03 +01:00
Peter Kietzmann
f5379c05a3
Merge pull request #8971 from Hyungsin/forupstream_smart_idle_listening
...
drivers/at86rf2xx: add smart idle listening feature
2018-10-23 19:34:21 +02:00
7425ac92aa
Merge pull request #9581 from bergzand/pr/at86rf2xx/flag_refactor
...
at86rf2xx: Move flags from netdev to radio
2018-08-17 10:51:23 +02:00
Hyungsin
e0d3f5b552
drivers/at86rf2xx: add smart idle listening feature
2018-08-06 13:56:42 -07:00
b025362a7a
at86rf2xx: Always set channel on device
...
This removes the check if the current configured channel equals the new
channel. This check prevents the at86rf2xx channel to be configured
after a reset which causes the radio to be non-functional after a
NETOPT_STATE_RESET.
2018-07-20 12:15:29 +02:00
d9d99f9e24
at86rf2xx: Move flags from netdev to radio
...
The flags from the ieee802154 struct are only used in the radio code.
there is no advantage of having them in the netdev_ieee802154_t struct
if the flags are defined differently per radio driver.
2018-07-17 11:15:12 +02:00
Josarn
5d69406d47
at86rfr2xx: uncrustified
2018-07-06 13:20:03 +02:00
Hyungsin
a841d9ee0a
driver/at86rf2xx: add an option for auto-ack with the pending bit
2018-01-31 11:58:05 -08:00
Martine Lenders
c91f0734f2
at86rf2xx: revert regression introduced in #7276
2017-11-30 17:37:34 +01:00
smlng
b283b7784c
make: fix various compile errors with Wextra
...
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-11-28 18:31:43 +01:00
smlng
13639c1bb3
drivers, at86rf2xx: cleanup
...
- update documentation
- adapt constness
- fix code alignment and stlye
2017-11-07 21:37:41 +01:00
smlng
961c49e2cc
drivers, at86rf2xx: simplify internal functions
...
- at86rf2xx_tx_prepare
- at86rf2xx_set_state
- at86rf2xx_set_option
2017-11-07 19:53:47 +01:00
Joakim Nohlgård
297bc2b5e6
at86rf2xx: Add get NETOPT_LAST_ED_LEVEL
2017-09-06 21:17:14 +02:00
Thomas Eichinger
093eb7a985
drivers/at86rf2xx: remove at86rf2xx_reset_state_machine
...
This function was only used once in the initialization procedure.
Inlining the actual state change reduces overhead and lines to
maintain.
If ever needed, undo this commit.
2017-08-14 10:07:42 -07:00
Hyungsin
6889cd934a
drivers/at86rf2xx: reliable radio state change
2017-07-07 11:48:44 -07:00
DipSwitch
cbbc44efad
driver/at86rf2xx: fix possible race condition in state machine
2017-06-24 21:43:05 +02:00
smlng
a7b049f98a
drivers: coding style, use {} for empty while loops
2017-06-11 20:08:10 +02:00
Thomas Eichinger
467b255c03
drivers/at86rf2xx: code size optimizations
...
These changes try to reduce code size of the at86rf2xx
driver by reducing code duplication and simplification.
2017-01-19 08:04:08 -08:00
Thomas Eichinger
66db33b662
drivers/at86rf2xx: prevent a possible race condition after state change
...
It was pointed out that after a state change to RX_AACK_ON reading back
the state to confirm the transition can fail due to an imidiate change
into BUSY_RX_AACK between the successful change on the transceiver and
querying the state.
For this we exclude the readback of the state for transitions to
RX_AACK_ON.
2016-11-04 09:52:35 -07:00
Thomas Eichinger
4ebbda844c
drivers/at86rf2xx: improve precondition checks on state transition
...
The rational behind this change is the following:
If the transceiver is in any *_BUSY state when `at86rf2xx_set_state()`
gets called this would bypass the `(state == old_state)` check and
unneeded state transitions could be triggered.
2016-11-01 07:16:19 -07:00
Yannic Schröder
c7d73e24c1
at86rf2xx: fix warnings when building with -Wextra -pedantic
2016-10-18 10:21:54 +02:00
Oleg Hahm
59674a679b
netdev2: use params parameter for setup
2016-03-28 20:22:20 +02:00
Martine Lenders
5bfc9e43fb
at86rf2xx: port to netdev2
2016-03-23 17:45:16 +01:00
Joakim Nohlgård
e9f385ae1d
at86rf2xx: Add support for channel page
2015-12-05 10:37:04 +01:00
Kévin Roussel
8bfd856abe
Implemented the NETOPT_CCA_THRESHOLD option for AT86RF231
2015-11-30 13:15:14 +01:00
Oleg Hahm
a5b7c5d4e8
Revert "at86rf2xx: cancel receiving when preparing for TX"
...
This reverts commit 5aeeabf4a9
.
2015-11-12 12:10:16 +01:00
Oleg Hahm
b978510188
802154 drivers: set first bit to 0 in 16 bit addr
...
The first bit is required to be 0 for short addresses when used with 6LoWPAN by https://tools.ietf.org/html/rfc4944#section-12 .
2015-11-03 11:06:54 +09:00
Oleg Hahm
b40f1742f1
at86rf2xx: remove superfluous mask
2015-11-03 11:06:21 +09:00
daniel-k
502786b9f7
at86rf2xx: implement sleep mode
2015-10-13 15:06:52 +02:00
daniel-k
5aeeabf4a9
at86rf2xx: cancel receiving when preparing for TX
2015-09-29 17:16:39 +02:00
daniel-k
6f705a5189
at86rf2xx: implement CSMA settings
2015-09-01 18:45:47 +02:00
BytesGalore
394ddb6900
drivers: renamed further remaining *NG_* macros
2015-08-12 17:21:45 +02:00
Martine Lenders
8f9e1656e1
at86rf2xx: remove ng_ prefix
2015-08-10 00:08:21 +02:00