Peter Kietzmann
0c3083200d
Merge pull request #2317 from gebart/pr/spi-locking
...
drivers/periph/spi: Implement thread safety for all SPI devices
2015-01-20 07:27:49 +01:00
Joakim Gebart
dfb0d58cfb
tests/periph_spi: Lock bus for exclusive access when communicating.
2015-01-19 19:05:40 +01:00
Joakim Gebart
c457cd954d
nrf24l01p: Acquire exclusive access to SPI bus.
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:40 +01:00
Joakim Gebart
b6d94d9525
nrf24l01p: Remove superfluous delays in nrf24l01p_on, nrf24l01p_off.
...
The delays were introduced in an attempt to fix "inexplicable timing
errors", although the errors were in the SPI bus driver rather than the
nrf24l01p driver.
See also:
- https://github.com/RIOT-OS/RIOT/pull/1704
- https://github.com/RIOT-OS/RIOT/pull/2315
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:40 +01:00
Joakim Gebart
a991d7c58e
nrf24l01p: Remove redundant gpio_clear/gpio_set.
...
This change removes extra gpio_clear(dev->cs) before calling
nrf24l01p_read_reg(), nrf24l01p_write_reg(). The GPIO handling is not
necessary since nrf24l01p_{read,write}_reg() handle the CS pin
internally.
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:39 +01:00
Joakim Gebart
af1ddef1fb
cc110x: Acquire exclusive access to SPI bus.
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:39 +01:00
Joakim Gebart
1f577b4fee
at86rf231: Acquire exclusive access to SPI bus.
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:39 +01:00
Joakim Gebart
d68b4ef6c2
stm32l1: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:37 +01:00
Joakim Gebart
3292987516
stm32f3: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:34 +01:00
Joakim Gebart
f64c54bf66
stm32f1: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:31 +01:00
Joakim Gebart
98c88b0549
stm32f0: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:23 +01:00
Joakim Gebart
bec43f11d8
samd21: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:20 +01:00
Joakim Gebart
b20f21f2c5
sam3x8e: Basic implementation of spi_acquire(), spi_release()
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-19 19:05:15 +01:00
Thomas Eichinger
830b2b2312
cpu/stm32l1: make i2c thread-safe
2015-01-19 12:20:09 +01:00
Thomas Eichinger
8821e0edcf
cpu/stm32f4: make i2c thread-safe
2015-01-19 12:20:09 +01:00
Thomas Eichinger
30040fa311
cpu/samd21: make i2c thread-safe
2015-01-19 12:20:09 +01:00
Thomas Eichinger
fe643f7077
periph/i2c: added means to make I2C thread-safe
...
As discussed in #2289 this changes provide means to
use the i2c interface safely within multible threads.
2015-01-19 12:18:03 +01:00
Thomas Eichinger
5ae38d6dc7
Merge pull request #1927 from kaspar030/add_lto_flags
...
make: optionally build with gcc's link time optimization
2015-01-19 11:33:32 +01:00
Ludwig Ortmann
3465213118
cpu/native: warn about uninitialized random module
2015-01-19 11:21:01 +01:00
Hauke Petersen
e1801cc98f
Merge pull request #2290 from haukepetersen/opt_spi_threadsafe
...
drivers/periph/spi: added means to make SPI thread-safe
2015-01-19 09:43:06 +01:00
Hauke Petersen
3439247248
drivers/periph/spi: added locking mechanism
2015-01-17 15:13:51 +01:00
Hauke Petersen
70a5df67a5
cpu/stm32f4: made SPI driver thread safe
2015-01-17 15:13:51 +01:00
Oleg Hahm
f6a415a3d9
Merge pull request #2306 from cgundogan/rpl_no_macros_for_shell
...
rpl: wrong macro definitions in rpl shell commands
2015-01-16 22:00:11 +01:00
Martine Lenders
cfed38ae12
Merge pull request #2287 from authmillenon/pktqueue/api/use-pkt
...
pktqueue: adapt to pkt_t
2015-01-16 19:48:04 +01:00
Peter Kietzmann
5a2a38dd0c
Merge pull request #2316 from PeterKietzmann/correct_periph_spi_test
...
tests/periph_spi: correct test application
2015-01-16 15:53:18 +01:00
Hauke Petersen
c3cdfe7ef7
Merge pull request #2315 from fnack/spi_clock
...
cpu/stm32f4: Fix SPI baud rate control settings
2015-01-16 11:19:18 +01:00
PeterKietzmann
c917e6d374
tests/periph_spi: correct test application
2015-01-16 11:15:42 +01:00
Fabian Nack
f9a72b477d
boards/msbiot: add spi feature for msbiot to include it in the tests
2015-01-16 09:24:48 +01:00
Fabian Nack
672a362f2e
cpu/stm32f4: Corrected wrong spi baud rate control settings
2015-01-16 09:24:48 +01:00
Fabian Nack
9a365b0647
boards: Introduce spi bus divider to distinguish APB2 and APB1 bus
2015-01-16 09:24:48 +01:00
Peter Kietzmann
60cbdc8b09
Merge pull request #2307 from haukepetersen/fix_stm32f4_gpioclks
...
cpu/stm32f4: added lost port clock eanble
2015-01-16 08:38:15 +01:00
Hauke Petersen
c61056ad0f
board/stm32f4discovery: adjusted GPIO clken defines
2015-01-15 14:24:48 +01:00
Hauke Petersen
63b2bbd684
board/msbiot: ajusted GPIO clken defines
2015-01-15 14:24:17 +01:00
Hauke Petersen
23ecb09f12
cpu/stm32f4: added lost port clock eanble
2015-01-15 14:23:06 +01:00
Oleg Hahm
cadea97760
Merge pull request #2155 from cgundogan/rpl_one_thread
...
rpl: RPL/trickle with only *one* thread
2015-01-15 12:27:15 +01:00
Joakim Gebart
079ff1be9d
Merge pull request #2299 from gebart/pr/cc110x-header-cleanups
...
cc110x-legacy: header documentation cleanups
2015-01-15 10:58:56 +01:00
Joakim Gebart
c9df451379
cc110x-legacy: Comment style and spelling/grammar fixes.
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2015-01-15 10:56:58 +01:00
Cenk Gündoğan
7095241555
rpl: wrong macro definitions in rpl shell commands
...
It appears that the values defined for RPL_NODE_IS_ROOT and
RPL_MAX_ROUTING_ENTRIES in the Makefile via CFLAGS are not recognized in
sc_rpl.c (my guess: they are only visible to the rpl module?)
Therefore RPL_MAX_ROUTING_ENTRIES is always set to 0, no matter how the
binary is compiled, thus resulting in the output "No routing table
available" for root nodes.
2015-01-15 10:56:22 +01:00
Cenk Gündoğan
c4b01b87bc
rpl: RPL/Trickle with only *one* thread
...
This PR proposes an approach to reduce the thread count of RPL.
The current RPL/Trickle stack needs about 5 threads to handle tasks
like updating the trickle timer, routing entries and the transmission of
DAOs.
This PR modifies RPL to use only one thread with a looped `msg_recv()` call.
The message is then multiplexed to the right task.
2015-01-14 19:42:13 +01:00
Martine Lenders
c9e2f5bdce
pktqueue: adapt to pkt_t
2015-01-14 14:53:37 +01:00
Ludwig Ortmann
c4d4458651
Merge pull request #2243 from LudwigOrtmann/native-calloc
...
native: fix real_calloc, _native_in_calloc initialization
2015-01-14 14:05:06 +01:00
Ludwig Ortmann
f8085e5fb9
Merge pull request #2274 from LudwigOrtmann/native-random-hq
...
cpu/native: add high-quality random implementation
2015-01-14 12:41:16 +01:00
Oleg Hahm
6f9073dba9
Merge pull request #2303 from LudwigOrtmann/timex-cppcheck-suppression
...
sys/timex: suppress passedByValue warnings
2015-01-14 12:39:08 +01:00
Ludwig Ortmann
8676a1972d
sys/timex: suppress passedByValue warnings
2015-01-14 11:57:01 +01:00
Ludwig Ortmann
88fa49ab38
cpu/native: add high-quality random implementation
...
Per default random data is read from `/dev/random` now.
If specified (e.g. `-s 4711`), data is generated by calls to POSIX
random function like before. The POSIX random API is initialize with
the given seed (`srandom(4711);` in this example).
2015-01-14 11:51:23 +01:00
Oleg Hahm
52cc7eb122
Merge pull request #2301 from LudwigOrtmann/issue-2300
...
travis: disable qemu unittests temporarily
2015-01-14 11:40:04 +01:00
Ludwig Ortmann
644fb00583
travis: disable qemu unittests temporarily
2015-01-14 10:26:44 +01:00
Oleg Hahm
2d874af904
Merge pull request #2158 from authmillenon/pkt/feat/initial-import
...
pkt: Initial import
2015-01-14 08:20:46 +01:00
Oleg Hahm
5926697d21
Merge pull request #1968 from authmillenon/basic_mac
...
sys: net: Initial import of a simple data-forwarding MAC protocol (nomac)
2015-01-14 08:19:51 +01:00
Martine Lenders
62544e6923
tests, pkt: add unittests for pkt
2015-01-14 07:04:57 +01:00