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

2201 Commits

Author SHA1 Message Date
Hauke Petersen
462d156821 cpu/stm32_common: added periph clk en/dis functions 2016-03-16 12:17:16 +01:00
Hauke Petersen
546aacd2ce cpu/stm32_common: build common module 2016-03-16 12:17:16 +01:00
Martine Lenders
a137124f94 Merge pull request #5077 from OlegHahm/makefile_toolchain_common
make: always include toolchain dependent Makefile
2016-03-16 11:17:09 +01:00
Hauke Petersen
be2100e2eb cpu/stm32f1: made timer rcc_bit 32-bit 2016-03-16 10:53:16 +01:00
Hauke Petersen
dff203e7dd cpu/stm32f1: reworked UART implementation 2016-03-16 10:43:45 +01:00
DipSwitch
64b3957323 cpu/cortexm_common: Fix cpu_sleep_until_event() 2016-03-16 00:23:50 +01:00
Hauke Petersen
99888549af Merge pull request #4154 from DipSwitch/add_clock_selection_stm32f1
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F1 family
2016-03-15 19:10:43 +01:00
DipSwitch
2558050d9e cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F1 2016-03-15 17:50:39 +01:00
Hauke Petersen
1d6d54e1f2 Merge pull request #5076 from haukepetersen/opt_periph_uart_cbtype
drivers/uart: use uint8_t for data in cb signature
2016-03-15 15:17:44 +01:00
08a603852e Merge pull request #5067 from gebart/pr/cmsis-4.5
cortexm_common: Update to CMSIS 4.5
2016-03-15 13:31:04 +01:00
Oleg Hahm
94ad2ef0f4 Merge pull request #5072 from malosek/msp430-usci-tx-port-direction
cpu: msp430fxyz: uart: fixed port direction for USCI TX pin + minor typo in the comment
2016-03-15 13:13:00 +01:00
Oleg Hahm
a82556d818 make: always include toolchain dependent Makefile 2016-03-15 12:02:53 +01:00
Hauke Petersen
270de70d95 Merge pull request #4221 from DipSwitch/stm32f1_adc_implementation
cpu/stm32f1/periph/adc: ADC implementation for STM32F1
2016-03-15 11:28:58 +01:00
Hauke Petersen
b9824b9e49 Merge pull request #4956 from gebart/pr/kinetis-pwm
cpu/kinetis_common: Use gpio_init_port for PWM pin handling
2016-03-15 11:11:13 +01:00
Hauke Petersen
b23cde98cf cpus: adapted UART implementations to cb type change 2016-03-15 11:02:06 +01:00
DipSwitch
c446091d86 Merge pull request #4431 from haukepetersen/opt_periph_dac
drivers/periph: updated DAC driver interface
2016-03-15 09:14:18 +01:00
malo
c9e6299f0f cpu: msp430fxyz: uart: fixed port direction for USCI TX pin + minor typo in the comment
Signed-off-by: malo <malo@25cmsquare.io>
2016-03-15 00:08:23 +01:00
DipSwitch
a5c5a4e34c Merge pull request #5068 from gebart/pr/doxygen-fixes
Small Doxygen fixes
2016-03-14 23:53:58 +01:00
DipSwitch
68b4edf519 Merge pull request #5063 from DipSwitch/pr/fix_stm32f4_adc_resolution
cpu/stm32f4/periph/adc: ADC_SR_STRT flag is unused
2016-03-14 23:29:51 +01:00
Joakim Nohlgård
c5f43e79ba cpu/nrf5x_common: Give Doxygen group a name 2016-03-14 23:09:49 +01:00
DipSwitch
4a2134fd53 cpu/stm32f1/adc: Initial import for STM32F1 ADC 2016-03-14 22:52:26 +01:00
Joakim Nohlgård
d8b01a714c cpu/cortexm_common: Doxygen fix for cmsis_gcc.h 2016-03-14 22:16:52 +01:00
Joakim Nohlgård
61c9ba2c64 cpu/cortexm_common: Whitespace fix CMSIS header 2016-03-14 22:08:33 +01:00
Joakim Gebart
bea6cb9f15 cortexm: CMSIS: Add extern "C" to CMSIS headers 2016-03-14 22:05:57 +01:00
Hauke Petersen
ea63bf454c cpu/stm32f4: reworked DAC driver implementation 2016-03-14 20:39:31 +01:00
DipSwitch
88018849e9 cpu/stm32f4/periph/adc: ADC_SR_STRT flag is unused 2016-03-14 19:41:25 +01:00
Joakim Nohlgård
26f43786b8 cpu/cortexm_common: Update CMSIS v4.5
Original headers unmodified from CMSIS-SP-00300-r4p5-00rel0.zip
2016-03-14 18:16:36 +01:00
Joakim Nohlgård
65bb26f0b4 cpu/kinetis_common: Use gpio_init_port for PWM pin handling 2016-03-14 17:52:51 +01:00
DipSwitch
6cf7de2393 cpu/stm32f4/adc: Remove unused structure item 2016-03-14 17:22:47 +01:00
Johann Fischer
db2506822f cpu/kinetis_common/periph/i2c.c: fix generating the STOP signal
This patch fix the bug in _i2c_receive. The STOP signal should be
generated before the reading from the data register because the
receiving of the next byte will be initiated by reading
the data register (dev->D).
2016-03-14 14:53:59 +01:00
Hauke Petersen
432f033384 cpu/lm4f120: reworked ADC implementation 2016-03-14 13:06:25 +01:00
Hauke Petersen
56c8e49fd2 cpu/kw2x: moved include of mcg.h to cpu.c 2016-03-14 13:06:24 +01:00
Hauke Petersen
58e2b93b7b cpu/k64f: moved include of mcg.h to cpu.c 2016-03-14 13:06:24 +01:00
Hauke Petersen
3990bd84e7 cpu/kinetis_common: reworked ADC driver 2016-03-14 13:06:23 +01:00
Hauke Petersen
575659cd1c cpu/lpc11u34: reworked ADC driver 2016-03-14 13:06:23 +01:00
Hauke Petersen
da80af479c cpu/stm32f0: reworked ADC driver 2016-03-14 13:06:23 +01:00
Hauke Petersen
843c456f4b cpu/nrf51: adapted ADC driver to interface changes 2016-03-14 13:06:23 +01:00
Hauke Petersen
fc7c25c95e cpu/stm32f4: reworked the ADC driver 2016-03-14 13:05:46 +01:00
Joakim Nohlgård
405811da2b native: remove unused XTIMER_USLEEP_UNTIL_OVERHEAD 2016-03-14 08:26:44 +01:00
Yonezawa-T2
6d4abb96dc native: workaround for thread_t name collision 2016-03-14 14:23:38 +09:00
DipSwitch
41ae0af3e2 Merge pull request #4978 from dkm/pr/adc
cpu/lm4f120: ADC support
2016-03-14 00:05:28 +01:00
Martine Lenders
b8878daaaf Merge pull request #5052 from gebart/pr/clang-fixes3
cpu/periph: Fix some more empty body warnings
2016-03-13 13:28:01 +01:00
Joakim Nohlgård
7b4e776808 Merge pull request #4971 from DipSwitch/pr/fix_stm32f4_dma_nvic_enable
cpu/stm32f4/dma: Fix some miscalculations in the DMA implemenation
2016-03-13 08:39:47 +01:00
Joakim Nohlgård
7ce5f1b5c0 cpu/stm32f1: i2c: Use {} notation for empty while loops 2016-03-13 08:14:39 +01:00
Joakim Nohlgård
30ed36b236 cpu/cc2538: i2c: Make WARN_IF use {} to silence Clang warning when ENABLE_DEBUG=0 2016-03-13 08:14:39 +01:00
DipSwitch
e2f8d59956 cpu/stm32f4/dma: Fix the IQRn calculation for DMA channels > 8 2016-03-11 16:20:19 +01:00
DipSwitch
d72cdcaad2 cpu/stm32/gpio_exti: EXTI->PR is of type RW_w1 so don't RMW the pending status flags 2016-03-11 15:46:41 +01:00
Oleg Hahm
402e20c00c Merge pull request #4992 from OlegHahm/tapsetup_readmes
doc: updated and clarified tapsetup usage
2016-03-10 18:52:38 +01:00
Hauke Petersen
8c68121bb2 Merge pull request #4463 from nqd/lpc1768-cpuid
adding cpuid for lpc1768 cpu, enable periph_cpuid in board mbed_lpc1768
2016-03-10 17:41:00 +01:00
Oleg Hahm
8e6dc1a03f doc: updated and clarified tapsetup usage 2016-03-10 17:40:22 +01:00
René Kijewski
818d703810 Merge pull request #5004 from OlegHahm/core_kernel_macros_attributs_merge
core: merge kernel_macros.h and attributes.h into kernel_defines.h
2016-03-10 16:47:10 +01:00
nqdinh
5ad659a54a cpu/lpc1768: added cpuid periph driver implementation 2016-03-10 11:01:34 +07:00
Oleg Hahm
edee25ced5 x86: minor cosmetics for include syntax and order 2016-03-09 22:29:06 +01:00
Oleg Hahm
bdcf8879fd core: merged kernel_macros.h and attributes.h
Merged into new kernel_defines.h and updated all includes.
2016-03-09 22:29:06 +01:00
Hauke Petersen
d05bf879a6 cpu/atmega2560: added SPI driver 2016-03-09 18:34:42 +01:00
Oleg Hahm
1c260c2228 Merge pull request #4655 from bapclenet/SAML21/RTC
Driver RTC for the board SAML21 by FWX
2016-03-09 13:44:50 +01:00
Oleg Hahm
596c25daca Merge pull request #4943 from gebart/pr/while-loops
Use {} notation for empty while loops
2016-03-09 13:42:32 +01:00
Marc Poulhiès
d0fb8adf45 cpu/lm4f120: ADC support
Only ADC_0 and no precision support.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2016-03-09 13:24:31 +01:00
Baptiste
455555304c SAML21/RTC: Add RTC driver 2016-03-09 09:28:42 +01:00
Ian Martin
705879741c cpu/cc2538: use the MCU's default UART FIFO interrupt levels 2016-03-07 17:52:06 -05:00
Ian Martin
5f05a956db cpu/cc2538: clear only the latched UART interrupt flags
Otherwise incoming bytes can remain in the receive FIFO indefinitely.
2016-03-07 17:52:06 -05:00
a6a98dc5a9 cpu: cc2538: add missing include to periph_cpu.h 2016-03-07 23:25:20 +01:00
Peter Kietzmann
e5500072d2 Merge pull request #4957 from botmayank/develop
stm32f0: GPIO enable IRQ for EXTI0_1
2016-03-07 21:36:15 +01:00
kYc0o
740635daaa Merge pull request #3765 from locicontrols/cc2538-i2c
cpu/cc2538: add periph/i2c driver
2016-03-07 18:22:32 +01:00
Peter Kietzmann
dcc58da35a Merge pull request #4959 from shady33/fix-stm32l1-timer
Mistyped argument name
2016-03-07 15:50:12 +01:00
botmayank
35154e0c84 cpu/stm32f0: GPIO enable IRQ for EXTI0_1
Removed unnecessary EXTI2_3 interrupt enable

