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

1402 Commits

Author SHA1 Message Date
Thomas Eichinger
0c15084db5 native: fix wrong pointer type warning 2015-07-21 18:31:13 +02:00
Oleg Hahm
75f38c026b Merge pull request #3412 from OlegHahm/doxygen_fixes_ng
doxygen: documentation hierarchy fixes
2015-07-21 11:04:42 +02:00
Oleg Hahm
6a035fe910 doc: exclude sam3* completely from doxygen
Also remove doc.txt for sam3 (moved to cpu_conf.h)
2015-07-21 10:00:11 +02:00
Joakim Gebart
601c3002c3 cpu/kinetis_common: Cast device index enums to unsigned int before comparing for out of range values
Suppresses false warning in Clang:

    warning: comparison of constant 42 with expression of type 'xxx_t'
    is always false [-Wtautological-constant-out-of-range-compare]

See:
 - https://llvm.org/bugs/show_bug.cgi?id=16154
 - https://llvm.org/bugs/show_bug.cgi?id=22062
2015-07-21 07:21:51 +02:00
Joakim Gebart
70d59331b8 arm7_common: Build fixes after discovering an include guard overlap 2015-07-20 12:40:32 +02:00
Joakim Gebart
897f40fabe cpu/msp430-common: Clean up Doxygen groups 2015-07-20 12:40:31 +02:00
Joakim Gebart
7ff26d12ea cpu/arm7_common: Rename Doxygen group to cpu_arm7_common 2015-07-20 12:40:31 +02:00
Hauke Petersen
25abd13fb5 cpu/sam3: use hwtimer_compat module 2015-07-15 16:06:34 +02:00
Hauke Petersen
7173b41069 cpu/lpc1768: use hwtimer_compat module 2015-07-15 16:06:08 +02:00
Hauke Petersen
809b99f648 cpu/atmega2560: make use of hwtimer_compat 2015-07-15 16:05:28 +02:00
Hauke Petersen
86261e03e6 cpu/nrf51: make use of hwtimer_compat module 2015-07-15 16:02:43 +02:00
Hauke Petersen
696dff5da3 cpu/nrf51: fixedd cppcheck issue in spi.c 2015-07-14 18:22:03 +02:00
haukepetersen
1cd18f92c9 cpu/nrf51: updated CPU headers 2015-07-14 18:15:42 +02:00
haukepetersen
431ac7b3c5 cpu/nrf51: added linkerscript for 128kb variant 2015-07-14 18:15:42 +02:00
haukepetersen
987dbe983a cpu/nrf51: generalized linkerscript 2015-07-14 18:15:42 +02:00
haukepetersen
9c46a40005 cpu: renamed nrf51822 to nrf51 2015-07-14 18:15:42 +02:00
Hauke Petersen
3be56ba97e cpu/sam3: fixed vectors.c
This was an error introduced by merging #3194...
2015-07-14 16:32:06 +02:00
Hauke Petersen
3ec9c7b2cb cpu/cc430: fixed missing include in adc driver 2015-07-14 16:15:13 +02:00
Oleg Hahm
c0d5d2e9b6 Merge pull request #2571 from haukepetersen/rm_msp430_edint
cpu/msp430-common: removed e|dINT calls
2015-07-14 15:46:33 +02:00
Thomas Eichinger
7e88358135 Merge pull request #3194 from haukepetersen/mv_sam3x
cpu: rename SAM3X8E to SAM3
2015-07-14 15:42:45 +02:00
Joakim Gebart
fa4e059588 Merge pull request #3319 from gebart/pr/warning-fixes-3
Makefile.cflags: Build with -Wall -Werror by default (including fixes to correct all existing warnings)
2015-07-14 08:50:31 +02:00
Joakim Gebart
499666f24a cpu/msp430-common: Add getchar declaration 2015-07-14 08:11:19 +02:00
Joakim Gebart
153c97fc74 cpu/msp430-common: Add stdlib.h header to ensure malloc is defined.
Fixes warnings of the kind:

