-
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/cc2420: initial netdev port for cc2420 #3915
Conversation
This commit provides a prototype of a cc2420 driver implementing netdev interface. It is currently not fully tested because of issues with the msp430 platform and thus marked as WIP.
USEMODULE += xtimer | ||
USEMODULE += cc2420 | ||
USEMODULE += gnrc_nomac | ||
endif |
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.
newline missing
I just did a scan through the driver code (though it is still WIP). Don't mind the style comments. Besides them, I could not see any obvious problems, especially once regarding the state machine... |
{ | ||
uint16_t state = 0; | ||
state = cc2420_reg_read(dev, CC2420_REG_FSMSTATE); | ||
return dev->state; |
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.
Shouldn't you return the state
variable, instead of the dev->state
field? Or do something like:
dev->state = state;
return dev->state;
It seems it would make much more sense.
Plus, I think this one of the problems that make Travis static tests fail in the first place...
@thomaseichinger Ping. A kind reminder for rebase. |
@thomaseichinger, ping |
I guess we have to postpone. |
I guess this can be closed with #5314 merged, too. |
This commit provides a prototype of a cc2420 driver implementing netdev interface.
It is currently not fully tested because of issues with the msp430 platform and
thus marked as WIP at self assigned for now.