-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers/at86rf231: refactoring of the at86rf231 radio driver #1846
Conversation
thomaseichinger
commented
Oct 20, 2014
- deploy extended operation mode
- cleanup
- implement netdev 802154.h interface
depends on #1830 |
at86rf231_reg_write(AT86RF231_REG__TRX_STATE, AT86RF231_TRX_STATE__FORCE_TRX_OFF); | ||
|
||
/* busy wait for TRX_OFF state */ | ||
uint8_t delay = 100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please declare this variable as an int
in both do … while
blocks.
Please do a null-edit, Travis did not run for your PR. |
416712c
to
3fa6521
Compare
addressed @Kijewski's comments |
02fed6d
to
181b1fd
Compare
txtsnd in default example is not working any more. |
181b1fd
to
c03584b
Compare
rebase on master |
No, didn't saw the comment and label was missing. Will test again. |
Still not working. |
Can you set the default PAN id to 1 in driver init (if module |
f8ea228
to
ef1c38e
Compare
Works with default example. |
ef1c38e
to
2d0b0a8
Compare
#define AT86RF231_BROADCAST_ADDRESS (0xFFFF) | ||
|
||
/** | ||
* @biref at86rf231's lowest supported channel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
I know it's a little bit out of scope, but since these are the last three doxygen warnings for the driver, do you mind to fix them, too?
|
/** | ||
* @see netdev_driver_t::get_option | ||
* | ||
* @detail The options are constrained as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@details
2cbf955
to
c3fdec1
Compare
addressed @OlegHahm's comments and rebased. |
c3fdec1
to
dc98839
Compare
Squash and go. |
02869ed
to
bb82d9e
Compare
cb0ae1c
to
9e2cfdc
Compare
* deploy extended operation mode * cleanup * implement netdev 802154.h interface
Suppress cppcheck warnings of class unusedStructMember because this interface is not used yet. Remove these comments once it is used.
drivers/at86rf231: refactoring of the at86rf231 radio driver
\o/ |
} | ||
/* read CSMA_SEED_1 and write back with RNG value */ | ||
uint8_t tmp = at86rf231_reg_read(AT86RF231_REG__CSMA_SEED_1); | ||
tmp = ((at86rf231_reg_read(AT86RF231_REG__PHY_CC_CCA)&0x60)>>5); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get a redundant assignment cppcheck warning for tmp here that seems to make sense.
@thomaseichinger Could you please adress the two comments I made in a quick followup PR? |