/data/riotbuild/riotbase/sys/bloom/bloom.c: In function 'bloom_new':
/data/riotbuild/riotbase/sys/bloom/bloom.c:39:5: error: implicit declaration of function 'calloc' [-Werror=implicit-function-declaration]
/data/riotbuild/riotbase/sys/bloom/bloom.c:39:22: error: incompatible implicit declaration of built-in function 'calloc' [-Werror]
2015-07-14 08:11:15 +02:00
Joakim Gebart
d8e9b62c75 cpu/cc430/flashrom.c: Fix warning about unused static function by declaring inline 2015-07-14 08:11:14 +02:00
Joakim Gebart
c274558e91 cpu/arm7_common/syscalls: Fix warnings and comment style 2015-07-14 08:11:14 +02:00
Joakim Gebart
32c213d0b0 cpu/cortexm_common: Fix signedness warning 2015-07-14 08:11:14 +02:00
Joakim Gebart
84bf05a0bd cpu/cc430: fix unused-but-set-variable 2015-07-14 08:11:14 +02:00
Oleg Hahm
91da19d500 Merge pull request #3381 from gebart/pr/kinetis-spi-unused-byte-in
cpu/kinetis_common/spi: Fix byte_in unused.
2015-07-14 01:17:56 +02:00
Joakim Gebart
53d81bd58d cpu/x86: rename stack_t -> stack_info_t
Avoids collision with libc defined stack_t in #include <sys/signal.h>
2015-07-13 19:57:55 +02:00
Joakim Gebart
624c241ec6 cpu/kinetis_common/spi: Fix byte_in unused.
Bug reported by the clang static analyzer.

Description: Value stored to 'byte_in' is never read
File: .../riot/cpu/kinetis_common/spi.c
Line: 1261
2015-07-13 17:24:00 +02:00
Johann Fischer
cb8ff544d5 cpu/kinetis_common/i2c.c: add _i2c_reset function, minor fixes 2015-07-09 23:19:56 +02:00
Joakim Gebart
eef8f25a44 kinetis: i2c: Handle ARBL flag in master mode.
The ARBL flag signals that bus master arbitration has been lost.
This may occur if devices on the bus misbehave, or in a multi-master
situation, or if devices are not powered and pull the SDA line down, or
if the communication wires are disconnected while communicating.
2015-07-09 23:19:55 +02:00
Joakim Gebart
cba6a81a73 kinetis: i2c: only send STOP in _i2c_stop() 2015-07-09 23:19:55 +02:00
d15f0990b3 Merge pull request #3344 from kaspar030/fix_native_timer_possible_underflow
native: periph/timer: prevent underflow in timer_set_absolute
2015-07-09 22:17:44 +02:00
Benoît Canet
e01329796d native: timer: synchronize HWTIMER_SPIN_BARRIER with timer min resolution
This keeps the test/hwtimer_wait test duration correct.
2015-07-09 20:42:21 +02:00
Peter Kietzmann
f95aaa6bf6 Merge pull request #3327 from authmillenon/native/enh/address-sanitizer
native: add address sanitizer make target
2015-07-09 16:07:00 +02:00
ec441e9aa6 native: periph/timer: prevent underflow in timer_set_absolute 2015-07-09 15:23:21 +02:00
Benoît Canet
e8e89d8ca9 native: timer: Do not cancel timer when setting it to 0 2015-07-09 15:08:47 +02:00
Martine Lenders
8a33a62914 native: add address sanitizer make target 2015-07-09 15:00:19 +02:00
Joakim Gebart
b949b5b539 Merge pull request #3335 from gebart/pr/kinetis-ldscript-cleanup
cpu/kinetis_common: refactor ldscripts
2015-07-09 12:59:02 +02:00
b2272fc016 Merge pull request #3282 from benoit-canet/timer
native: Resurect native/perif/timer and handle #715 (WIP)
2015-07-09 11:12:24 +02:00
Benoît Canet
dfbd4f946e cpu: native: switch to hwtimer_compat
The hwtimer_wait test was tortured with the
following script which ran several hours.

----

make clean all-debug

while :
do

date
./bin/native/hwtimer_wait.elf > log &
pid=$!
sleep 20

success=$(cat log|grep success)

if [ "$success" != "success"  ]
then
date
echo "BUG"
exit
fi

kill $pid

done
----

