-
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
cc2420: Port cc2420 to netdev.802154 #1733
Conversation
eff6b49
to
99e70e5
Compare
99e70e5
to
3c17e72
Compare
3c17e72
to
4a6e33f
Compare
Rebased to master |
4a6e33f
to
66d4f99
Compare
The code seems OK to me... However, I didn't have time to test. I'll try to handle this next week. |
94108f2
to
56fd960
Compare
a6c283b
to
1ddbcf3
Compare
Rebased to current master |
2ab4f76
to
6682923
Compare
typedef struct { | ||
enum { CC2420_CB_TYPE_NONE = 0, CC2420_CB_TYPE_RAW, CC2420_CB_TYPE_DATA } type; | ||
union { | ||
netdev_802153_raw_packet_cb_t raw; |
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.
802153??
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.
How did that happen? oO
24c8d55
to
59b0169
Compare
Seems to work on the Z1. |
Postponed anyway. |
Abondened. But memo'ed for future reference, if someone wants to implement it for #2278. |
I'd like to implement this for #2278 . Could somebody tell me some relevant info that would be good to know for this undertaking? Also it seems like somebody started writing it and then stopped? |
@4dahalibut this issue is deprecated since netdev.802154 does not exist anymore. Please look into |
Okay I meant implementing the cc2420 driver for ng_netdev. Where should I post about that? |
First you should read "How to implement a |
ng_netdev will probably be outdated soon. I have a native ethernet and cc110x driver based on netdev2 in the queue. Take a look at https://github.com/kaspar030/RIOT/tree/add_gnrc_netdev2_support for my current WIP. |
Wait so netdev2 is another device interface different than the one cc2420 was originally written for, different from the one it was going to be written for and abandoned, and different from ng_netdev? |
Yes. cc2420 for RIOT has as long a history as RIOT itself. But netdev2 is very similar to ng_netdev. |
Is the rest of the ng_* stack going to be integrated into the netdev2 interface? |
Yes. netdev2 is just a low-level network driver interface, very similar to ng_netdev. netdev2 just drops all dependencies to ng_, but in a way that ng still works with it. |
To test this, run
Depends on #1492.(it's merged)Depends on #2163