Commit Graph

195 Commits (4bc77be2820169c1f0336ecd5f748ba74ac0a169)

Author SHA1 Message Date
Pham Huu Dang Nhat df192b0f25 cpu/stm32f1: c++: added _kill (weak) and weak attribute for _kill_r 9 years ago
Thomas Eichinger 2b0d49c8b1 Merge pull request #1954 from haukepetersen/fix_cortex_irqstacksize
cpu: adjusted IRQ stack sizes for Cortex CPUs
9 years ago
Ian Martin 7bbdbcc7cb Allow the application's makefile to specify a custom linker script, for example:
LINKERSCRIPT = custom-linkerscript.ld
9 years ago
Hauke Petersen 65520865b1 cpu/stm32f1: adjusted to RTT interface changes 9 years ago
Hauke Petersen 72b68bc9f0 cpu: adjusted IRQ stack sizes for Cortex CPUs 9 years ago
Thomas Eichinger d43367e0a2 cpu/stm32f1: fix wrong bit operation in SPI init 9 years ago
benpicco cedc588d77 Merge pull request #1782 from benpicco/fix_malloc
check if the requested memory is really available in _sbrk_r
9 years ago
Benjamin Valentin 879768397e malloc: check if the requested memory is really available 9 years ago
Hauke Petersen ac2ff23020 cpu/stm32f1: fixes to i2c driver
- fixes BUSY on initialization
9 years ago
Thomas Eichinger 76d0d6c4a2 cpu/stm32f1: fixes for the cpuid driver 9 years ago
Christian Mehlis f3b1753ac7 added spark core board 9 years ago
Hinnerk van Bruinehsen 9ba980dfd9 cpu: stm32f1 spi: fix typos 9 years ago
Hinnerk van Bruinehsen aca4724447 lint: fix warnings of possible nullPointer dereferences 9 years ago
Hinnerk van Bruinehsen a5aeaab87b lint: fix unreadVariable warnings 9 years ago
Hinnerk van Bruinehsen 2103249815 lint: fix unassignedVariable warnings in stm32f1 9 years ago
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
9 years ago
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.
9 years ago
Thomas Eichinger ede33a6364 cpu/stm32f1: fix i2c read for N=2 bytes 9 years ago
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.
9 years ago
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.
9 years ago
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
9 years ago
Fabian Nack 45b3da9be7 cpu - multiple: adapt spi drivers to interface extension 9 years ago
Hauke Petersen 0fed9a438c cpu/stm32f1: added low-level I2C driver 9 years ago
Thomas Eichinger 420f20f4bc cpu/stm32f1: overwrite HWTIMER_WAIT_OVERHEAD 9 years ago
Thomas Eichinger 19db6ded85 cpu/stm32f1:board/iot-lab_M3: fix and cleanup for GPIO low level driver 9 years ago
Thomas Eichinger a16d326bf0 stm32f1: implement RTT driver 9 years ago
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
9 years ago
Thomas Eichinger fccfce2d59 stm32f1: implement 32bit hwtimer by cascading two timers 9 years ago
Hauke Petersen 25c891ecdd Merge pull request #1736 from haukepetersen/fix_stm32f1_somecleanup
board/iot-lab_M3: cleanup of SPI and radio driver
9 years ago
Hauke Petersen c7807517da cpu/stm32f1: added clock config to cpu.c 9 years ago
Hauke Petersen 6ee15ea6df cpu/stm32f1: cleanup in SPI driver
- made config more versatile
- added pin configuration to spi_init()
9 years ago
Thomas Eichinger d0b0af6d81 stm32f*: rename STDIO buffer and enable getchar with UART0 9 years ago
Thomas Eichinger c83e4cb361 stm32f1: unify UART0 use 9 years ago
Hauke Petersen d7741efa03 cpu/stm32f1: added missing spi function 9 years ago
Hinnerk van Bruinehsen 129e9b0bfa cpu: multiple: change size_t to ptrdiff_t for_sbrk_r 9 years ago
Joakim Gebart 21fc1bd7a6 cpu/stm32f1: Reduce scope of ret variable in spi_transfer_bytes.
Reduced scope to inside the while loop as per comments in RIOT-OS/RIOT#1630

Signed-off-by: Joakim Gebart <joakim@gebart.se>
9 years ago
Joakim Gebart a12b879027 cpu/stm32f1: spi_transfer_bytes proper counting.
The transferred bytes were being counted more than once because of a +=
when calling spi_transfer_byte().

This patch should also handle errors from spi_transfer_byte() better
since it is now possible to detect errors _after_ the first byte has
been successfully sent.

Signed-off-by: Joakim Gebart <joakim@gebart.se>
9 years ago
Thomas Eichinger 0e79a01cd2 stm32f1: SPI: implement speed setting properly 9 years ago
Thomas Eichinger 6b43b3f587 stm32f1: implement new cpuid_get 9 years ago
Thomas Eichinger c28aebf105 at86rf231: handle rx tx state changes correctly 9 years ago
Thomas Eichinger b6abdc9519 stm32f1: implement SPI register access functions 9 years ago
Thomas Eichinger e59bc2eb9d iot-lab_M3: refactor at86rf231 driver 9 years ago
Thomas Eichinger b86b78bcb2 stm32f1: implement missing UART0 parts 9 years ago
Thomas Eichinger aaa2c2e8ba boards: initial import of iot-lab_M3 9 years ago
Thomas Eichinger 37611db41c cpu: initial import of stm32f1 9 years ago