cpu/stm32f0: gpio removed trailing whitespace
2016-03-07 14:18:39 +01:00
lakshbhatia
773453e187 stm32l1/timer: fix callback argument initialization 2016-03-07 12:41:15 +01:00
ed03204fe2 cpu: lpc11u34: gpio: adapt to thread.h 2016-03-05 18:20:17 +01:00
142bbef721 cpu: atmega2560: timer: adapt to thread.h 2016-03-05 18:20:17 +01:00
a7adbac4c5 cpu: msp430: adapt to thread.h 2016-03-05 18:20:17 +01:00
6881f65f46 cpu: cortexm*: move cpu_conf.h stuff from cpu.h into cpu_conf_common.h 2016-03-05 18:20:17 +01:00
2b010b5337 core: rename tcb_t -> thread_t, move into thread.h 2016-03-05 18:20:17 +01:00
Joakim Nohlgård
f98b80f75f Merge pull request #3504 from locicontrols/cc2538-gpio-init
cpu/cc2538: initialize the GPIO controller to a default state
2016-03-04 16:01:18 +01:00
Cenk Gündoğan
d15bc43302 Merge pull request #4688 from OlegHahm/valgrind_debug_for_native
native: add debug-valgrind target
2016-03-04 07:55:45 +01:00
Martine Lenders
7ee8c5c66d Merge pull request #3834 from michz/master
fixed bug in stm32f0 uart implementation
2016-03-04 05:42:10 +01:00
Martine Lenders
01248f0599 Merge pull request #4944 from gebart/pr/cortexm-irqn-unsigned-int
cpu/cortexm_common: use int for counter in startup IRQn loop
2016-03-04 05:40:51 +01:00
Ian Martin
4936edb80f cpu/cc2538: initialize the GPIO controller to a default state 2016-03-03 11:16:24 -05:00
Ian Martin
9642f2531a cpu/cc2538: add periph/i2c driver 2016-03-03 11:04:39 -05:00
Joakim Nohlgård
17977e0730 cpu/lpc11u34: Use {} notation for empty while loops 2016-03-03 16:31:29 +01:00
Joakim Nohlgård
e607de5b95 cpu/saml21: Use {} notation for empty while loops 2016-03-03 16:31:29 +01:00
Joakim Nohlgård
2ea2cdc9e1 cpu/samd21: Use {} notation for empty while loops 2016-03-03 16:31:28 +01:00
Joakim Nohlgård
752d481738 cpu/sam3: Use {} notation for empty while loops 2016-03-03 16:31:28 +01:00
Joakim Nohlgård
5bfd4a59e9 cpu/stm32l1: Use {} notation for empty while loops 2016-03-03 16:31:27 +01:00
Joakim Nohlgård
7a7202034b cpu/stm32f4: Use {} notation for empty while loops 2016-03-03 16:31:27 +01:00
Joakim Nohlgård
3f122fbba2 cpu/stm32f3: Use {} notation for empty while loops 2016-03-03 16:31:27 +01:00
Joakim Nohlgård
96a7583c2a cpu/stm32f1: Use {} notation for empty while loops 2016-03-03 16:31:25 +01:00
Joakim Nohlgård
aba4e719eb cpu/stm32f0: Use {} notation for empty while loops 2016-03-03 16:30:06 +01:00
Joakim Nohlgård
f551850642 cpu/nrf51: Use {} notation for empty while loops 2016-03-03 16:30:06 +01:00
Joakim Nohlgård
8a76ddbaf7 cpu/msp430fxyz: Use {} notation for empty while loops 2016-03-03 16:30:06 +01:00
Joakim Nohlgård
6a52296a35 cpu/lpc2387: Use {} notation for empty while loops 2016-03-03 16:30:06 +01:00
Oleg Hahm
cdd6878fca Merge pull request #4942 from gebart/pr/clang-asm
cpu/cortexm_common: Fix inline asm for ARMv6-M so that it compiles in Clang as well
2016-03-03 12:53:24 +01:00
Oleg Hahm
2b949fcce1 native: add debug-valgrind target
debug-valgrind-server: Starts valgrind as gdb-server (vgdb)
debug-valgrind:        Connects to vgdb
2016-03-03 11:26:17 +01:00
Peter Kietzmann
367d8af649 Merge pull request #4840 from haukepetersen/opt_nrf_hwrng
cpu/nrf5x: unified hwrng driver
2016-03-03 11:16:26 +01:00
kYc0o
e730f1bdc3 Merge pull request #4878 from locicontrols/cc2538-periph-timer
cpu/cc2538/periph/timer overhaul
2016-03-03 11:11:57 +01:00
Peter Kietzmann
2f0901bc64 Merge pull request #4932 from haukepetersen/opt_f1_timer
cpu/stm32f1: reworked timer implementation
2016-03-03 10:00:38 +01:00
Peter Kietzmann
3f99028b19 Merge pull request #4839 from haukepetersen/opt_nrf_timer
cpu/nrf5x: unified and reworked timer driver
2016-03-03 09:10:53 +01:00
Peter Kietzmann
e186eb9f70 Merge pull request #4736 from lebrush/stm32f1-i2c-fixes
stm32f1 i2c fixes
2016-03-02 16:55:13 +01:00
Michael Zapf
dfe5c273d1 stm32f0: fixed bug in uart implementation
alternate function register was written incorrectly for pin numbers > 8
+ cpu/stm32f0: fixed possible null-ptr deref
2016-03-02 13:46:38 +01:00
kYc0o
ec1bea389b Merge pull request #2753 from locicontrols/baudrate-fix
cpu/cc2538: avoid using bitfields with the LCRH register
2016-03-02 11:41:02 +01:00
Joakim Nohlgård
3da2c2d1c1 cpu/cortexm_common: use int for counter in startup IRQn loop 2016-03-02 10:58:59 +01:00
Joakim Nohlgård
0ae11cc9bc cpu/cortexm_common: call hard_fault_handler using bl
Fixes this error when building with Clang 3.7.1:

