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

1856 Commits

Author SHA1 Message Date
8c08c9f731 Merge pull request #4049 from thomaseichinger/pr/mega_gpio_oob
cpu/atmega2560: fix out of bounds array access
2015-10-13 13:00:07 +02:00
Thomas Eichinger
c0782d68e8 Merge pull request #4070 from thomaseichinger/hauke_fix_l1_uartpins
cpu/stm32l1: cleaned up UART pin configuration slightly
2015-10-13 11:37:12 +02:00
daniel-k
70c8f355c5 samd21: don't change priority of interrupts, this is really evil 2015-10-12 19:53:43 +02:00
Hauke Petersen
cdcdd185af boards/nucleo-l1: adapted UART configuration 2015-10-10 13:24:28 +02:00
Paul Rathgeb
8b97ef12d5 cpu/lpc11u34 : Add CPUID support and added this capability to board/weio 2015-10-10 09:23:45 +02:00
Hauke Petersen
2e84fbf85e cpu/stm32l1: optimized pin init in UART driver 2015-10-09 11:15:34 +02:00
Thomas Eichinger
89c0f42b00 Merge pull request #4029 from ks156/pwm
cpu/lpc11u34 : Peripheral addition : PWM
2015-10-08 17:00:52 +02:00
Cenk Gündoğan
05fe4a33d8 Merge pull request #3870 from cgundogan/pr/cpu/cortexm0plus
cpu/Makefile.include.cortexm_common: don't use cortex-m0plus for clang if unsupported
2015-10-08 16:50:39 +02:00
Paul Rathgeb
01e5c056d9 cpu/lpc11u34 : Added PWM support for the NXP LPC11U34
and added PWM capabilities to the board WeIO
2015-10-08 15:37:38 +02:00
Thomas Eichinger
11895d4f07 cpu/atmega2560: fix out of bounds array access 2015-10-05 13:55:16 +02:00
Daniel Amkær Sørensen
e500301f1c cpu/atmega2560: gpio - fixes a bug where gpio_* behaves incorrect if PORTn address > 0xFF 2015-10-05 12:43:35 +02:00
Ludwig Knüpfer
dd3229aa62 native: dynamically load malloc
g++ 5.2.0 apparently requires malloc before startup is run.
2015-10-04 18:13:12 +02:00
Paul Rathgeb
53b6df3751 cpu/lpc11u34: Fixed typo 2015-10-02 14:56:52 +02:00
Paul Rathgeb
100bd51a64 cpu/lpc11u34 : Added a new CPU definition for NXP LPC11U34
This CPU is used in the WeIO (www.we-io.net)
               board.
               Peripheral included :
               - timer
               - uart
               - gpio
