drivers: add cc2420 support (based on #5314)#5591
Conversation
|
IPv6 messages are being received now, so no more WIP. However the spurious messages still coming, but apparently they don't bother other threads. |
|
I tried with a Z1 and a SAMR21-Xpro. Link layer communication (unicast and broadcast) seems to work fine in both directions. 👍 However, trying to ping the Z1 running |
|
After testing on wsn430-1_4 board I found that the UART0 and SPI share the same buffer, thus it conflicts while initialising the driver. An issue #5599 is open for this |
|
In order to ping devices using For the address yes you're right, MSP430 does not provide CPUID. |
|
Ah, I should have known this myself. :) Confirmed working. |
|
and ACK :P ? |
|
Lemmy quickly look at the code. |
drivers/Makefile.dep
Outdated
| endif | ||
|
|
||
| ifneq (,$(filter cc2420,$(USEMODULE))) | ||
| USEMODULE += cc2420 |
There was a problem hiding this comment.
Oh yeah, it was also used with at86rf2xx so I added it, but you're right, it's not required. Should I remove it?
There was a problem hiding this comment.
The reason for the at86rf2xx USEMODULE check is that the driver is checking
for a wildcard and then adding the generic driver if it matches. The
at86rf2xx driver supports the rf231, rf233, rf212b, (possibly more), and is
written in a way that it relies on USEMODULE to tell it which hardware it
should expect.
Den 5 jul 2016 12:33 skrev "kYc0o" notifications@github.com:
In drivers/Makefile.dep
#5591 (comment):
@@ -32,6 +32,21 @@ ifneq (,$(filter cc110x,$(USEMODULE)))
endif
endif+ifneq (,$(filter cc2420,$(USEMODULE)))
- USEMODULE += cc2420
Oh yeah, it was also used with at86rf2xx so I added it, but you're right,
it's not required. Should I remove it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/RIOT-OS/RIOT/pull/5591/files/ffd03d77950ecaa2210bc2efb066a12ad9728cfd#r69541037,
or mute the thread
https://github.com/notifications/unsubscribe/AATYQl9hCQ81LrCAtqWHIs1iLu4Rowqzks5qSjL7gaJpZM4JDOnR
.
There was a problem hiding this comment.
Yeah once I analysed I saw that, thanks for the explanation. Now USEMODULE += cc2420 it's removed.
|
Apart from the minor comments: ACK. |
|
Yes I can squash those commits, remove |
|
Squashed and waiting for Murdock. I removed the |
|
Confirmed, still working. ACK holds. |
|
Murdock failed because telosb wasn't in some memory insufficient lists for some tests. Fixed and Murdock restarted. |
3b2c136 to
c89279d
Compare
|
What was it complaining about?
|
|
Sorry, I restarted it too quickly... It was about the cortex_m3 family, there was "no more space left on device" while compiling some unit tests. |
|
Same error again... @kaspar030 can you take a quick look into that? I'm afraid there's really no more space left on Murdock or something similar... |
|
hmm. murdock still has almost 16gig on that drive. I'll watch it a little. |
|
Yep, the ramdisk is getting full. Every package get's checked out ~40 times, so if more than four tests using packages get's built, there's no space left. I'll think of something. |
|
Ups... sorry for break Murdock, if I can do something on it just let me know :) |
|
Great! doing it now! |
|
Let's see if #5610 works ;) |
|
Yeeeeeah!!! Murdock rules! Maybe it's needed to squash the doc fix? |
|
Yes, please squash and then merge as soon as Murdock confirms again. |
|
And GO! |
This is a reworked version of #5314 with code reorganisation and netdev2 compliant.
The code was tested in a z1 board, please feel free to test it on telosb and wsn430-v1_4.
Communication works for L2 messages with short and long addresses, but IPv6 messages are discarded, so that's why it's WIP.
One major bug is that when
dev->netdev.proto = GNRC_NETTYPE_SIXLOWPAN;is enabled random messages are received from random kernel PIDs.