fatal error: error in backend: unsupported relocation on symbol
x86_64-pc-linux-gnu-clang-3.7: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 3.7.1 (tags/RELEASE_371/final)
Target: arm-none--eabi
Thread model: posix
x86_64-pc-linux-gnu-clang-3.7: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
x86_64-pc-linux-gnu-clang-3.7: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
x86_64-pc-linux-gnu-clang-3.7: note: diagnostic msg: /tmp/vectors_cortexm-54333e.c
x86_64-pc-linux-gnu-clang-3.7: note: diagnostic msg: /tmp/vectors_cortexm-54333e.sh
x86_64-pc-linux-gnu-clang-3.7: note: diagnostic msg:

********************
2016-03-02 10:28:10 +01:00
Joakim Nohlgård
efa5cd4066 cpu/cortexm_common: Fix inline asm for ARMv6-M so that it compiles in Clang as well
ARMv6 does not have the mov instruction, only movs
2016-03-02 10:26:55 +01:00
Peter Kietzmann
8e05e3152d Merge pull request #4933 from haukepetersen/opt_sam3_clksetup
cpu/sam3: cleaned up clock initialization
2016-03-02 10:07:43 +01:00
Hauke Petersen
eb79646ab1 cpu/cortexm_common: added sleep_until_event 2016-03-01 23:22:03 +01:00
Hauke Petersen
a182a44147 cpu/nrf5x: unified hwrng driver 2016-03-01 23:22:03 +01:00
Oleg Hahm
61579d3be4 Merge pull request #4887 from locicontrols/objdump
make: set OBJDUMP = $(PREFIX)objdump for gnu targets.
2016-03-01 23:10:04 +01:00
Hauke Petersen
360e392d69 cpu/stm32f1: reworked timer driver 2016-03-01 22:39:36 +01:00
Hauke Petersen
28976ec126 cpu/stm32f1: vendor header: opt timer CCR reg defs 2016-03-01 22:39:36 +01:00
Hauke Petersen
2a92907c96 cpu/nrf: unified and optimized timer driver 2016-03-01 22:20:27 +01:00
Ian Martin
b6fbdb2f79 Avoid rounding errors during frequency scaling. 2016-03-01 15:18:45 -05:00
Ian Martin
4176d04b02 cpu/cc2538/periph/timer overhaul
* Use the 32-bit counter mode.
 * Apply frequency scaling for non-16 MHz frequencies.
