Commit graph

11813 commits

Author SHA1 Message Date
Michael LeMay b17a936bf7 galileo: Add board-level abstraction layer for GPIO
This patch adds a HAL for GPIOs so that users of the API can specify
board-level IO pin numbers rather than CPU-level pin numbers.
2016-08-23 13:02:36 -07:00
Michael LeMay 2912559061 galileo: Revise pinmux API to be more intuitive
This patch replaces the pinmux APIs that require users to look up an arbitrary
function number for the desired function of each pin.  The replacement API
functions have intuitive names and permit users to pass board-level IO port
numbers.  The API functions internally convert those to CPU-level port numbers
when necessary.  Furthermore, when configuring a pin to be a digital input or
output, those API functions also perform the corresponding configuration
operation on the CPU-level GPIO port.  The revised APIs halt when users attempt
to configure a currently-unsupported GPIO, specifically those in the GPIO_SUS
port range and those implemented on the expander chip EXP2.  This also means
that such ports are left unconfigured during initialization, whereas the
pinmuxing for them was setup by the old implementation.
2016-08-23 13:02:32 -07:00
Michael LeMay 3043f3956c galileo: Simplify pinmux configuration
This patch refactors the pinmux configuration code for Intel Galileo to simplify
it. This patch also corrects an off-by-one error in how the pin number is
checked in galileo_pinmux_set_pin.
2016-08-23 12:39:21 -07:00
Antonio Lignan 6947fc7381 Merge pull request #1826 from alignan/pull/crossval-fix
Zoul: fixed voltage divider relationship
2016-08-17 17:33:07 +02:00
George Oikonomou 6f44fb8c44 Merge pull request #1783 from g-oikonomou/bugfix/cc13xx/contikimac-timings
Adjust ContikiMAC timings for CC13xx PROP mode
2016-08-17 14:06:07 +01:00
Antonio Lignan cb42bafbfb Merge pull request #1756 from g-oikonomou/contrib/cc26xx/new-ccxxwares
Update to latest TI CC13xxware/CC26xxware
2016-08-16 15:44:41 +02:00
Nicolas Tsiftes 4c7d8d0214 Merge pull request #1739 from simonduq/pr/tsch-seqno
Improved TSCH sequence number handling
2016-08-16 14:49:21 +02:00
Nicolas Tsiftes 9fa777d4f4 Merge pull request #1738 from simonduq/pr/mac-seqno-timeout
mac-seqno: add a lifetime to sequence numbers in history
2016-08-16 14:48:21 +02:00
Antonio Lignan 7ddbe640be Merge pull request #1795 from g-oikonomou/contrib/sensniff
Add generic sensniff example and remove legacy sniffers
2016-08-16 14:47:17 +02:00
Antonio Lignan 0a02f0ac7c Zoul: fixed voltage divider relationship 2016-08-16 14:24:13 +02:00
Antonio Lignan 3550d43b47 Merge pull request #1794 from g-oikonomou/bugfix/cc13xx/prop-set-channel
Fix PROP mode channel switching
2016-08-16 12:57:43 +02:00
George Oikonomou acbc482e55 Merge pull request #1824 from bthebaudeau/cc2538-fix-garbled-uart
cc2538: uart: Fix garbled output occurring upon lpm_enter()
2016-08-16 08:47:09 +01:00
Benoît Thébaudeau a52a3d94d3 cc2538: uart: Fix garbled output occurring upon lpm_enter()
lpm_enter() must not enter PM1+ if the UART is transmitting. Otherwise,
the UART clock gets disabled, and its TX is broken.