Closes #715.
2015-07-09 02:43:04 +02:00
fe96d379f6 native: add periph/timer.h timer implementation 2015-07-09 02:43:04 +02:00
Benoît Canet
ced541cc67 native: irq_cpu: Rewrite IRQs (de)registration 2015-07-09 02:43:04 +02:00
Benoît Canet
4832a1a6b0 native: irq_cpu: Whitelist signals 2015-07-09 02:43:03 +02:00
Benoît Canet
a035d27414 native: irq_cpu: Make IRQ enabling/disabling safe 2015-07-09 02:43:01 +02:00
52599fde66 cpu: native: work around shared errno in _native_lpm_sleep 2015-07-09 00:31:31 +02:00
Joakim Gebart
ed81e35e4c cpu/kinetis_common: refactor ldscripts
- Merged the two kinetis_common ldscripts into a single script.
 - Updated cpus to use the new script
 - Updated K60 to merge sram_l and sram_u into one segment
2015-07-08 19:20:00 +02:00
Joakim Gebart
ee4182b246 cpu/cortexm_common: Overwrite stack up until the current stack pointer only. 2015-07-07 18:04:30 +02:00
Joakim Gebart
63bde8906e cpu/atmega_common/avr-libc-extra/inttypes.h: Correct format strings for 64 bit numbers 2015-07-07 00:53:26 +02:00
Peter Kietzmann
004a83c44d Merge pull request #3028 from gebart/pr/cmsis-dsp
pkg/cmsis-dsp: Add CMSIS-DSP as a package
2015-07-04 09:39:22 +02:00
Lari Lehtomäki
85cf28451b cpu/stm32f3: Split the RAM on STM32F334 into RAM and CCM RAM 2015-07-03 16:45:39 +03:00
Johann F
d614cbe066 cpu/k64f: initial import for the Freescale K64F Cortex-M4 MCU 2015-07-01 23:08:02 +02:00
bapclenet
10f3f715cb Merge pull request #3205 from kaspar030/fix_samr21-xpro_clock_setup
cpu: samd21: fix synchronization loop in clk_init
2015-06-28 20:15:08 +02:00
Joakim Gebart
2f47ec6057 cortexm_common: Add CMSIS DSP defines 2015-06-25 08:00:59 +02:00
Joakim Gebart
fc4ab35140 Merge pull request #3116 from gebart/pr/lpc2387-extab
lpc2387: Add missing exception tables to linker script
2015-06-24 14:46:50 +02:00
Hauke Petersen
5a163b2e61 Merge pull request #3230 from benoit-canet/add_missing_addtogroup_brace
cpu/stm32f3: Add missing closing Doxygen braces for addtogroup
2015-06-23 09:56:23 +02:00
Peter Kietzmann
f62bc56648 Merge pull request #3215 from haukepetersen/fix_periphcpu_addenums
cpu: added dev_enums.h include to all periph_cpu.h
2015-06-22 08:44:26 +02:00
Benoît Canet
8c6c1114f3 cpu/stm32f3: Add missing closing Doxygen braces for addtogroup
The candidates locations for the closing braces were confirmed by looking at
cpu/stm32f0 headers.

The closing brace styles stick with the style of each file.