2015-10-01 20:11:00 +02:00
5b0dc7641f Merge pull request #4004 from sgso/used_attribute_for_lto
cpu/cortexm_common: add used attributes for LTO
2015-10-01 11:18:46 +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
Sebastian Sontberg
bc1e6c815e cpu/cortexm_common: add used attributes for LTO 2015-09-30 15:56:38 +02:00
Peter Kietzmann
be8f63769c Merge pull request #3879 from sgso/fix_spi_slave_return_codes
cpu: let spi_init_slave() stubs return error codes
2015-09-30 14:07:54 +02:00
Daniel Krebs
85f5a86f7e Merge pull request #3887 from daniel-k/pr/samd21_clocks
samd21: tidy up peripheral clocks and fix potential bugs
2015-09-30 10:42:10 +02:00
Thomas Eichinger
053d2498fc Merge pull request #3193 from locicontrols/cc2538-uart-fixes
cpu/cc2538: misc UART driver fixes
2015-09-30 00:30:31 +02:00
Peter Kietzmann
076cbb6c15 Merge pull request #3897 from haukepetersen/opt_l1_baudcalc
cpu/stm32l1: optimized baudrate calculation
2015-09-29 23:41:27 +02:00
Peter Kietzmann
c797117be1 Merge pull request #3896 from haukepetersen/opt_f4_baudcalc
cpu/stm32f4: optimized baudrate calculation
2015-09-29 23:30:35 +02:00
Peter Kietzmann
6dd73a0e70 Merge pull request #3895 from haukepetersen/opt_f3_baudcalc
cpu/stm32f3: optimized baudrate calculation
2015-09-29 22:24:23 +02:00
Peter Kietzmann
15b5e09d9f Merge pull request #3894 from haukepetersen/opt_f0_baudcalc
cpu/stm32f0: optimized baudrate calculation
2015-09-29 21:01:37 +02:00
Peter Kietzmann
d081adeda9 Merge pull request #3751 from daniel-k/pr/samd21_i2c
samd21/i2c: add feedback in case transfer failed
2015-09-29 20:14:43 +02:00
daniel-k
0b6da4609e samd21: tidy up peripheral clocks and fix potential bugs in pwm and i2c clocks 2015-09-29 18:49:46 +02:00
Ian Martin
40b93ea6ad cpu/cc2538: uart init overhaul 2015-09-29 12:26:13 -04:00
Ian Martin
aca53006b0 cpu/cc2538: preserve UART_CTL flags when clearing an error condition 2015-09-29 12:26:13 -04:00
Ian Martin
b2c51bed6a cpu/cc2538: eliminate unused macros UART_1_CTS_PORT and UART_1_RTS_PORT 2015-09-29 12:26:13 -04:00
Ian Martin
d70705f840 cpu/cc2538: round when computing the UART baudrate divisor 2015-09-29 12:26:13 -04:00
effb15a2cc Merge pull request #3313 from gebart/pr/eINT-fixes
eINT/dINT fixes
2015-09-29 12:39:16 +02:00
Daniel Krebs
1c585688bc Merge pull request #3700 from gebart/pr/cortexm-state-rebased
cortexm: Attempt to reconstruct state for debugging hard faults
2015-09-29 11:26:28 +02:00
Oleg Hahm
4cfb8140e4 Merge pull request #3978 from LudwigOrtmann/pr/namechange
documentation: update my name (Ortmann -> Knüpfer)
2015-09-28 10:38:41 +02:00
Ludwig Knüpfer
eda6328e21 documentation: update my name (Ortmann -> Knüpfer) 2015-09-27 18:58:30 +02:00
Oleg Hahm
f035bced0c doc: put network devices and sensors in subgroups 2015-09-27 18:25:43 +02:00
d9414fdab4 cpu: msp430fxyz: switch back to uart_stdio 2015-09-25 11:09:19 +02:00
Hauke Petersen
f7057da00d Merge pull request #3909 from gebart/pr/k60-delete-old-devio
cpu/k60: remove leftover files from old syscall implementation
2015-09-24 16:29:07 +02:00
Joakim Nohlgård
015098d2c2 kinetis: timer: return error if timer channel is not zero. 2015-09-24 06:46:34 +02:00
Hauke Petersen
ff84390627 Merge pull request #3939 from haukepetersen/fix_native_periph_timer
native/timer: fix return value for invalid channel
2015-09-23 22:54:05 +02:00
d0ff4946ea cpu: lpc2387: add spi_conf_pins() 2015-09-23 19:00:55 +02:00
Hauke Petersen
1664bcbf59 native/timer: fix return value for invalid channel 2015-09-23 14:48:23 +02:00
Joakim Gebart
56c6d629f7 cpu/cortexm_common: Improve hardfault debug information
Print more relevant information and attempt to reconstruct the state for GDB before halting.
2015-09-23 13:50:06 +02:00
Cenk Gündoğan
32ff8e30e1 cpu/Makefile.include.cortexm_common: don't use cortex-m0plus for clang if unsupported 2015-09-22 21:19:59 +02:00
Hauke Petersen
1f02e7c86a Merge pull request #3856 from haukepetersen/opt_l1_timer
cpu/stm32l1: optimized and fixed timer driver
2015-09-22 14:45:00 +02:00
Hauke Petersen
d7cf9b3912 cpu/stm32l1: optimized and fixed timer driver 2015-09-22 12:30:41 +02:00
483b59554a cpu: msp430fxyz: fix usart ISR 2015-09-22 10:43:27 +02:00
c122571801 cpu: msp430-common: fix context save/restore
Previously, __restore_context was meddling with the to-be-restored
context SR on the stack, not correctly restoring GIE.
Now, we let the CPU restore the correct status register as saved in
__save_context.

