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

193 Commits

Author SHA1 Message Date
Hauke Petersen
82c843a000 cpu: removed init_slave from I2C drivers 2015-10-20 16:57:39 +02:00
Joakim Nohlgård
cbaeccdb90 periph/timer: Drop timer_reset 2015-10-17 20:11:03 +02:00
Hauke Petersen
d43dc9182f cpu: s/GPIO(x,y)/GPIO_PIN(x,y)/ 2015-10-13 14:59:54 +02:00
Peter Kietzmann
4e05254eb7 Merge pull request #3893 from haukepetersen/opt_f1_baudcalc
cpu/stm32f1: optimized baudrate calculation
2015-09-30 17:20:08 +02:00
Joakim Nohlgård
98c465008b all: Update @gebart family name, email 2015-09-20 13:47:39 +02:00
Hauke Petersen
6b9ca4d5c0 cpu/stm32f1: optimized baudrate calculation 2015-09-18 12:04:25 +02:00
d7a4f90e69 cpu: stm32f1: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
a23169b831 cpu: stmf32f1: remove obsolete hwtimer_compat dependency 2015-09-16 10:58:51 +02:00
Hauke Petersen
92c8f279d9 Merge pull request #3725 from avmelnikoff/cpu/stm32f1
cpu/stm32f1: added stm32f103c8 linkerscript
2015-09-07 17:05:33 +02:00
efbd5518f6 cpu: stm32f1: timer: fix race when combining two 16bit timer values 2015-09-05 12:43:37 +02:00
Alex V. Melnikov
8d47f83964 cpu/stm32f1: added stm32f103c8 linkerscript
Added stm32f103c8 memory definitions for cortexm common linkerscript
2015-08-27 11:52:44 +03:00
6c185655c8 cpu: stm32f1: use periph_common SPI functions 2015-08-14 14:46:35 +02:00
Hauke Petersen
af10ab64a7 cpu/stm32f1: simplified pin init in periph drivers 2015-08-12 10:50:17 +02:00
Oleg Hahm
f90032f94f Merge pull request #3334 from kaspar030/remove_old_net
remove old network stack
2015-08-06 15:10:11 +02:00
Hauke Petersen
bcb9aebadd cpu/stm32f1: modernized the GPIO driver 2015-08-06 13:48:25 +02:00
Hauke Petersen
75472eddf4 cpu: remove transceiver defines from cpu_conf files 2015-08-06 12:13:54 +02:00
f584bd6921 cpu: stm32f1: fix timer auto reload value
Previously, the auto-reload register was set to TIMERx_MAXVALUE. This is
incorrect, as TIMERx combines two 16bit timers.

This commit fixes the assignment.
2015-07-30 14:35:27 +02:00
Hauke Petersen
5eb9b73cd6 cpu/stm32f1: optimization of startup code
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
6284bbbbe4 cpu/stm32f1: adjusted to changed GPIO interface 2015-06-12 19:10:49 +02:00
Hauke Petersen
744ec88a74 cpu: use cortexm common linkerscript 2015-05-30 13:43:19 +02:00
Joakim Gebart
c09a8484e2 cortexm: Move ldscripts into separate directory
Less clutter inside the cpu/* directories by placing linker scripts
under cpu/*/ldscripts/CPUNAME.ld
2015-05-30 12:20:07 +02:00
Hauke Petersen
0e61ec097c cpu/stm32f1: adapted to centralized cpu conf 2015-05-29 16:44:52 +02:00
haukepetersen
0d5c8546f3 cpu: adapted Makefiles to unified cortexm module 2015-05-28 19:30:07 +02:00
Hauke Petersen
a5e4b02ed8 cpu: fixed doxygen for multiple headers 2015-05-28 15:45:05 +02:00
Hauke Petersen
9943f51080 global: renamed cpu-conf.h into cpu_conf.h 2015-05-28 15:45:05 +02:00
Hauke Petersen
c51ba47c87 cpu/stm32f1: make use of hwtimer_compat module 2015-05-27 10:02:36 +02:00
8ef7c5eaac cpu: stm32f1: use cortex common makefile and newlib module 2015-05-26 10:46:24 +02:00
Joakim Gebart
13832d8e62 everything: Remove filename from @file Doxygen command 2015-05-22 07:34:41 +02:00
Lucas Jenss
426170b064 Improve naming of thread stacksize/priority constants
As discussed in #2725, this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:

* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
haukepetersen
84be07f2ab cpu/stm32f1: fixed uart_init()
- added linebreak to funtion declaration
- fixed saving of callback argument
2015-05-18 21:12:23 +02:00
Joakim Gebart
d0709d914e stm32f1: Replace tabs by spaces 2015-05-18 07:10:52 +02:00
Oleg Hahm
828839316b core: renamed crash.h to panic.h 2015-05-09 18:44:10 +02:00
Hauke Petersen
5893ca8851 cpu/stm32f1: fixed GPIO interrupt cb arg handling 2015-04-15 15:39:57 +02:00
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
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>
2014-09-03 10:28:33 +02:00
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>
2014-09-02 17:17:21 +02:00
Thomas Eichinger
0e79a01cd2 stm32f1: SPI: implement speed setting properly 2014-08-21 17:53:38 +02:00
Thomas Eichinger
6b43b3f587 stm32f1: implement new cpuid_get 2014-08-21 17:53:38 +02:00
Thomas Eichinger
c28aebf105 at86rf231: handle rx tx state changes correctly 2014-08-21 17:53:38 +02:00
Thomas Eichinger
b6abdc9519 stm32f1: implement SPI register access functions 2014-08-21 17:53:38 +02:00
Thomas Eichinger
e59bc2eb9d iot-lab_M3: refactor at86rf231 driver 2014-08-21 17:53:37 +02:00
Thomas Eichinger
b86b78bcb2 stm32f1: implement missing UART0 parts 2014-08-21 17:53:37 +02:00
Thomas Eichinger
aaa2c2e8ba boards: initial import of iot-lab_M3 2014-08-21 17:53:37 +02:00
Thomas Eichinger
37611db41c cpu: initial import of stm32f1 2014-08-21 17:53:37 +02:00