Closes #2956
2015-06-22 00:08:13 +02:00
Hauke Petersen
765c013834 Merge pull request #3155 from haukepetersen/opt_cortex_startup
cpu: centralized startup code for cortexm CPUs
2015-06-17 00:01:56 +02:00
Hauke Petersen
4ae5204b36 cpu: added dev_enums.h include to all periph_cpu.h 2015-06-16 22:41:16 +02:00
Peter Kietzmann
666ad5da5f Merge pull request #3165 from katezilla/nucleo-f303
board/Nucleo-f303: initial support for the Nucleo-f303
2015-06-16 09:17:10 +02:00
Peter Kietzmann
938d12c2d8 Merge pull request #3204 from haukepetersen/fix_f3_gpio
cpu/stm32f3: fixed init_af in GPIO driver
2015-06-16 08:05:42 +02:00
1172597594 cpu: samd21: fix synchronization loop in clk_init 2015-06-15 21:33:13 +02:00
Hauke Petersen
7216f21122 cpu/stm32f4: fix init_af in GPIO driver 2015-06-15 20:41:49 +02:00
Hauke Petersen
ad0e9c26b6 cpu/stm32f3: fixed init_af in GPIO driver 2015-06-15 20:40:40 +02:00
Hauke Petersen
88130fcb54 cpu/kw2x: optimization of startup code 2015-06-15 16:00:51 +02:00
Hauke Petersen
253e7ce715 cpu/kinetis_common: optimization of startup code 2015-06-15 16:00:51 +02:00
Hauke Petersen
8db0a57a81 cpu/k60: optimization of startup code 2015-06-15 16:00:51 +02:00
Hauke Petersen
983e8abd74 cpu/lpc1768: optimized startup code
- make use of common cortexm isr vectors
- use common cortexm startup code
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
d7e27c67c3 cpu/stm32f4: 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
bdb708a39e cpu/stm32f3: 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
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
38d38f6c79 cpu/stm32l1: 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
f30b7bf13d cpu/stm32f0: 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
aa583f254d cpu/saml21: 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
e8dd6afa38 cpu/samd21: 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
4ccbeeb6bf cpu/sam3x8e: 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
db1ee85d8b cpu/nrf51822: 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
37078856e7 cpu/cc2538: 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
4b65a07adc cpu/make.cortexm: s/startup.o/vectors.o/ 2015-06-15 16:00:51 +02:00
Hauke Petersen
c286da8d7f cpu/cortexm: unified startup code and isr handlers 2015-06-15 16:00:51 +02:00
Hauke Petersen
9476c03550 cpu/sam3: adjusted name of doxygen group 2015-06-15 14:29:46 +02:00
Hauke Petersen
2588a62d89 cpu/sam3: made headers for sam3e8x exclusive 2015-06-15 14:29:46 +02:00
Hauke Petersen
6764f7abcd cpu/sam3: moved pwm driver into correct position 2015-06-15 14:29:46 +02:00
Hauke Petersen
a819fd6474 cpu/sam3: fixed to remove cppcheck warnings
- fixed gpio driver
- fixed uart driver
2015-06-15 14:29:46 +02:00
Hauke Petersen
88c32664a8 cpu: s/sam3x8e/sam3/ 2015-06-15 14:29:46 +02:00
Hauke Petersen
71995e7cde cpu/stm32f4: added custom GPIO_UNDEF define 2015-06-14 16:16:39 +02:00
Hauke Petersen
8c690f1d6a cpu/stm32f3: added custom GPIO_UNDEF define 2015-06-14 16:16:28 +02:00
Hauke Petersen
ac8ad5419d cpu/saml21: added custom GPIO_UNDEF define 2015-06-14 16:16:04 +02:00
Hauke Petersen
138a6a7d1b cpu/samd21: added custom GPIO_UNDEF define 2015-06-14 16:15:53 +02:00
Hauke Petersen
c7f54c1189 cpu/nrf51822: added custom GPIO_UNDEF define 2015-06-14 16:15:19 +02:00
Hauke Petersen
d748d4ba4f cpu/atmega2560: removed empty gpio.c file 2015-06-14 16:14:48 +02:00
Hauke Petersen
4d34100585 cpu/atmega2560: adapted to changed GPIO driver IF 2015-06-12 19:10:49 +02:00
Hauke Petersen
5abd2ffc0a cpu/native: added periph_cpu.h 2015-06-12 19:10:49 +02:00
Hauke Petersen
480d3c68d8 cpu/stm32l1: adjusted to changed GPIO interface 2015-06-12 19:10:49 +02:00
Hauke Petersen
6284bbbbe4 cpu/stm32f1: adjusted to changed GPIO interface 2015-06-12 19:10:49 +02:00
Hauke Petersen
f9bb383118 cpu/stm32f0: adjusted to changed GPIO interface 2015-06-12 19:10:49 +02:00
Hauke Petersen
854730cfa4 cpu/sam3x8e: adjusted to changed GPIO interface 2015-06-12 19:10:49 +02:00
Hauke Petersen
17c8640708 cpu/lpc1768: added periph_cpu.h 2015-06-12 19:10:49 +02:00