2016-03-01 15:15:16 -05:00
Ian Martin
92a16a50dd cc2538 gptimer corrections. 2016-03-01 14:59:50 -05:00
Ian Martin
c91ae645a5 cpu/cc2538: break-out the bitfields in the GPTimer IMR register. 2016-03-01 14:59:50 -05:00
lakshbhatia
1db5d41935 Implement rtc_poweron function 2016-03-01 19:11:38 +01:00
lakshbhatia
22e291132e Remove extra newlines 2016-03-01 19:03:49 +01:00
Hauke Petersen
080638ab37 cpu/sam3: removed system_sam3xa.h header 2016-03-01 15:56:59 +01:00
Hauke Petersen
6ae8c42880 cpu/sam3: added clock initialization code 2016-03-01 15:43:01 +01:00
Peter Kietzmann
c8829a49b8 Merge pull request #4838 from haukepetersen/fix_periph_timerarg
drivers/timer: added callback argument
2016-03-01 08:55:54 +01:00
Joakim Nohlgård
3af809bdfc Merge pull request #4910 from kaspar030/core_header_cleanup
core: header cleanup
2016-02-29 22:48:35 +01:00
lakshbhatia
6fd83a2f5e STM32L1 RTC driver 2016-02-29 21:43:03 +01:00
Hauke Petersen
b11a3ad74b cpus: adapted timer implementations to API changes 2016-02-29 14:45:00 +01:00
Hauke Petersen
34f9deecb7 cpu/kinetis_common: reworked GPIO driver 2016-02-29 11:08:45 +01:00
9b7ebb9f30 cpu: msp430-common: fix unistd.h 2016-02-28 22:46:28 +01:00
9082273746 core: header cleanup 2016-02-28 22:46:28 +01:00
Joakim Nohlgård
5df3357818 Merge pull request #4916 from gebart/pr/unsigned-enum-compare
cpu: Cast enum to unsigned int before comparing against DEV_NUMOF
2016-02-28 06:59:59 +01:00
Joakim Nohlgård
f0584f8ee0 cpu/saml21: spi: Cast enum to unsigned int for comparison 2016-02-28 00:09:29 +01:00
Joakim Nohlgård
3ff4a334b1 cpu/samd21: Cast enum to unsigned int for comparison 2016-02-28 00:09:03 +01:00
Joakim Nohlgård
af64264346 cpu/samd21: uart: Remove unnecessary check unsigned < 0 2016-02-28 00:08:59 +01:00
Joakim Nohlgård
0f0a22b652 cpu/sam3: spi: Cast enum to unsigned int for comparison 2016-02-28 00:08:30 +01:00
Joakim Nohlgård
e01e6892ff cpu/stm32l1: i2c: Fix array out of bounds before check and Clang input check warnings 2016-02-28 00:08:26 +01:00
Joakim Nohlgård
8bf9230d15 cpu/stm32l1: spi: Cast enum to unsigned int for comparison 2016-02-28 00:08:18 +01:00
Joakim Nohlgård
c61c1207df cpu/stm32f4: Cast enum to unsigned int for comparison 2016-02-28 00:08:12 +01:00
Joakim Nohlgård
e4629eb0bb cpu/stm32f3: spi: Cast enum to unsigned int for comparison 2016-02-28 00:08:06 +01:00
Joakim Nohlgård
19cee2d757 cpu/stm32f1: spi: Cast enum to unsigned int for comparison 2016-02-28 00:08:00 +01:00
Joakim Nohlgård
81feb558ef cpu/stm32f0: spi: Cast enum to unsigned int for comparison 2016-02-28 00:06:43 +01:00
Joakim Nohlgård
698b2841d1 cpu/nrf51: spi: Fix input check warnings
- Cast enum to unsigned int for comparison
 - Remove redundant checks
 - Add default case for missing devices
