-
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: add cc110x driver #3716
Conversation
|
bf826b5
to
c9387f5
Compare
|
*/ | ||
const cc110x_params_t cc110x_params[] = { | ||
{ .spi=0, | ||
.CS=53, |
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.
Sorry for the nitpick, bu tthe indentation seems off.
|
|
||
static int _set(netdev2_t *dev, netopt_t opt, void *value, size_t value_len) | ||
{ | ||
DEBUG("%s:%u\n", __func__, __LINE__); |
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.
Why do we have this here but not at similar places?
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.
leftover, will remove.
Sorry for the superficial review so far - will test asap. Well documented though. |
Could you add the avsextrem (and maybe pttu) as well? |
*/ | ||
typedef struct __attribute__((packed)) | ||
{ | ||
uint8_t length; ///< Length of the packet (without length byte) |
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.
C style comments here, too.
|
||
/** | ||
* @defgroup drivers_cc110x CC110X | ||
* @brief Driver for Texas Instruments CC110x (without MAC protocol) |
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.
the the without MAC still true?
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.
also just leave the @ingroup drivers_cc110x
and remove the rest
@kaspar030, planning to address the comments? |
Sure, just checking. |
ebc9c52
to
779d6ad
Compare
The gnrc part of this drivers doesn't play well, yet, with sixlowpan. The crude adaption layer needs some work. For the node ID, what's the current state of the art for getting a random or node-unique number? |
update When disabling IPHC, together with #3944, I can ping between two msba2's. @authmillenon Do you know any reason why IPHC might break? I suspect it's because of the 1 byte hardware addresses... |
I took special care that it would work with 1-byte addresses, but never tested it (duh). So there might still be some hidden issues. |
6f8157c
to
b670350
Compare
b670350
to
63acf0b
Compare
|
|
not anymore... |
kicked Travis |
Do we have an ACK somewhere? |
let me look over this once more, then you'll have it! |
Looks good. ACK and go. |
drivers: add cc110x driver
This PR adds a cc110x driver that is based on netdev2 + gnrc.
Tested on msba2. Please note that the wireless parameters are different than with our legacy code, so communication with devices using the old drivers will probably not work.
The gnrc glue code fakes a iee802154 device so sixlowpan can be used in cc110x networks.
Waiting for #3683.