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
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
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