2016-02-28 00:05:49 +01:00
Joakim Nohlgård
412da2046d cpu/lpc11u34: Cast enum to unsigned int for comparison 2016-02-28 00:05:10 +01:00
Joakim Nohlgård
ade9941ab6 cpu/stm32f0: adc: Add default error cases 2016-02-27 23:52:33 +01:00
Hauke Petersen
af5ba0b5da cpu/sam3: reworked timer driver 2016-02-26 17:49:48 +01:00
Hauke Petersen
6b9088aa11 cpu/sam3: changed timer vendor header
- made channel cc registers accessible as array
2016-02-26 17:49:47 +01:00
Ian Martin
04bd6e5f7c cpu/cc2538: avoid using bitfields with the LCRH register
Otherwise the UART ignores the new baudrate divisor.
2016-02-26 11:42:32 -05:00
Ian Martin
ce71e53d74 make: set OBJDUMP = $(PREFIX)objdump for gnu targets. 2016-02-23 17:55:58 -05:00
Marc Poulhiès
8f0a9ddf6f cpu/lm4f120: GPIO support 2016-02-23 15:12:53 +01:00
Martine Lenders
0018bd902b Merge pull request #4648 from authmillenon/netdev2/api/packet-info
netdev2: provide capability to pass up packet status information
2016-02-22 19:30:18 +01:00
Martine Lenders
8db42427cb native/drivers/sys: adapt ethernet netdev2 for info struct 2016-02-22 12:37:26 +01:00
Oleg Hahm
0ffed1d100 Merge pull request #4868 from steffen-p/stm32f3_periph_uart_deadlock_on_overrun
stm32f3: periph: uart: add misssing uart overrun handling
2016-02-22 12:26:01 +01:00
60122cca82 cpu: native: netdev2_tap: don't pass isr_arg on rx complete event 2016-02-21 21:55:33 +01:00
Steffen Pengel
35635e4039 stm32f3: periph: uart: add misssing uart overrun handling
On overrung the ORE bit in the ORECF register is set.
An overrun error occurs when a character is received when RXNE has not been reset. Data
can not be transferred from the shift register to the RDR register until the RXNE bit is
cleared. The ORE bit is reset by setting the ORECF bit in the ICR register.

