Skip to content
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

Closed

Conversation

thomaseichinger
Copy link
Member

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.

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.
@thomaseichinger thomaseichinger added State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet Area: drivers Area: Device drivers labels Sep 21, 2015
@thomaseichinger thomaseichinger self-assigned this Sep 21, 2015
USEMODULE += xtimer
USEMODULE += cc2420
USEMODULE += gnrc_nomac
endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newline missing

@haukepetersen
Copy link
Contributor

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;
Copy link
Contributor

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...

@OlegHahm OlegHahm modified the milestone: Release 2016.03 Dec 8, 2015
@zhuoshuguo
Copy link
Contributor

@thomaseichinger Ping. A kind reminder for rebase.

@OlegHahm
Copy link
Member

@thomaseichinger, ping

@OlegHahm
Copy link
Member

I guess we have to postpone.

@OlegHahm OlegHahm modified the milestones: Release 2016.07, Release 2016.04 Mar 23, 2016
@OlegHahm
Copy link
Member

OlegHahm commented Jul 7, 2016

I guess this can be closed with #5314 merged, too.

@OlegHahm OlegHahm closed this Jul 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants