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

60 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
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
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
9fffd99493 stm32f1: mark interrupt vector table as __attribute__((used))
Enables gcc LTO for stm32f1 based boards
2015-01-08 15:59:54 +01:00
547ddddad2 stm32f1: make function definition match declaration 2014-12-19 15:15:00 +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
Thomas Eichinger
18647bb5ac cpu/stm32f1: use correct timer device in timer interrupt 2014-12-03 13:28:55 +01:00
Oleg Hahm
d3d68c876f doc: use @brief for single defines 2014-11-30 21:18:24 +01:00
BytesGalore
a4d2ee307c cpu: added extern "C" to headers 2014-11-24 19:10:15 +01:00
Hauke Petersen
2220a9fab0 core/cpu/boards: removed fw_puts from RIOT 2014-11-21 13:09:02 +01:00
Hauke Petersen
62b6522e01 cpu: moved reboot_arch for cortex cpus 2014-11-20 17:22:39 +01:00
9ce0b676b4 core: sys: move ringbuffer to core 2014-11-19 14:18:39 +01:00
Thomas Eichinger
256ce73d2c boards: initial import for HiKoB fox 2014-11-18 17:24:47 +01:00
Hauke Petersen
6b33ff1a31 Merge pull request #2004 from dangnhat/cpp_for_iot_lab_m3
iot-lab_m3: C++ support
2014-11-14 13:00:49 +01:00
Pham Huu Dang Nhat
df192b0f25 cpu/stm32f1: c++: added _kill (weak) and weak attribute for _kill_r 2014-11-14 16:55:30 +07:00
Thomas Eichinger
2b0d49c8b1 Merge pull request #1954 from haukepetersen/fix_cortex_irqstacksize
cpu: adjusted IRQ stack sizes for Cortex CPUs
2014-11-14 10:50:51 +01:00
Ian Martin
7bbdbcc7cb Allow the application's makefile to specify a custom linker script, for example:
LINKERSCRIPT = custom-linkerscript.ld
2014-11-10 14:28:35 -05:00
Hauke Petersen
65520865b1 cpu/stm32f1: adjusted to RTT interface changes 2014-11-07 12:29:31 +01:00
Hauke Petersen
72b68bc9f0 cpu: adjusted IRQ stack sizes for Cortex CPUs 2014-11-06 15:16:33 +01:00
Thomas Eichinger
d43367e0a2 cpu/stm32f1: fix wrong bit operation in SPI init 2014-11-06 15:09:35 +01:00
benpicco
cedc588d77 Merge pull request #1782 from benpicco/fix_malloc
check if the requested memory is really available in _sbrk_r
2014-11-05 13:21:40 +01:00
Benjamin Valentin
879768397e malloc: check if the requested memory is really available 2014-11-05 12:11:24 +01:00
Hauke Petersen
ac2ff23020 cpu/stm32f1: fixes to i2c driver
- fixes BUSY on initialization
2014-11-04 21:09:40 +01:00
Thomas Eichinger
76d0d6c4a2 cpu/stm32f1: fixes for the cpuid driver 2014-11-04 13:11:30 +01:00
Christian Mehlis
f3b1753ac7 added spark core board 2014-11-02 14:36:42 +01:00
Hinnerk van Bruinehsen
9ba980dfd9 cpu: stm32f1 spi: fix typos 2014-10-31 01:24:32 +01:00
Hinnerk van Bruinehsen
aca4724447 lint: fix warnings of possible nullPointer dereferences 2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
a5aeaab87b lint: fix unreadVariable warnings 2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
2103249815 lint: fix unassignedVariable warnings in stm32f1 2014-10-31 01:24:28 +01:00
Hauke Petersen
56062b0f23 Merge pull request #1872 from thomaseichinger/stm32f1-i2c-multibyte-fix
cpu/stm32f1: fix i2c master read for N=2 and N>2 bytes
2014-10-30 23:24:00 +01:00
Hauke Petersen
e7fbaf3815 cpu: removed NAKED attribute from ISRs
- removed the __attribute__((naked)) from ISRs
- removed ISR_ENTER() and ISR_EXIT() macros

Rationale: Cortex-Mx MCUs save registers R0-R4 automatically
on calling ISRs. The naked attribute tells the compiler not
to save any other registers. This is fine, as long as the
code in the ISR is not nested. If nested, it will use also
R4 and R5, which will then lead to currupted registers on
exit of the ISR. Removing the naked will fix this.
2014-10-30 19:33:32 +01:00
Thomas Eichinger
ede33a6364 cpu/stm32f1: fix i2c read for N=2 bytes 2014-10-24 14:48:31 +02:00
Thomas Eichinger
414be5257d cpu/stm32f1: fix i2c master read for N>2 bytes
This fixes reading more than 2 bytes from the slave device.
In the current implementation the last byte was not read from
data register and the termination sequence buggy.
2014-10-24 14:08:27 +02:00
Oleg Hahm
481d4f2ee3 doc: fix ambiguous file name warnings
doxygen does a good job itself, identifying the unique part of the path
to identify a file.
2014-10-23 20:53:00 +02:00
Oleg Hahm
6d8c0d74c3 doc: some doxygen cleanups
* removed RIOT unrelated cpu documentation
* introduced cpu_specific prefix to mark such documentation
* put oneway_malloc and crypto into sys group
2014-10-23 17:29:25 +02:00
Fabian Nack
45b3da9be7 cpu - multiple: adapt spi drivers to interface extension 2014-10-16 17:47:10 +02:00
Hauke Petersen
0fed9a438c cpu/stm32f1: added low-level I2C driver 2014-10-15 14:50:14 +02:00
Thomas Eichinger
420f20f4bc cpu/stm32f1: overwrite HWTIMER_WAIT_OVERHEAD 2014-10-10 11:43:02 +02:00
Thomas Eichinger
19db6ded85 cpu/stm32f1:board/iot-lab_M3: fix and cleanup for GPIO low level driver 2014-10-10 11:42:08 +02:00
Thomas Eichinger
a16d326bf0 stm32f1: implement RTT driver 2014-10-09 11:13:06 +02:00
Hauke Petersen
f3d8f05d6e cpu/stm32f1: fixed gpio driver
- changed #ifdef to #if for device filter
- guarded file in case no GPIO device is defined
- added guards around interrupts
2014-10-01 22:01:46 +02:00
Thomas Eichinger
fccfce2d59 stm32f1: implement 32bit hwtimer by cascading two timers 2014-10-01 20:54:14 +02:00
Hauke Petersen
25c891ecdd Merge pull request #1736 from haukepetersen/fix_stm32f1_somecleanup
board/iot-lab_M3: cleanup of SPI and radio driver
2014-09-30 12:02:42 +02:00
Hauke Petersen
c7807517da cpu/stm32f1: added clock config to cpu.c 2014-09-30 11:25:56 +02:00
Hauke Petersen
6ee15ea6df cpu/stm32f1: cleanup in SPI driver
- made config more versatile
- added pin configuration to spi_init()
2014-09-30 11:19:16 +02:00
Thomas Eichinger
d0b0af6d81 stm32f*: rename STDIO buffer and enable getchar with UART0 2014-09-26 14:16:59 +02:00
Thomas Eichinger
c83e4cb361 stm32f1: unify UART0 use 2014-09-26 14:16:59 +02:00
Hauke Petersen
d7741efa03 cpu/stm32f1: added missing spi function 2014-09-25 14:25:04 +02:00
Hinnerk van Bruinehsen
129e9b0bfa cpu: multiple: change size_t to ptrdiff_t for_sbrk_r 2014-09-14 22:07:05 +02:00