In case the ORE bit isn't cleared, the isr_handler() routine is called
continuously. Which prevents the system from normal scheduling.
2016-02-21 20:30:29 +01:00
Hauke Petersen
bc1013b54e cpu/samd21: allowed third PWM channel per device 2016-02-21 16:49:45 +01:00
Hauke Petersen
c82dda9b74 Merge pull request #4815 from DipSwitch/pr/fix_stm32_exti_isr
STM32 GPIO: Fix exti_isr handling to only call callbacks of lines with there IRQ enabled
2016-02-21 14:11:36 +01:00
DipSwitch
df996044e2 STM32 GPIO: Fix exti_isr handling to only call callbacks of lines with have there interrupt enabled 2016-02-21 09:43:42 +01:00
Martine Lenders
eb4d9859a3 netdev2_tap: fix strange event_callback argument 2016-02-20 15:55:35 +01:00
Joakim Nohlgård
e2f7ac78f0 Merge pull request #4040 from gebart/pr/periph-timer-init-freq
periph/timer: Change timer_init API to support arbitrary (integer) frequencies
2016-02-15 23:36:44 +01:00
Joakim Nohlgård
9db8d671ab Merge pull request #4757 from haukepetersen/opt_periph_random
drivers/periph: renamed random and more
2016-02-14 17:56:57 +01:00
DipSwitch
e5012dce03 Merge pull request #4698 from haukepetersen/opt_f0_gpio
cpu/stm32f0: fixes + gpio_init_analog() added
2016-02-14 16:26:17 +01:00
Hauke Petersen
0c375e2bae cpu/stm32f4: adapted HWRNG implementation 2016-02-14 12:59:47 +01:00
Hauke Petersen
79cf50db03 cpu/sam3: adapted HWRNG implementation 2016-02-14 12:59:46 +01:00
Hauke Petersen
6f0179ce69 cpu/kinetis_common: adapted HWRNG implementation 2016-02-14 12:59:46 +01:00
Hauke Petersen
1b58b187a9 cpu/nrf52: adapted HWRNG implementation 2016-02-14 12:59:46 +01:00
Hauke Petersen
7b9a5ae889 cpu/nrf51: adapted HWRNG implementation 2016-02-14 12:59:46 +01:00
Hauke Petersen
c9e9fcf662 cpu/native: adapted HWRNG implementation 2016-02-14 12:59:46 +01:00
Hauke Petersen
216a4cb432 cpu/cc2538: adapted HWRNG implementation 2016-02-14 12:58:30 +01:00
Joakim Nohlgård
d1a57d040a Merge pull request #4638 from gebart/pr/periph-pwm-api-change
drivers: Optimized periph PWM interfaces
2016-02-14 08:54:47 +01:00
Joakim Nohlgård
f76ecd1491 cpu/nrf52: Update to match timer_init API change 2016-02-13 21:33:52 +01:00
Joakim Nohlgård
8ef0b1555c cpu/ezr32wg: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
68ddb1a7a9 cpu/stm32l1: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
3e0d6f167f cpu/stm32f4: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
5ab848548b cpu/stm32f3: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
e43f503cb6 cpu/stm32f1: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
e427caaf01 cpu/stm32f0: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
3d8c8b295d cpu/saml21: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
4aa21ff5c1 cpu/samd21: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
880d0d5879 cpu/sam3: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
9ac6176745 cpu/nrf51: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
67321ce9bc cpu/msp430fxyz: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
1b0e0c62ac cpu/lpc2387: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
8d4fd5a814 cpu/lpc1768: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
cf90cf32c0 cpu/lpc11u34: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
4a873d4061 cpu/lm4f120: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
77fbe188e7 cpu/cc430: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
943c106461 cpu/cc2538: Update to match timer_init API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
d24cdd7cde cpu/native: Update timer_init to match API changes 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
d2b06d1923 cpu/kinetis_common: Update timer_init to match API change 2016-02-13 21:29:36 +01:00
Joakim Nohlgård
819d619bad cpu/atmega2560: Update timer_init to match API change 2016-02-13 21:29:36 +01:00
Hauke Petersen
cfac198fc8 cpu/stm32f0: added gpio_init_analog() 2016-02-13 13:06:58 +01:00
Hauke Petersen
b97afdc1b1 cpu/stm32f0: some minor fixes to GPIO driver
- fixed indention on some places
- s/gpio_config/isr_ctx/
- use BRR reg for clearing pin
2016-02-13 13:02:32 +01:00
Hauke Petersen
a64a4df72e Merge pull request #3881 from MohmadAyman/master
stm32f0-gpio-update
2016-02-12 20:54:48 +01:00
Hauke Petersen
fecf74970e cpu/kinetis_common: adapted to PWM interface changes 2016-02-12 16:10:01 +01:00
Hauke Petersen
85f85a3760 cpu/stm32f4: adapted to PWM interface changes 2016-02-12 16:10:01 +01:00
Hauke Petersen
cf7299c09e cpu/stm32f3: adapted to PWM interface changes 2016-02-12 16:09:58 +01:00
Hauke Petersen
41cbc35b73 cpu/samd21: adapted to PWM interface changes 2016-02-12 16:09:58 +01:00
Hauke Petersen
ba8cda7894 cpu/sam3: adapted to PWM interface changes 2016-02-12 16:09:58 +01:00
Hauke Petersen
b41f915d86 cpu/lpc2387: adapted to PWM interface changes 2016-02-12 16:09:56 +01:00
Hauke Petersen
b96cb04df2 cpu/lpc11u34: adapted to PWM interface changes 2016-02-12 16:09:53 +01:00
Hauke Petersen
9fcb031e21 Merge pull request #4797 from gebart/pr/nrf51-fix-random-travis-failures
make: Use unique module name for cpu_common periph
2016-02-12 11:06:42 +01:00
Joakim Nohlgård
d414f30b22 Merge pull request #4791 from gebart/pr/small-cleanups
misc: small cleanups
2016-02-12 09:14:06 +01:00
Joakim Nohlgård
95ef11bbc1 cpu/stm32_common: Use a different module name to prevent linker races in Travis 2016-02-12 08:46:00 +01:00
Joakim Nohlgård
2e37ac0802 cpu/sam21_common: Use a different module name to prevent linker races in Travis 2016-02-12 08:45:58 +01:00
Joakim Nohlgård
3db00667b7 cpu/kinetis_common: Use a different module name to prevent linker races in Travis 2016-02-12 08:45:56 +01:00
Joakim Nohlgård
1f9f6d8548 cpu/nrf5x_common: Use a different module name to prevent linker races in Travis 2016-02-12 08:45:53 +01:00
MohmadAyman
f881874bbb cpu/stm32f0: optimized GPIO driver implementation 2016-02-12 07:01:20 +02:00
MohmadAyman
1ecb19c7ae stm32f0 vendor headers updated 2016-02-12 07:00:07 +02:00
Joakim Nohlgård
068a4e4195 cpu/lm4f120: Remove unused static lookup table 2016-02-11 15:14:07 +01:00
Joakim Nohlgård
04c37094a0 make: Homogenize CFLAGS settings across cortexm_common, avr, msp430_common 2016-02-11 12:45:44 +01:00
Joakim Nohlgård
00f875b0de make: Fix typo CFLAGS_DEBUG->CFLAGS_DBG 2016-02-11 12:42:43 +01:00
Joakim Nohlgård
d1128cabab boards/msp430_common: Use code style CFLAGS from Makefile.cflags 2016-02-11 12:39:02 +01:00
Joakim Nohlgård
862b07fda2 boards/cortexm_common: Use code style CFLAGS from Makefile.cflags 2016-02-11 12:39:02 +01:00
Joakim Nohlgård
a0429f7542 Merge pull request #4778 from gebart/pr/cortex-m-makefile-refactor
make: Move CPU and BOARD includes to Makefile.modules and reorganize
2016-02-11 12:33:33 +01:00
Oleg Hahm
97adfa781e stm32: use cpuid_address' address, not the value
We're interested in the address of `cpuid_address`, not the value it is pointing, too.
2016-02-11 01:52:57 +01:00
René Herthel
4a4b3f620c stm32l1/i2c: initial update for the new interface 2016-02-10 16:40:33 +01:00
Joakim Nohlgård
31c9ca70e5 make: Move Makefile.include.$(TOOLCHAIN) to cpu dir 2016-02-10 16:37:03 +01:00
Joakim Nohlgård
717d89899f make: Move Makefile.msp430_common to cpu dir 2016-02-10 16:37:03 +01:00
Joakim Nohlgård
7835ab2be7 make: Move BOARD and CPU includes to Makefile.modules 2016-02-10 16:37:03 +01:00
Joakim Nohlgård
deba387393 cortexm_common: Move toolchain settings to cpu dir 2016-02-10 16:37:03 +01:00
Hauke Petersen
ea8db10524 cpu/stm32: use common CPUID implementation 2016-02-10 09:12:30 +01:00
Hauke Petersen
7c5bab6ac0 cpu/stm32l1: use common STM32 files 2016-02-10 09:12:30 +01:00
Hauke Petersen
c482bfbaed cpu/stm32f4: use common STM32 files 2016-02-10 09:12:30 +01:00
Hauke Petersen
14a4ed69b6 cpu/stm32f3: use common STM32 files 2016-02-10 09:12:29 +01:00
Hauke Petersen
bae3e7185a cpu/stm32f1: use common STM32 files 2016-02-10 09:12:29 +01:00
Hauke Petersen
a04f509857 cpu/stm32f0: use common STM32 files 2016-02-10 09:12:29 +01:00
Hauke Petersen
f4587b3794 cpu: added place for shared STM32 files 2016-02-10 09:12:29 +01:00
Hauke Petersen
436d8f6bc2 Merge pull request #4762 from haukepetersen/add_nrf_common
cpu/nrf5x: created common dir for shared files
2016-02-09 22:36:01 +01:00
Hauke Petersen
8dd790bb33 cpu/nrf5x: unified CPUID driver implementation 2016-02-09 16:59:10 +01:00
Hauke Petersen
209e18debd cpu/nrf5x: unified UART driver 2016-02-09 16:58:56 +01:00
Hauke Petersen
d1808717cb cpu/nrf5x: unificitaion of GPIO driver 2016-02-09 16:58:56 +01:00
Hauke Petersen
3745487b95 cpu/nrf52: use the nrf5x_common folder 2016-02-09 16:51:54 +01:00
Hauke Petersen
fdd650d1ca cpu/nrf51: use the nrf5x_common folder 2016-02-09 16:51:54 +01:00
Hauke Petersen
33132c8a60 cpu: added common cpu for the nRF5x family 2016-02-09 16:51:54 +01:00
Hauke Petersen
cfcf951b9d cpu/kinetis_common: fixed null ptr ref in gpio.c 2016-02-09 16:22:25 +01:00
Hauke Petersen
5cac36d5b3 cpu/kinetis_common: moved drivers to periph subdir 2016-02-09 16:20:03 +01:00
Cenk Gündoğan
3faf44bc83 Merge pull request #4776 from haukepetersen/fix_my_email
cpu: use Hauke's correct email address
2016-02-09 16:15:13 +01:00
Hauke Petersen
975e027360 cpu: use Hauke's correct email address 2016-02-09 16:09:40 +01:00
Hauke Petersen
48a639f8fd cpu/sam21_common: used shared periph_cpu.h 2016-02-08 19:04:28 +01:00
Hauke Petersen
722b342df3 cpu/sam21_common: unified CPUID implementation 2016-02-08 18:55:43 +01:00
Hauke Petersen
1d766bdb9e cpu/samd21: use sam21_common implementations 2016-02-08 18:45:16 +01:00
Hauke Petersen
ef3169fbf7 cpu/saml21: use sam21_common implementations 2016-02-08 18:45:15 +01:00
Hauke Petersen
c5924f0d04 cpu/sam21: added common dir for sam[l|d]21 CPUs 2016-02-08 18:45:15 +01:00
Hauke Petersen
d80a661486 Merge pull request #4761 from haukepetersen/opt_cpuid
drivers/cpuid: fixed and unified CPUID driver implementations
2016-02-08 18:18:53 +01:00
Hauke Petersen
940097336a cpu: cleanup and unification of CPUID implementations
- moved definition of CPUID_LEN to periph_cpu.h
- fixed some doxygen
- simplyfied some implementations
2016-02-08 14:36:03 +01:00
Joakim Nohlgård
8dd81e8d9a cpu/kw2x: Add __attribute__((used)) to interrupt vector 2016-02-08 13:07:52 +01:00
Joakim Nohlgård
a1d2ecc3de cpu/k64f: Add __attribute__((used)) to interrupt vector 2016-02-08 13:07:52 +01:00
Joakim Nohlgård
570d188a26 cpu/k60: Add __attribute__((used)) to interrupt vector 2016-02-08 13:07:52 +01:00
Joakim Nohlgård
309cd5ef58 cpu/kinetis_common: Add __attribute__((used)) to flash configuration field 2016-02-08 13:07:52 +01:00
Hauke Petersen
5165e48399 Merge pull request #4746 from haukepetersen/add_board_nrf52dk
cpu/boards: added support for nRF52 DK
2016-02-05 15:11:57 +01:00
Hauke Petersen
2964969600 cpu: added support for nrf52 2016-02-05 12:07:32 +01:00
Hauke Petersen
e8e673d6ce cpu/sam3: simplified struct init in GPIO driver 2016-02-04 15:34:07 +01:00
Hauke Petersen
1d8d33d484 Merge pull request #4704 from haukepetersen/opt_periph_gpioisrctx
drivers/gpio: added default ISR context struct
2016-02-04 15:29:48 +01:00
Victor Arino
b40cb6bebb stm32f1/i2c: uncrustify untouched code 2016-02-03 17:42:42 +01:00
Victor Arino
57e20941f5 stm32f1/i2c: add support for secondary i2c 2016-02-03 17:42:42 +01:00
Victor Arino
a477d6f81d stm32f1/i2c: do not block in case of error
Due to the errata of some of the stm32f1xx family, the i2c lines need
to be toggled when setting up the peripheral. This however seems to
hang some i2c slaves which do not ack the first message sent after
initialization. This caused the code to be stucked waiting for the
never coming ACK. The same situation could occur when a byte was not
acked due to whatever reason.

The previous implementation of the i2c driver didn't allow recovery
on these situations. Now the driver does not block forever but rather
returns a <0 code to indicate that the transaction was not succesful.
2016-02-03 17:42:42 +01:00