Contains some simplification of the context save/restore logic.
2015-09-22 10:43:27 +02:00
Joakim Gebart
96528ea266 cpu/k60: remove leftover files from old syscall implementation 2015-09-21 08:45:07 +02:00
Joakim Nohlgård
808b1abdd0 Merge pull request #3623 from gebart/pr/kinetis-timer-stop-fix
cpu/kinetis_common: periph/timer, read PIT value before stopping
2015-09-21 08:21:34 +02:00
Oleg Hahm
d89ac480eb atmega: added panic function 2015-09-20 21:44:26 +02:00
Joakim Nohlgård
98c465008b all: Update @gebart family name, email 2015-09-20 13:47:39 +02:00
Oleg Hahm
d664f96e61 lm4f120: removed superfluous stellaris debug.h 2015-09-20 01:51:47 +02:00
Oleg Hahm
e15bdd257a debug: replace __FILE__ by RIOT_RELATIVE_FILE 2015-09-20 01:51:47 +02:00
Joakim Gebart
27565a655e cpu/native: remove dINT/eINT definitions 2015-09-19 10:38:18 +02:00
Joakim Gebart
6473fa77d4 cpu/arm7_common: remove dINT/eINT definitions 2015-09-19 10:37:20 +02:00
Joakim Gebart
b6a88cba5f cpu/cortexm_common: remove dINT/eINT definitions 2015-09-19 10:37:17 +02:00
Joakim Gebart
199528d3fb cpu/atmega: remove dINT/eINT definitions 2015-09-19 10:35:58 +02:00
Joakim Gebart
0d2efd5fe7 native/syscalls: Use restoreIRQ 2015-09-19 10:35:58 +02:00
Hauke Petersen
b3b7fe790f cpu/stm32l1: optimized baudrate calculation 2015-09-18 12:25:21 +02:00
Hauke Petersen
d17973a060 cpu/stm32f4: optimized baudrate calculation 2015-09-18 12:21:46 +02:00
Hauke Petersen
b4e3c2849c cpu/stm32f3: optimized baudrate calculation 2015-09-18 12:17:01 +02:00
Hauke Petersen
c0c277c49b cpu/stm32f0: optimized baudrate calculation 2015-09-18 12:10:17 +02:00
Hauke Petersen
6b9ca4d5c0 cpu/stm32f1: optimized baudrate calculation 2015-09-18 12:04:25 +02:00
Hauke Petersen
b49eb93249 cpu/cc430: timer: s/TIMER_DEV/TIMER_BASE/ 2015-09-17 13:57:58 +02:00
Hauke Petersen
35aaa62c38 cpu/kinetis_common: s/TIMER_DEV/TIMER_BASE/ 2015-09-17 13:57:58 +02:00
Hauke Petersen
7957ce4d75 cpu/msp430fxyz: s/TIMER_DEV/TIMER_BASE/ 2015-09-17 13:57:58 +02:00
Hauke Petersen
399e7c1c2e cpu/msp430: added SPI periph driver 2015-09-17 11:32:38 +02:00
Thomas Eichinger
92cd6dfcba Merge pull request #3866 from haukepetersen/opt_msp430_board_makefiles
boards: Makefile cleanup for MSP430 based boards
2015-09-17 11:30:40 +02:00
Sebastian Sontberg
8b4fcc2a14 cpu: let spi_init_slave() stubs return error codes 2015-09-17 11:19:31 +02:00
Martine Lenders
aaff370bc9 Merge pull request #3710 from authmillenon/cpu/feat/atmega-errno
atmega_common: give distinct numbers to errnos
2015-09-17 10:14:57 +02:00
Martine Lenders
2184c97002 Merge pull request #3838 from haukepetersen/opt_samuart
cpu/samd21: optimized and extended UART impl.
2015-09-17 03:39:36 +02:00
Hauke Petersen
515d325c89 cpu/msp430xx: some Makefile cleanup
- removed redundancies
- optical cleanup
2015-09-16 17:07:26 +02:00
ca540c9d07 cpu: atmega2560: use double-read scheme for timer read 2015-09-16 11:13:42 +02:00
cbb7750202 boards: msba2: add xtimer tuning values, remove HW_TIMER define 2015-09-16 10:58:55 +02:00
a22f0a3c78 cpu: msp430*: remove obsolete hwtimer_compat dependency 2015-09-16 10:58:54 +02:00
832539fc88 cpu: cc430: remove hwtimer support, switch gpioint to xtimer 2015-09-16 10:58:53 +02:00
87d2596819 cpu: cc430: make adc use xtimer 2015-09-16 10:58:53 +02:00
9d088bb3d7 cpu: lpc2387: mci: use xwtimer 2015-09-16 10:58:53 +02:00
4e8bf2cb69 cpu: native: remove hwtimer traces 2015-09-16 10:58:53 +02:00
48b21f00c3 cpu: x86: remove obsolete hwtimer support 2015-09-16 10:58:53 +02:00
b0893a99ba cpu: lpc2387: adc: use xtimer 2015-09-16 10:58:53 +02:00
2cd4a80054 cpu: native: minor timer-related doxygen updates 2015-09-16 10:58:53 +02:00
012d82ecaf cpu: arm7_common: remove obsolete hwtimer support 2015-09-16 10:58:53 +02:00
8c147f1e3c cpu: cc2538: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
d239f3c4fd cpu: k60: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
c0d3524132 cpu: kinetis_common: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
16e19f3975 cpu: lm4f120: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
8b46d1dfc4 cpu: lpc1768: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
c3fa148256 cpu: msp430-common: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
ea2013ff16 cpu: nrf51: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
90c1e7ce74 cpu: sam3: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
889991503e cpu: saml21: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
9d75b2f2d9 cpu: stm32f0: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
d7a4f90e69 cpu: stm32f1: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
3e0bcd45c5 cpu: stm32f3: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
01f87b9df0 cpu: stm32f4: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
8e475fa57d cpu: stm32l1: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
41dff1052e cpu: x86: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
d82ca16b5a cpu: atmega2560: drop 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
391bc02c06 cpu: cortexm_common: busywait before resetting 2015-09-16 10:58:51 +02:00
dd9de14e49 cpu: samd21: remove hwtimer support 2015-09-16 10:58:51 +02:00
fb773bf90a cpu: native: remove hwtimer_compat dependency 2015-09-16 10:58:51 +02:00
Peter Kietzmann
0f740f611c Merge pull request #3829 from DipSwitch/spi_set_pin_speed
cpu/stm32l1-f0/spi: Configure the SPI pins as highspeed
2015-09-16 10:23:43 +02:00
dd87073a60 Merge pull request #3826 from OlegHahm/netdev2_tap_buffer_size
netdev2_tap: set maximum buffer size correctly
2015-09-15 13:23:28 +02:00
Hauke Petersen
1a29163b63 cpu/samd21: optimized UART implementation 2015-09-14 17:20:01 +02:00
bd27feefec cpu: atmega2560: simplify periph/timer implementation 2015-09-14 10:47:35 +02:00
7fcb2b718e cpu: atmega: implement irq_arch_in 2015-09-14 10:47:28 +02:00
Martine Lenders
93f555ef69 Merge pull request #3782 from OlegHahm/RIOT_assert
core: RIOT's own assert macro
2015-09-12 13:12:34 +02:00
DipSwitch
1fe296d707 cpu/stm32l1-f0/spi: Configure the SPI pins as highspeed 2015-09-12 12:47:32 +02:00
Oleg Hahm
49917a5797 core: cpu: fix check for DEVELHELP 2015-09-12 12:43:15 +02:00
Oleg Hahm
fd121a94e6 netdev2_tap: set maximum buffer size correctly 2015-09-12 12:02:48 +02:00
Oleg Hahm
f3245cecac core: panic: last instruction's address for assert 2015-09-11 23:23:31 +02:00
Oleg Hahm
d7161b6d4b cpu: inline function to print instruction register 2015-09-11 23:23:31 +02:00
Oleg Hahm
143d613307 x86: added missing panic function 2015-09-11 16:09:28 +02:00
Martine Lenders
1c0cf3bf9c native: netdev2_tap: fix NETOPT_IS_WIRED flag 2015-09-11 13:11:33 +02:00
Thomas Eichinger
5a6bc8c284 Merge pull request #3569 from authmillenon/msp430/enh/use-log
msp430: use assert instead of printf
2015-09-11 12:47:15 +02:00
Hauke Petersen
a4d393eea3 cpu/stm32f4: fixed typo in prescaler for timer1 2015-09-08 16:22:24 +02:00
Peter Kietzmann
b4bd18e220 Merge pull request #3792 from haukepetersen/fix_stm32f3_gpio_debug
cpu/stm32f3: disable debug in GPIO driver
2015-09-07 21:49:34 +02:00
Peter Kietzmann
4e47e909ba Merge pull request #2799 from ReneHerthel/arduino_2560_gpio
Arduino-mega2560 GPIO implementation
2015-09-07 21:43:30 +02:00
Hauke Petersen
32cf5423a2 cpu/stm32f3: disable debug in GPIO driver 2015-09-07 18:13:00 +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
René Herthel
d05151fdef cpu/mega2560: initial import of a gpio driver 2015-09-07 14:48:15 +02:00
344b56bca8 Merge pull request #3167 from haukepetersen/fix_native_stacksizes
cpu/native: adjusted stacksizes
2015-09-05 23:17:45 +02:00
efbd5518f6 cpu: stm32f1: timer: fix race when combining two 16bit timer values 2015-09-05 12:43:37 +02:00
Hauke Petersen
7701aed546 Merge pull request #3164 from kaspar030/remove_uart0
sys: remove uart0
2015-09-04 18:54:30 +02:00
48baf5ddcf Merge pull request #3683 from kaspar030/add_gnrc_netdev2_support
sys: net: add gnrc netdev2 support
2015-09-04 18:00:18 +02:00
fe594126e6 cpu: x86: remove obsolete uart0 code 2015-09-04 17:47:01 +02:00
f433c9a5c7 cpu: msp430-common: remove obsolete UART0_BUFSIZE define 2015-09-04 17:46:23 +02:00
087f11db09 cpu: lpc2387: remove obsolete UART0_BUFSIZE define 2015-09-04 17:46:23 +02:00
d3006b171a cpu: cortexm_common: remove obsolete UART0_BUFSIZE define 2015-09-04 17:46:23 +02:00
f2825d2b55 cpu: atmega2560: remove obsolete UART0_BUFSIZE define 2015-09-04 17:46:23 +02:00
ab863cf831 cpu: x86: remove obsolete uart0 header include 2015-09-04 17:46:23 +02:00
0e4386a46f native: remove uart0 2015-09-04 17:46:23 +02:00
a13bc46f3e sys: remove uart0 2015-09-04 17:46:23 +02:00
Oleg Hahm
e2639d7f83 core: use enums for panic 2015-09-04 16:14:35 +02:00
ef972735dc sys: net: replace dev_eth with netdev2, adapt native tap driver 2015-09-04 15:39:04 +02:00
Hauke Petersen
56ffc5672c cpu/lpc2387: use hwtimer_compat module 2015-09-04 15:32:50 +02:00
Hauke Petersen
342d292889 cpu/lpc2387: added low-level timer implementation 2015-09-04 15:32:50 +02:00
128d9db0a5 Merge pull request #3766 from haukepetersen/rm_econotag
boards: removed support for redbee-econotag
2015-09-04 12:35:41 +02:00
Peter Kietzmann
ef000d46af Merge pull request #3426 from kaspar030/make_arduino-mega2560_use_uart_stdio
board: arduino-mega2560: use uart_stdio
2015-09-03 18:04:19 +02:00
Hauke Petersen
4f0bd75a99 cpu/msp430fxyz: added periph GPIO driver 2015-09-03 16:29:55 +02:00
Hauke Petersen
62d4981457 cpu/arm7_common: removed mc1322x code 2015-09-03 16:09:42 +02:00
Hauke Petersen
4e45d4640c cpu: removed support for the mc1322x CPU 2015-09-03 16:07:20 +02:00
73e15bdde1 atmega2560: remove uart0, adapt to uart_stdio 2015-09-03 15:53:01 +02:00
Thomas Eichinger
fa11195e38 Merge pull request #3393 from thomaseichinger/pr/fix_osx_warnings_errors
native: fix warning error OS X
2015-09-03 14:04:45 +02:00
Hauke Petersen
ed71388532 cpu/msp430fxyz: make use of uart_stdio module 2015-09-03 12:00:33 +02:00
Hauke Petersen
2f63bac318 cpu/msp430fxyz: added low-level UART driver 2015-09-03 12:00:33 +02:00
Hauke Petersen
fb8d15d34a Merge pull request #3724 from haukepetersen/add_msp430_periph_timer
cpu/[msp|cc]430: added peripheral timer driver
2015-09-03 12:00:07 +02:00
Thomas Eichinger
3fba38e47b cpu/native: fix wrong type for _sigio_child() 2015-09-03 11:49:57 +02:00
Hauke Petersen
68e7965b50 cpu/msp43-common: re-added deprecated e|dINT defs 2015-09-03 10:31:30 +02:00
Thomas Eichinger
f841811a49 cpu/native: fix OS X includes and declarations 2015-09-02 17:34:47 +02:00
Thomas Eichinger
f10939c01e cpu/native: add conditional include on OS X for IFNAMSIZ 2015-09-02 17:34:47 +02:00
Hauke Petersen
fd8c0de3d2 cpu/msp430-common: simplified hwtimer configuration 2015-09-02 17:10:28 +02:00
Hauke Petersen
c20af817c7 cpu/msp430fxyz: added peripheral timer driver 2015-09-02 17:10:27 +02:00
Hauke Petersen
335ec926de cpu/cc430: added peripheral timer implementation 2015-09-02 17:10:27 +02:00
Hauke Petersen
69e83bbab3 cpu: removed hwtimer code from msp430 CPUs 2015-09-02 17:10:27 +02:00
Hauke Petersen
0cdda8bad6 boards/chronos: fixed after removing legacy header 2015-09-02 17:10:27 +02:00
Hauke Petersen
7d25b41610 cpu/msp430-common: removed legacymsp430.h code 2015-09-02 16:47:52 +02:00
6dec2efdd6 saml21: add lpm support 2015-09-02 16:46:42 +02:00
daniel-k
c747d7dae4 samd21/i2c: add feedback in case transfer failed 2015-08-31 17:31:17 +02:00
Iván Briano
1481b01df8 cpu: samd21: Enable the interrupt line for PA28
So the onboard button on the Samr21-xpro works again.
2015-08-27 14:08:16 -03: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
Martine Lenders
dc82939eb3 atmega_common: give distinct numbers to errnos 2015-08-25 22:07:22 +02:00
Emmanuel Baccelli
014939805e Merge pull request #3062 from alignan/pull/remote-port
New Zolertia Re-Mote platform (CC2538 + CC1120)
2015-08-25 21:18:13 +02:00
Thomas Eichinger
82aff54a74 Merge pull request #3703 from DipSwitch/add_clock_selection_stm32l1
Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32L1 family
2015-08-25 12:22:46 +02:00
DipSwitch
148acc684b cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32L1 family 2015-08-25 10:12:48 +02:00
DipSwitch
04f49a1929 cpu: fix stm32l1 cpuid driver for cat 1/2 2015-08-24 21:46:36 +02:00
Lari Lehtomäki
1ecaadab4e cpu/stm32f0: RTC implementation with external clock
tests: Tests for RTC clock
2015-08-20 13:09:43 +03:00
Peter Kietzmann
86af1969b5 Merge pull request #3666 from daniel-k/cortexm_r13_deprecated
cortexm_common: don't compare with r13/sp in assembly, fix #3664
2015-08-20 11:48:13 +02:00
Joakim Gebart
56b0beeebe Merge pull request #3107 from gebart/pr/cppsupport
c++: Define some support functions required by GCC
2015-08-19 21:49:24 +02:00
Daniel Krebs
cb4aec676b cortexm_common: don't compare with r13/sp in assembly, fix #3664 2015-08-19 20:56:43 +02:00
daniel-k
7a86344c4d cpu/cortexm_common: gather addition information on hardfault 2015-08-19 14:24:54 +02:00
Martine Lenders
58ff31bfe9 gnrc: make all gnrc modules sub-modules of gnrc 2015-08-18 23:00:07 +02:00
Martine Lenders
87c222d2fa Merge pull request #3595 from authmillenon/gnrc/api/mv
gnrc: rename ng_netbase to gnrc
2015-08-18 16:59:34 +02:00
Martine Lenders
b969eeb217 gnrc: rename ng_netbase to gnrc 2015-08-18 16:11:55 +02:00
Hauke Petersen
3922b6c852 Merge pull request #3530 from kaspar030/update_msba2
cpu: lpc2387: provide periph/* implementations, update to use newlib module.
2015-08-17 21:45:16 +02:00
Antonio Lignan
b8823b7afe Zolertia Re-Mote platform (cc2538 + cc1120) port 2015-08-17 14:17:32 +02:00
Joakim Gebart
ff05007a6e boards/mulle: cleanup
Remove old syscalls implementation from before cortexm_common unification and sys/newlib introduction.
2015-08-14 20:09:44 +02:00
3b94a0d497 lpc2387/msba2/avsextrem: fix doxygen warnings 2015-08-14 16:50:41 +02:00
a03ff202cf cpu: lpc2387: switch to newlib module 2015-08-14 16:50:41 +02:00
4dd63dd24e cpu: lpc2387: add periph/spi support 2015-08-14 16:50:41 +02:00
bd76626fb5 cpu: lpc2387: add periph/uart driver 2015-08-14 16:50:41 +02:00
3c5f31eb95 cpu: lpc2387: add periph/gpio imlementation 2015-08-14 16:50:41 +02:00
223ef9fe66 cpu: lpc2387: drop gpioint 2015-08-14 16:50:41 +02:00
0541d21f86 Merge pull request #3620 from kaspar030/add_generic_spi_fallbacks
drivers: periph: add generic spi fallbacks
2015-08-14 16:47:48 +02:00
6b2b5eb5e4 cpu: stm32l1: use periph_common SPI functions 2015-08-14 14:46:35 +02:00
4b15cc635e cpu: stm32f4: use periph_common SPI functions 2015-08-14 14:46:35 +02:00
fa00154f2a cpu: stm32f3: use periph_common SPI functions 2015-08-14 14:46:35 +02:00
6c185655c8 cpu: stm32f1: use periph_common SPI functions 2015-08-14 14:46:35 +02:00
336c5300cd cpu: stm32f0: use periph_common SPI functions 2015-08-14 14:46:35 +02:00
21c774fd82 cpu: saml21: use periph_common SPI functions 2015-08-14 14:46:35 +02:00
0a859b91ee cpu: samd21: use periph_common SPI functions 2015-08-14 14:46:35 +02:00
626289b5c7 cpu: sam3: use periph_common SPI functions 2015-08-14 14:46:35 +02:00
Martine Lenders
664f51e149 doc: adapt documentation on tapsetup script 2015-08-14 12:05:34 +02:00
Martine Lenders
5760f9042d native: unify and simplify usage of tapsetup script 2015-08-14 12:05:34 +02:00
Joakim Gebart
cf5db434e6 cpu/kinetis_common: periph/timer, read PIT value before stopping
Reading CVAL after stopping timer seem to return zero.
Ref. manual states: "The counter period can be restarted, by first
disabling, and then enabling the timer with TCTRLn[TEN]", but does not
state whether the reset of CVAL happens on TEN 0->1 transition, or 1->0
transtion. Empirical evidence suggests the latter is the implemented behaviour.
2015-08-13 21:06:50 +02:00
Peter Kietzmann
77ca7a50bc Merge pull request #3509 from katezilla/LimiFrog-v1
board: limifrog-v1 initial commit
2015-08-13 15:45:27 +02:00
Katja Kirstein
c95612295e cpu/stm32l1: remodel to new GPIO interface 2015-08-13 15:07:49 +02:00
Katja Kirstein
bda86cfcd3 boards: limifrog-v1 initial commit 2015-08-13 14:14:18 +02:00
Hauke Petersen
af10ab64a7 cpu/stm32f1: simplified pin init in periph drivers 2015-08-12 10:50:17 +02:00
Martine Lenders
f0cb1429f0 native: rename ng_nativenet to dev_eth_tap 2015-08-09 22:04:26 +02:00
Martine Lenders
ca71ae4f59 dev_eth: fix documentation 2015-08-09 22:02:10 +02:00
Joakim Gebart
62b1435646 cortexm: Remove __dso_handle from startup.c in favour of sys/cpp11-compat/cppsupport.cpp 2015-08-08 14:44:41 +02:00
Martine Lenders
472ee315f0 ethernet/ethertype: remove ng_ prefix 2015-08-07 17:09:19 +02:00
Hauke Petersen
97a19016cf drivers: adapted to renamed NETOPT header 2015-08-06 15:36:56 +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
723d0b2479 remove legacy board specific cc110x code 2015-08-06 12:13:19 +02:00
09fb612ceb cpu: lpc2387: remove obsolete transceiver defines 2015-08-06 12:13:18 +02:00
5d8349298f remove bulk of legacy network stack and drivers 2015-08-06 12:12:47 +02:00
Martine Lenders
cef0857992 msp430: use assert instead of printf 2015-08-05 19:43:51 +02:00
Martine Lenders
6d9b928818 Merge pull request #3536 from cgundogan/pr/doc/todo
Make use of doxygen todo
2015-08-05 15:59:01 +02:00
Benoît Canet
22da1f834b native: ng: net: Close tap device and cleanup on reboot 2015-08-03 18:17:53 +02:00
Benoît Canet
008b105166 native: net: Take care of unregistering SIGIO on reboot 2015-08-03 18:17:53 +02:00
Benoît Canet
800b057fac native: net: Make _native_tap_fd static
One global variable less is always good.
2015-08-03 18:17:52 +02:00
Hauke Petersen
3caa44ca95 cpu/lm4f120: included dev_enums.h in periph_cpu.h 2015-08-03 13:56:16 +02:00
Hauke Petersen
3d6661fa62 cpu/lpc1768: included dev_enums.h in periph_cpu.h 2015-08-03 13:56:16 +02:00
Cenk Gündoğan
6e1a593e28 cortexm_common: use doxygen todo 2015-08-03 11:00:21 +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
Benoît Canet
4893d4daea native: irq: Get rid of dINT() and eINT()
Get rid of internal usage of the old IRQ
API and keep it's implementation while
waiting for other modules to kill it.
2015-07-29 16:51:22 +02:00
21238b2ccc Merge pull request #3347 from benoit-canet/timer
native: timer: synchronize HWTIMER_SPIN_BARRIER with native timer min resolution
2015-07-29 10:14:58 +02:00
d359c86c60 cpu: cortexm_common: set pendSV to default priority 2015-07-28 20:02:45 +02:00
Oleg Hahm
03b7c7349a Merge pull request #3457 from authmillenon/gnrc/api/rename-netconf
gnrc: rename ng_netconf to ng_netopt
2015-07-28 18:21:09 +02:00
Andreas "Paul" Pauli
82c16f2b93 cpu/stm32f3: corrected register and return value, edit comment 2015-07-28 14:52:52 +02:00
Martine Lenders
6f56b983f0 gnrc: replace all instances of ng_netconf with ng_netopt 2015-07-28 13:33:12 +02:00
Rakendra Thapa
da91eba1ca Converting C++ style coding to C style 2015-07-24 08:59:55 +05:30
rakendrathapa
3761ebcc21 VariableScope fix: Reducing scope of local var 2015-07-24 08:59:54 +05:30
rakendrathapa
de98cdf8be Modify: C++ compatible header files_3 2015-07-24 08:59:54 +05:30
rakendrathapa
e4c281a0ff Modify: C++ compatible header files_2 2015-07-24 08:59:54 +05:30
rakendrathapa
d263a9b2c5 Modify: C++ compatible headers 2015-07-24 08:59:54 +05:30
rakendrathapa
2dc37817bc Modify to have C++ compatible header 2015-07-24 08:59:54 +05:30
rakendrathapa
63cb5cee4e Converting from DOS endings to UNIX _2 2015-07-24 08:59:54 +05:30
rakendrathapa
60fc3f2511 Convert from Windows to Dos endings 2015-07-24 08:59:54 +05:30
Raken
186041b553 Addition for doxygen documentation 2015-07-24 08:59:54 +05:30
Rakendra Thapa
aa30ecd04f Interrupt file to include isr correctly. 2015-07-24 08:59:54 +05:30
Rakendra Thapa
38d70a3356 Remove trailing whitespace_3 2015-07-24 08:59:54 +05:30
Rakendra Thapa
1227cb30f6 Including CPU_MODEL_ guard in cpu config file.
Remove CC110X definitions.
 Changes to be committed:
	modified:   cpu/lm4f120/include/cpu_conf.h
2015-07-24 08:59:54 +05:30
Rakendra Thapa
2d656b8732 Define CLOCK_SOURCE and move the clock defines to appropriate files. 2015-07-24 08:59:54 +05:30
Rakendra Thapa
c99de05d23 Remove Not yet supported ADC peripheral. ToDo task 2015-07-24 08:59:54 +05:30
Rakendra Thapa
dad274ccea Makefile changes.
License edit in stellaris_common
2015-07-24 08:59:53 +05:30
Rakendra Thapa
8e24860266 Commits: - Indentation Edits. - Edit Header Files. - Change comments to C-style indentation. - Edit Periph_conf file to exclude not used peripherals. # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On branch master # Your branch is up-to-date with 'origin/master'. # # Changes to be committed: # modified: boards/ek-lm4f120xl/board.c # modified: boards/ek-lm4f120xl/include/board.h # modified: boards/ek-lm4f120xl/include/periph_conf.h # modified: cpu/lm4f120/cpu.c # modified: cpu/lm4f120/include/cpu_conf.h # modified: cpu/lm4f120/include/hwtimer_cpu.h # modified: cpu/lm4f120/include/lm4f120h5qr.h # modified: cpu/lm4f120/lpm_arch.c # modified: cpu/lm4f120/periph/adc.c # modified: cpu/lm4f120/periph/cpuid.c # modified: cpu/lm4f120/periph/timer.c # modified: cpu/lm4f120/periph/uart.c # modified: cpu/lm4f120/vectors.c # 2015-07-24 08:59:53 +05:30
Rakendra Thapa
dc2bbffcc7 Formatting: Delete blank line at EOF 2015-07-24 08:59:53 +05:30
Rakendra Thapa
1165d91b6f Remove trailing whitespace_2 2015-07-24 08:59:53 +05:30
Rakendra Thapa
be15d5c973 removing trailing whitespace 2015-07-24 08:59:53 +05:30
Rakendra Thapa
4757e30e10 Remove tabs to spaces 2015-07-24 08:59:53 +05:30
Rakendra Thapa
9c4a5f5d86 Applying Coding Conventions correction 2015-07-24 08:59:53 +05:30
Rakendra Thapa
8c1abd716d Adding Files for Stellaris Porting 2015-07-24 08:59:53 +05:30
Rakendra Thapa
0b673e66da Adding Support for Stellaris Launchpad LM4f120. This board is based on ARM Cortex M4 from TI. 2015-07-24 08:59:53 +05:30
Thomas Eichinger
e416937398 Merge pull request #3390 from thomaseichinger/pr/fix_warning_errors_freebsd
native: fix warning errors freebsd
2015-07-23 10:11:29 +02:00
Oleg Hahm
9922d2600c native: removed dead code
num was never read, because native will exit before.
2015-07-22 14:36:21 +02:00
Thomas Eichinger
cbc9ddc639 native: add missing include for FreeBSD 2015-07-21 18:31:13 +02:00
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
Hauke Petersen
08c4732fba cpu/native: adjusted stacksizes
The stacksizes for native were defined in a way, so that
DEBUG did not work inside of interrupt routines. The new
values should still be large enough but allow now for this.
2015-07-14 15:06:50 +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