1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

1023 Commits

Author SHA1 Message Date
Peter Kietzmann
ebadbd6da3 Merge pull request #2323 from thomaseichinger/i2c_mutex
periph/i2c: added means to make I2C thread-safe
2015-01-20 07:57:20 +01:00
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
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
70a5df67a5 cpu/stm32f4: made SPI driver thread safe 2015-01-17 15:13:51 +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
Fabian Nack
672a362f2e cpu/stm32f4: Corrected wrong spi baud rate control settings 2015-01-16 09:24:48 +01:00
Hauke Petersen
23ecb09f12 cpu/stm32f4: added lost port clock eanble 2015-01-15 14:23:06 +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
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
Hauke Petersen
b435a488fa Merge pull request #2026 from thomaseichinger/stm32l1
stm32l1: initial port for the nucleo-l1 board and stm32l1 cpu
2015-01-12 21:33:21 +01:00
Thomas Eichinger
07d76d7127 stm32l1: initial port for the nucleo-l1 board and stm32l1 cpu 2015-01-12 15:13:19 +01:00
Troels Hoffmeyer
29b0e73350 samr21: cpuid implemented by reading 128 bits from flash 2015-01-12 13:50:16 +01:00
Ludwig Ortmann
3ab73bc633 cpu/native: init _native_in_calloc explicitly 2015-01-11 10:59:49 +01:00
Ludwig Ortmann
f5cfda977a cpu/native: fix real_calloc initialization 2015-01-11 10:59:49 +01:00
Thomas Eichinger
2ea028dd51 Merge pull request #2011 from haukepetersen/add_stm32f3_spi
cpu/stm32f3: added SPI driver
2015-01-09 11:46:06 +01:00
9fffd99493 stm32f1: mark interrupt vector table as __attribute__((used))
Enables gcc LTO for stm32f1 based boards
2015-01-08 15:59:54 +01:00
Oleg Hahm
9bddd61115 Merge pull request #2207 from gebart/pr/lpc2387-gc-sections
msba2: Use --gc-sections when linking.
2015-01-08 14:05:27 +01:00
Hauke Petersen
a365619854 cpu/stm32f3: added SPI driver 2015-01-07 20:18:25 +01:00
Hauke Petersen
905a7f2f56 Merge pull request #1867 from haukepetersen/fix_stm32f0_uartremodel
cpu/stm32f0: optimizations to UART driver
2015-01-07 20:11:59 +01:00
Hauke Petersen
3987f528f4 cpu/stm32f0: optimizations to UART driver 2015-01-07 20:11:15 +01:00
Joakim Gebart
99319f4e28 [SQUASH ME] lpc2387: Add missing *(data.*) to linker script. 2015-01-07 19:10:58 +01:00
Ludwig Ortmann
7d948e4d65 Merge pull request #2260 from bapclenet/samr21/RTC
SAMR21/RTC: Error negative second fixed
2015-01-07 18:33:24 +01:00
bapclenet
f49661f617 cpu/samd21: fix rtc negative second error 2015-01-07 17:07:41 +01:00
Oleg Hahm
6dac96ad1b Merge pull request #1904 from LudwigOrtmann/native_bufferbloat
native: increase buffer size, set defaults conditionally
2015-01-07 03:00:01 +01:00
benpicco
9c50f206c5 Merge pull request #2252 from benpicco/samd21-malloc
cpu/samd21: check if the requested memory is really available in _sbrk_r
2015-01-06 20:31:09 +01:00
Benjamin Valentin
070420db7d samd21: check if the requested memory is really available in _sbrk_r
copy the check from sam3x8e
2015-01-06 19:22:46 +01:00
Thomas Eichinger
d6c4d5581f Merge pull request #2215 from bapclenet/samr21/RTC
cpu/samd21: add rtc periph implementation
2015-01-06 18:21:22 +01:00
Thomas Eichinger
e6c4181c94 Merge pull request #2229 from LudwigOrtmann/issue-2228
cpu/samd21: increase default stack size
2014-12-28 02:26:46 +01:00
Ludwig Ortmann
5e0973ca89 Merge pull request #2150 from OlegHahm/more_doc_cleanup
doc: More documentation cleanup
2014-12-22 11:58:59 +01:00
Ludwig Ortmann
d74f7425a5 cpu/samd21: increase default stack size
Provide enough space to run `examples/default`.
2014-12-20 17:00:11 +01:00
Oleg Hahm
db58a8b226 Merge pull request #2214 from rousselk/msp430-fix-intr
Msp430 misc interrupt-related fixes
2014-12-19 16:35:39 +01:00
Hauke Petersen
6a35845203 Merge pull request #2223 from kaspar030/stm32f1_fix_function_definition
stm32f1: make function definition match declaration
2014-12-19 15:58:43 +01:00
547ddddad2 stm32f1: make function definition match declaration 2014-12-19 15:15:00 +01:00
Hauke Petersen
1bd63978a8 Merge pull request #2222 from haukepetersen/fix_lpc1768_uartclk
cpu/lpc1768: fixed UART PCLK selection
2014-12-19 14:21:08 +01:00
Hauke Petersen
31a6e81bd9 cpu/lpc1768: fixed UART PCLK selection 2014-12-19 13:47:58 +01:00
Kévin Roussel
892268d74b Ensure only GIE bit is touched in splx_() 2014-12-19 11:11:15 +01:00
Kévin Roussel
07b170595c Ensure interrupts are enabled before going in low-power mode 2014-12-19 11:11:14 +01:00
Kévin Roussel
91fd567c8f Use custom assembly code instead of MSP GCC primitives for dINT()/eINT()
and all other functions that enable or disable interrupts
2014-12-19 11:11:14 +01:00
Kévin Roussel
f9b0df7e4b Use TimerB for 'hwtimer' module implementation 2014-12-19 10:53:12 +01:00
Kévin Roussel
25ac0db606 Robust use of TimerA for 'hwtimer' module 2014-12-19 10:53:12 +01:00
Oleg Hahm
a17d89fbed Merge pull request #1619 from rousselk/msp430-hwtimer-16bit
Only use 16 significative bits for MSP430 hwtimers
2014-12-18 18:49:02 +01:00
bapclenet
55aabf9dfb cpu/samd21: add rtc periph implementation 2014-12-18 15:25:49 +01:00
Thomas Eichinger
ca53077e3c Merge pull request #1998 from Troels51/samr21-hwtimer-fix
samr21: 32 hwtimer
2014-12-17 17:29:36 +01:00
Troels Hoffmeyer
7124ec6258 samr21: implemented 32 bit hwtimer 2014-12-17 14:44:54 +01:00
Kévin Roussel
1fb12b770e Reduce variable scope in init function 2014-12-17 12:21:16 +01:00
Kévin Roussel
d101b30dd8 Make hwtimer_spin() work even with interrupts disabled
by using only 16 significative bits on MSP430 hardware timers
2014-12-17 12:21:07 +01:00
Thomas Eichinger
5689a7d218 Merge pull request #1997 from Troels51/samr21-transceiver-port
samr21: implemention of transceiver via spi
2014-12-17 11:56:37 +01:00
Joakim Gebart
390b8394d6 msba2: Use --gc-sections when linking.
- Add `-Wl,--gc-sections` to LDFLAGS
 - Add `-fdata-sections` and `-ffunction-sections` to CFLAGS
 - Update lpc2387 linker script to keep the isr vector and init
   sections when garbage collecting.
 - Keep .ctors and .dtors sections (similar to what binutils default
   linker script does when building for Linux targets)

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
2014-12-17 11:37:58 +01:00
Hauke Petersen
765c4f38e5 Merge pull request #2201 from BytesGalore/mbed_lpc1768_uartUSB
board/mbed_lpc1768 changed the serial device to UART0
2014-12-17 10:35:03 +01:00
BytesGalore
c40e5267a6 board/mbed_lpc1768 changed the serial device to UART0
-> enables USB/serial communication
2014-12-17 07:27:28 +01:00
Ludwig Ortmann
e7f6f640f6 Merge pull request #2060 from OlegHahm/periph_rtc
drivers: Adapt old platforms to periph rtc
2014-12-16 18:56:59 +01:00
Troels Hoffmeyer
33ef43c8e2 samr21: implemented transceiver via spi, gpio changes 2014-12-16 17:43:30 +01:00
Oleg Hahm
60cd0d357d periph_rtc: streamline lpc2387 and cc430 naming 2014-12-16 17:02:44 +01:00
Oleg Hahm
849580a9c9 cpu: lpc2387: further rtc cleanup 2014-12-16 17:02:44 +01:00
Oleg Hahm
587920cc49 cpu: remove superfluous gettimeofday functions 2014-12-16 17:02:44 +01:00
Oleg Hahm
93cf446b55 rtc: cleanup of lpc2387-rtc implementation 2014-12-16 17:02:44 +01:00
Oleg Hahm
498edb1854 cc430: lpc2387: switch to new periph/rtc interface
Removes the old interface.
2014-12-16 17:02:44 +01:00
Hauke Petersen
78eed22dd2 cpu/lpc1768: added basic timer implementation 2014-12-16 16:57:31 +01:00
Ludwig Ortmann
2ec0a1ca02 native/rtc: apply naming conventions 2014-12-16 15:46:56 +01:00
Ludwig Ortmann
474c8afd93 native/rtc: define ENABLE_DEBUG, move include 2014-12-16 15:41:51 +01:00
Thomas Eichinger
29c5822e02 Merge pull request #2016 from bapclenet/master
cpu/samd21: I2C driver implementation (Master mode)
2014-12-15 16:58:19 +01:00
Ludwig Ortmann
f35981a6d7 native/rtc: improve implementation
* add error checking / warnings
* implement parts of alarm functionality
* clean up
2014-12-13 15:21:52 +01:00
Ludwig Ortmann
37a1a105bc native/rtc: clean up documentation 2014-12-13 15:21:52 +01:00
Ludwig Ortmann
c0ef84bb9f native: move rtc to periph
* adapt implementation to new interface
* remove now superfluous drivers directory
2014-12-13 15:21:52 +01:00
Oleg Hahm
e79e00ef7f doc: add documentation for packet format in mc1322x 2014-12-11 17:26:26 +01:00
bapclenet
54fb0f0610 cpu/samd21: add i2c periph implementation 2014-12-11 08:32:27 +01:00
Hauke Petersen
67b4dfd89d cpu/lpc1768: added basic UART driver 2014-12-08 19:48:20 +01:00
Ludwig Ortmann
0027f90be4 Merge pull request #2118 from OlegHahm/simplify_cpu_folder_structure
cpu: simplify folder structure
2014-12-08 13:10:13 +01:00
Oleg Hahm
a5dc951ef2 doc: fix doxygen group for cc2538 memory map 2014-12-06 14:32:22 +01:00
Oleg Hahm
04b67f1ff0 doc: avr cleanup 2014-12-06 01:12:31 +01:00
Oleg Hahm
cd81c040d8 uart0: remove superfluous prototype from header
Declare and document prototype in CPU part instead.
2014-12-05 20:33:10 +01:00
Oleg Hahm
000450c894 Merge pull request #2117 from OlegHahm/doxygen_eliminate_warnings
Doxygen eliminate warnings pt. 2
2014-12-04 17:18:42 +01:00
Oleg Hahm
43c86b5a3e doc: fix remaining doxygen warnings 2014-12-04 17:16:57 +01:00
Oleg Hahm
0ccf1043de doc: fixed broken doxygen references 2014-12-04 17:16:57 +01:00
Ludwig Ortmann
015f5598e4 native: cleanup irq_cpu, native_cpu debug output 2014-12-04 10:48:15 +01:00
Ludwig Ortmann
eb2cc522cd native: forced debug message for SIGUSR1 2014-12-04 10:38:12 +01:00
Ian Martin
58e413afce cpu/cc2538: add eh_frame section to the linkerscript
Fixes linker errors on some toolchains, for example:
  ld: foo.elf section `.eh_frame' will not fit in region `cca'
  ld: region `cca' overflowed by 40 bytes
2014-12-03 11:41:59 -05:00
Oleg Hahm
42436c9c37 Merge pull request #2120 from OlegHahm/fix_1235
native: removing externs from native tramp
2014-12-03 16:40:45 +01:00
Oleg Hahm
54bdc35ac8 native: removing externs from native tramp 2014-12-03 15:50:53 +01:00
Peter Kietzmann
8c189ce56e Merge pull request #2127 from thomaseichinger/stm32f1-fix-TIMER_1
cpu/stm32f1: use correct timer device in timer interrupt
2014-12-03 14:35:25 +01:00
Thomas Eichinger
18647bb5ac cpu/stm32f1: use correct timer device in timer interrupt 2014-12-03 13:28:55 +01:00
Martin
bfaacbbd38 cpu/arm_common: c++: initial support for c++ added _kill (weak) and weak attribute for _kill_r
boards/msba2: provided c++ feature (cpp)
2014-12-03 07:30:29 +01:00
Oleg Hahm
17929a5ce4 cpu: lpc2387: integrated lpc_common into lpc2387
Rationale 1: The common part made only sense for (some) NXP ARM7 MCUs,
but was misleading for MCUs like the LPC1768.

Rationale 2: The common part was only used by one specific MCU
implementation - no need to outsource it.
2014-12-02 17:47:10 +01:00
Oleg Hahm
0c967c4d3f cpu: msp430: renamed msp430x16x to msp430fxyz 2014-12-02 17:46:57 +01:00
Fabian Nack
dc658f8be0 boards - msbiot: prepare msbiot for new cc110x driver 2014-12-01 17:14:09 +01:00
Oleg Hahm
d92e9af91c doc: fixed broken param descriptions 2014-11-30 22:34:50 +01:00
Oleg Hahm
953a21b7a5 doc: remove doxygen duplication 2014-11-30 21:46:31 +01:00
Oleg Hahm
f8ecbf2a0a doc: add to group instead of redefining 2014-11-30 21:45:24 +01:00
Oleg Hahm
fc7606a94b doc: use doxygen li tags 2014-11-30 21:39:53 +01:00