The commit b8b54a033c had already
partially fixed this issue, but it could still occur while transmitting
stop bits because, contrary to UART_FR.BUSY, UART_FR.TXFE takes only the
data bits into account, not the stop bits.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
2016-08-15 03:07:52 +02:00
George Oikonomou 3e7177dcc8 Add sensniff example README 2016-08-12 15:58:02 +01:00
George Oikonomou 20dc86c039 Add sensniff travis tests 2016-08-12 15:58:02 +01:00
George Oikonomou ac2dcb8b03 Add sensniff example Makefile 2016-08-12 15:58:02 +01:00
George Oikonomou 4922925c07 Add sensniff support: ev-aducrf101mkxz 2016-08-12 15:58:02 +01:00
George Oikonomou 166f90e4df Add sensniff support: zoul 2016-08-12 15:58:02 +01:00
George Oikonomou 9e91a3832d Merge pull request #1820 from alignan/pull/motelist-firefly
Zoul: added firefly to motelist targets
2016-08-12 13:38:12 +01:00
Antonio Lignan 23eb3756c0 Zoul: added firefly to motelist targets 2016-08-12 13:21:09 +02:00
Antonio Lignan 1cd39a2621 Merge pull request #1780 from g-oikonomou/bugfix/cc2538/sniffer
Don't flush the CC2538 RF RX FIFO unconditionally
2016-08-12 12:09:12 +02:00
George Oikonomou d8fcaf9dec Add sensniff support: z1 2016-08-12 01:23:51 +01:00
George Oikonomou 3cebc42a2a Add sensniff support: cc13xx/cc26xx 2016-08-12 01:23:51 +01:00
George Oikonomou 525bafcc3c Add sensniff support: openmote-cc2538 2016-08-12 01:23:51 +01:00
George Oikonomou 63941d849a Add sensniff support: jn516x 2016-08-12 01:23:51 +01:00
George Oikonomou 690c299bb0 Add sensniff support: cc2538dk 2016-08-12 01:23:51 +01:00
George Oikonomou 1e6730758d Add sensniff support: cc2530dk 2016-08-12 01:23:51 +01:00
George Oikonomou c5a3a4e05e Add off-the-shelf sensniff drivers
Can be re-used by any platform that uses any of those CPUs
2016-08-12 01:23:51 +01:00
George Oikonomou a8dcb6566e Add sensniff example core files 2016-08-12 01:23:51 +01:00
George Oikonomou 39e8435141 Add 460800 baud rate support to Z1 2016-08-12 01:23:50 +01:00
George Oikonomou 983a618a36 Extend CC13xx PROP mode driver
We now write a dummy LQI in read() and we also add support for `RADIO_PARAM_RX_MODE` in `set_value()`
2016-08-12 01:23:50 +01:00
George Oikonomou d7028652fe Remove legacy sniffer configuration: zoul 2016-08-12 01:23:50 +01:00
George Oikonomou 35c37f356c Remove legacy sniffer configuration: openmote-cc2538 2016-08-12 01:23:50 +01:00
George Oikonomou 4a4b3a344d Remove legacy sniffer configuration: cc2538dk 2016-08-12 01:23:50 +01:00
George Oikonomou 07f984eec2 Remove legacy sniffer references: Docs 2016-08-12 01:23:50 +01:00
George Oikonomou 63417cba0e Remove legacy zoul/CC1200 sniffer example 2016-08-12 01:23:50 +01:00
George Oikonomou 32e4f0f432 Remove legacy CC2538 sniffer example 2016-08-12 01:23:50 +01:00
George Oikonomou fa769b98e9 Remove legacy CC2530 sniffer example 2016-08-12 01:23:49 +01:00
George Oikonomou b0672713bb Remove built-in sniffer support: aducrf101 2016-08-12 01:23:49 +01:00
George Oikonomou a932dfa6df Remove built-in sniffer support: CC2538 2016-08-12 01:23:49 +01:00
George Oikonomou a52d50f332 Remove built-in sniffer support: CC1200 2016-08-12 01:23:49 +01:00
George Oikonomou dbd4f630fd Remove built-in sniffer support: CC13xx PROP mode 2016-08-12 01:23:49 +01:00
George Oikonomou 0de1dc1025 Remove built-in sniffer support: CC2530 2016-08-12 01:23:49 +01:00
George Oikonomou 1a4947499c Merge pull request #1819 from bthebaudeau/cc2538-en-32k-xtal
CC2538: Use the 32.768-kHz crystal if present
2016-08-11 23:48:04 +01:00
George Oikonomou 47265c9305 Merge pull request #1813 from arurke/cc26xx_cc13xx_i2c_fixes
CC26xx/CC13xx fix for burst TX followed by burst RX
2016-08-11 23:47:42 +01:00
Benoît Thébaudeau 9e03df6cb7 CC2538: Use the 32.768-kHz crystal if present
Enable the 32.768-kHz crystal on all the CC2538 platforms where it is
present in order to get a better time accuracy.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
2016-08-11 23:49:03 +02:00
Nicolas Tsiftes 209e16890b Merge pull request #1815 from bthebaudeau/fix-dox-orphan-mods
doxygen: Fix orphan modules
2016-08-11 15:14:35 +02:00
Benoît Thébaudeau ae5205f9e2 doxygen: Fix orphan modules
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
2016-08-10 04:56:15 +02:00
Andreas Urke 8128986ccd Remove unecessary bool 2016-08-09 22:56:53 +02:00
Andreas Urke e1359519ab Fix i2c multiple write bug, as reported by Ron Segal: https://sourceforge.net/p/contiki/mailman/message/34633862/ 2016-08-09 22:56:28 +02:00