1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-15 23:12:55 +01:00
Commit Graph

2773 Commits

Author SHA1 Message Date
Andreas "Paul" Pauli
9693c3cdf5 Merge pull request #5425 from locicontrols/cc2538-ldscript
cpu/cc2538: eliminate cc2538.ld and use cortexm_base.ld instead
2016-05-19 16:30:11 +02:00
Peter Kietzmann
5817d91b91 Merge pull request #5192 from DipSwitch/pr/fix_stm32f1_also_disable_hsi_on_hse
cpu/stm32f1: Disable HSI when using the HSE as system clock
2016-05-17 10:51:46 +02:00
Ian Martin
10b001c3eb cpu/cc2538: eliminate cc2538.ld and use cortexm_base.ld instead 2016-05-10 12:21:29 -04:00
Marc Poulhiès
ff49ca9946 cpu/lm4f120: fix SSI1 isr name
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2016-05-04 13:00:25 +02:00
DipSwitch
c449ab9fdb Merge pull request #5336 from OTAkeys/print_ipsr
cortexm_common: print trapped interrupt from ipsr
2016-04-30 23:04:14 +02:00
Peter Kietzmann
b0627ade85 Merge pull request #5280 from sdalu/nrf51ac
Added nrf51 ac variant
2016-04-26 21:11:32 +02:00
kYc0o
591b0ab3ac Merge pull request #5356 from DipSwitch/pr/fix_cc2538_spi_compile_warning
cpu/cc2538/spi: Fix compiler warning of possible uninitialized variable
2016-04-20 14:47:54 +02:00
Martine Lenders
c24e91d4df Merge pull request #5229 from OlegHahm/pktbuf_minimal_check
netdev ethernet: deal with too small packet buffer
2016-04-20 14:44:30 +02:00
Toon Stegen
63c0e9bec6 cortexm_common: print trapped interrupt from ipsr
The IPSR (=Interrupt Program Status Register) contains the exception
type number of the current Interrupt Service Routine. Printing this
out can be useful to detect if a certain interrupt is not implemented.
2016-04-20 11:41:13 +02:00
Oleg Hahm
3f1c2e1f1b native: assert that the pktbuf is big enough
Rationale: the netdev2_tap Ethernet driver for native requires to temporarily store at least a maximum sized Ethernet frame.
2016-04-20 09:10:55 +02:00
DipSwitch
eb6eed6c2c cpu/cc2538/spi: Fix compiler warning of possible uninitialized variable 2016-04-19 22:43:51 +02:00
Hauke Petersen
39043b5e6e cpu/samd21: fix ISR mapping for PB27 2016-04-19 20:46:41 +02:00
Hauke Petersen
fbb144f7b8 Merge pull request #5315 from bapclenet/samd21/gpio_PA27
SAMD21/GPIO driver: Add missing interrupts
2016-04-19 20:46:09 +02:00
Florent-Valéry
15066e0418 cpu/cc26x0: cpu_clock_init() implementation 2016-04-18 19:00:49 +02:00
Leon M. George
475fb6f84d cpu: add CC26x0-family 2016-04-18 19:00:49 +02:00
Baptiste
0215b08998 SAMD21/GPIO driver: Add missing interrupts 2016-04-14 20:06:36 +02:00
kYc0o
699410efc8 Merge pull request #5124 from locicontrols/fixes
cpu/cc2538: fix build errors when UART1 or the 32 kHz crystal is enabled
2016-04-14 12:00:53 +02:00
334481559d cpu: native: make netdev2_tap internal functions static 2016-04-11 17:03:28 +02:00
Marc Poulhiès
788f9f9e50 cpu/lm4f120: fix ADC pin mapping
fix GPIO pin mapping for ADC_0

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2016-04-11 12:39:52 +02:00
Stephane D'Alu
1ac5e5fbdd Added nrf51 ac variant 2016-04-09 20:18:34 +02:00
Hauke Petersen
acf9bf7037 Merge pull request #5256 from DipSwitch/pr/fix_cortex_initialization
cpu/cortex-m: Enable STKALIGN to make the Cortex-M keep the stack 8 byte aligned
2016-04-08 13:36:11 +02:00
Hauke Petersen
23b75c421f cpu/atmega2560: reworked timer driver 2016-04-07 19:04:01 +02:00
Hauke Petersen
9e4c08d89c cpu/atmega2560: added CMSIS style defs for timers 2016-04-07 19:04:01 +02:00
DipSwitch
b6140f15f3 cpu/cortex-m: Enable STKALIGN to make the Cortex-M keep the stack 8 byte aligned on 4 byte aligned stack pointers 2016-04-07 00:27:26 +02:00
DipSwitch
945f01f7e0 [SQUASH] Remove unrelevant changes 2016-04-05 23:54:01 +02:00
DipSwitch
a259cc42b0 [SQUASH] Make PLL_DIV and PLL_MUL behave the same as for the F3 and F4 2016-04-05 23:51:55 +02:00
DipSwitch
edae42281b [SQUASH] Tested HSI 2016-04-05 23:38:32 +02:00
DipSwitch
50fda7e07f [SQUASH] Fix timer clock calculations 2016-04-05 23:22:50 +02:00
Oleg Hahm
900528b2f2 netdev2_tap: check for existence before calling cb 2016-04-03 18:04:03 +02:00
c3f7186d4e unify usage of inline assembly 2016-03-31 22:23:35 +02:00
Hauke Petersen
02df871428 Merge pull request #4949 from jia200x/nucleo-f072
board: added support for nucleo f072
2016-03-31 19:18:28 +02:00
José Ignacio Alamos Aste
4ea6d26f90 stm32f072rb: Adapter vendor header file due to inconsistency in some variables. 2016-03-31 18:20:24 +02:00
José Ignacio Alamos Aste
20d6ead969 stm32f072rb: Added support for CPU 2016-03-31 18:20:24 +02:00
Yonezawa-T2
c4bc42419b netdev2_tap: continue reading even if no spaces left in pktbuf
On OS X, `netdev2_tap` suspends monitoring file descriptor until `_recv` is
called. If no spaces in left in pktbuf, `gnrc_netdev2_eth` does not call `_recv`
that results in deadlock.

With this commit, `gnrc_netdev2_eth` calls `_recv` with NULL buffer and non-zero
length parameter, that indicates the driver to drop frame and resume working.
2016-03-31 16:59:12 +09:00
Yonezawa-T2
79d33897cb native: add UART driver based on /dev/tty
uart0 functionality is removed by #3164. This patch implements periph/uart,
rather than deprecated uart0, using /dev/tty.
To use with netdev2_tap simultaneously, this patch adds asynchronus read system
and modifies netdev2_tap to use it.

A TTY device is specified on command line with -c (COM) option, since -t was
used by the old implementation.

This patch also implements empty GPIO driver needed by the xbee driver.
2016-03-31 16:59:12 +09:00
Toon Stegen
77c9ee043f stm32f2: add adc and lpm
changes taken from DipSwitch's board: EMW3162 #4498 PR.
- Adds a functional implementation of the ADC
- Implements low power mode
2016-07-25 10:34:57 +02:00
Toon Stegen
7a0e81923b stm32f2: fix dac compilation
this is copied from DipSwitch's pr
2016-07-19 12:10:16 +02:00
Toon Stegen
71dce7584f stm32f2: i2c: update driver
Remove unneeded workaround from stm32f1
Make pullup configurable
Fix OAR1 register initialization
improve i2c read functions with repeatead start conditions
avoid to any loop to become infinite
improve i2c driver error handling
add missing coma in array initializers
2016-04-22 14:03:21 +02:00
Vincent Dupont
70c8bff842 stm32f2: update timer and pwm drivers 2016-04-14 14:44:19 +02:00
Aurelien Gonce
d01da278ac stm32f2: Update hwrng driver 2016-04-13 15:47:12 +02:00
Hermann Lelong
182be862bb stm32f2: Improve UART driver
Add missing DMA interrupts for UART
Improve baudrate intialization:
 - Return error if baudrate is theorically unreachable
 - Implement oversampling by 8 method for high baudrates
Add UART hardware flow control support
Ensure uart tx thread safety with a mutex
Allow setting of pins mode per UART
2016-04-01 16:38:49 +02:00
Vincent Dupont
ab8f9f148e stm32f2: Add RTC driver
The driver was imported from stm32f0
Fixes:
 - Fix 12/24h handling (CR flag badly used)
 - Fix interrupt flag clearance and interrupt name
2016-03-31 16:34:04 +02:00
Peter Kietzmann
3fa8a267b3 Merge pull request #5155 from OlegHahm/diskio_cleanup
doc diskio: RIOTized style and added doxygen
2016-03-30 15:14:25 +02:00
Oleg Hahm
1f4d73dde1 Merge pull request #4801 from OlegHahm/netstats
netstats: introduce L2 netstats
2016-03-30 14:42:49 +02:00
Oleg Hahm
0925737e28 doc diskio: RIOTized style and added doxygen 2016-03-30 12:54:51 +02:00
Cenk Gündoğan
8b7512f0bf Merge pull request #5187 from Yonezawa-T2/i2c_debug
i2c: add missing #ifdef block
2016-03-30 09:34:40 +02:00
Peter Kietzmann
1756e9e270 Merge pull request #4156 from DipSwitch/add_clock_selection_stm32f0
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F0 family
2016-03-30 09:33:54 +02:00
Peter Kietzmann
3c2e90e952 Merge pull request #4165 from DipSwitch/add_clock_selection_stm32f4
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F4 family
2016-03-30 09:33:30 +02:00
Peter Kietzmann
126f12b138 Merge pull request #4164 from DipSwitch/add_clock_selection_stm32f3
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F3 family
2016-03-30 09:32:33 +02:00
Yonezawa-T2
7271c928cc i2c: add missing #ifdef block 2016-03-30 16:24:38 +09:00
Oleg Hahm
d411387bec Merge pull request #4225 from DipSwitch/stm32f1_dac_implementation
cpu/stm32f1/periph/dac: DAC implementation for STM32F1
2016-03-30 01:31:43 +02:00
DipSwitch
9acc33396b cpu/stm32f1: Disable HSI when using the HSE as system clock 2016-03-29 23:55:40 +02:00
DipSwitch
20d39f1c97 cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F0 2016-03-29 23:27:52 +02:00
DipSwitch
5b526df730 cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F4 family 2016-03-29 23:09:22 +02:00
Peter Kietzmann
e93d616025 Merge pull request #4930 from shady33/stm32l1-rtc
STM32L1 RTC driver
2016-03-29 23:07:02 +02:00
DipSwitch
cc5a06d954 cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F3 family 2016-03-29 22:45:11 +02:00
Oleg Hahm
021e94ee6a netdev2: introduce linklayer netstats 2016-03-29 22:34:09 +02:00
DipSwitch
bd9b3a269c cpu/stm32/perip/dac: Move DAC implementation to stm32_common/periph since all STM32 DAC's have the same basics 2016-03-29 22:25:50 +02:00
DipSwitch
6e9f36c0c5 cpu/stm32_common/gpio: Use default gpio_t type and defines 2016-03-29 22:25:50 +02:00
Yonezawa-T2
dc9f769835 NEEDS SQUASHING i2c: revert partially 2016-03-29 17:37:50 +09:00
Yonezawa-T2
1ce140d910 debug: fix compilation error for %p formatter 2016-03-29 11:46:29 +09:00
Ian Martin
a553fe0f84 cpu/cc2538: fix build errors when UART1 or the 32 kHz crystal is enabled 2016-03-28 17:31:58 -04:00
Ian Martin
a2ac92b2bd cpu/cc2538: add periph/spi driver 2016-03-28 17:24:07 -04:00
Oleg Hahm
59674a679b netdev2: use params parameter for setup 2016-03-28 20:22:20 +02:00
Oleg Hahm
8f47dcbbf8 Merge pull request #4719 from immesys/feature-samr21e
Add linker file for Atmel SAMR21E18A
2016-03-25 22:12:28 +01:00
Oleg Hahm
26b3263f8a netdev2: moved ethernet header into subdir 2016-03-25 15:10:07 +01:00
Cenk Gündoğan
30217f8a7b Merge pull request #5040 from kYc0o/rid_of_vtimer
sys/compat/vtimer: get rid of
2016-03-25 14:35:35 +01:00
Oleg Hahm
9370e49375 Merge pull request #5142 from Yonezawa-T2/native_rename_enable_irq
native: fix build on OS X
2016-03-25 14:17:27 +01:00
Martine Lenders
9dcb5cc476 Merge pull request #5134 from OlegHahm/netif_default
make: introduce netdev_default pseudomodule
2016-03-24 18:23:49 +01:00
Oleg Hahm
79a8ec488e Merge pull request #5157 from locicontrols/gpio_init
cpu/cc2538/periph/gpio: fix gpio_init() bugs in cfed0e3
2016-03-24 18:00:29 +01:00
kYc0o
f92b025b85 vtimer: get rid of 2016-03-24 17:10:54 +01:00
Oleg Hahm
10f5f1aa33 make: introduce netif_default pseudomodule
Additionally the dependencies for GNRC specific modules are centralized in Makefile.dep.
2016-03-24 16:47:30 +01:00
Hauke Petersen
9854ca684b Merge pull request #5127 from malosek/msp430_spi_speed_fix
msp430 spi speed fix + USIC/USCI cleanup
2016-03-24 11:04:06 +01:00
malo
f093d10409 msp430: spi/uart cleaned up USIC - USCI confusion
Signed-off-by: malo <malo@25cmsquare.io>
2016-03-24 09:42:59 +01:00
malo
1e00c2b4b7 msp430: spi: fixed setting of spi speed
Signed-off-by: malo <malo@25cmsquare.io>
2016-03-24 09:40:28 +01:00
Michael Andersen
83f9cecc12 cpu/samd21: Change linker file to support E variant 2016-03-23 16:49:24 -07:00
Ian Martin
7b8c86ec16 cpu/cc2538/periph/gpio: fix gpio_init() bugs in cfed0e3 2016-03-23 13:59:02 -04:00
Cenk Gündoğan
551cb3365c Merge pull request #4814 from gebart/pr/kinetis-dac
cpu/kinetis_common: Add periph/dac implementation
2016-03-23 17:48:50 +01:00
Vincent Dupont
15b6814d9b stm32f2: Update with last api changes
* Update headers from ST
* Add linker scripts
2016-03-23 15:26:18 +01:00
Yonezawa-T2
56be13d5da native: fix build on OS X 2016-03-23 12:23:32 +09:00
DipSwitch
5b5810ab7b Merge pull request #5109 from DipSwitch/pr/fix_core_inc_irq
core: Fix/refactor function naming in core/incude/irq.h
2016-03-22 08:12:24 +01:00
Joakim Nohlgård
8c154d47ad cpu/kinetis_common: Implement DAC periph driver 2016-03-22 06:06:56 +01:00
Oleg Hahm
0e6ade76c8 Merge pull request #5121 from gebart/pr/toolchain-boards
Use TARGET_ARCH for more platforms
2016-03-21 16:12:46 +01:00
Joakim Nohlgård
fbde276bb1 msp430: Set TARGET_ARCH for msp430 targets 2016-03-21 12:19:30 +01:00
Joakim Nohlgård
1efe384d6f arm7: Use TARGET_ARCH instead of custom toolchain specification 2016-03-21 12:19:30 +01:00
Joakim Nohlgård
d0033a5d20 avr: Use TARGET_ARCH instead of custom toolchain specification 2016-03-21 12:19:30 +01:00
Joakim Nohlgård
cad5f08b56 Makefile.include: Set PREFIX if not set 2016-03-21 12:19:30 +01:00
e1fcee67c0 arm/newlib: Add pseudomodule to enable floating point printf support 2016-03-21 11:47:38 +01:00
Oleg Hahm
b46b9d9086 Merge pull request #5120 from gebart/pr/lm4f-gpio-unused-port-addr
cpu/lm4f120: remove unused _port_addr function in gpio.c
2016-03-21 11:00:41 +01:00
Joakim Nohlgård
169fa2ec94 cpu/lm4f120: remove unused _port_addr function in gpio.c 2016-03-21 08:47:56 +01:00
Joakim Nohlgård
2b51e4b116 newlib: Introduce newlib_nano pseudomodule 2016-03-21 07:41:23 +01:00
DipSwitch
0bb4748a94 core: Fix/refactor function naming in core/incude/irq.h 2016-03-20 16:47:34 +01:00
DipSwitch
30f0a2a26a Merge pull request #5104 from haukepetersen/fix_f1_gpiomode
cpu/stm32f1: fixed pull selection in GPIO driver
2016-03-20 12:21:33 +01:00
Joakim Nohlgård
84eb6e9f8f Merge pull request #5100 from gebart/pr/target-triple-rename
make: Rename TARGET_TRIPLE -> TARGET_ARCH
2016-03-20 09:44:29 +01:00
Joakim Nohlgård
dd73060afb Merge pull request #5054 from DipSwitch/pr/fix_arm_newlib_nano_specs
make\arm: Fix compiling against newlib nano.specs
2016-03-19 17:58:11 +01:00
Hauke Petersen
e7c8e0b1f2 cpu/stm32f1: fixed pull selection in GPIO driver 2016-03-18 11:01:08 +01:00
DipSwitch
f5a194cbe0 make\arm: Fix compiling against newlib-nano by also informing the compiler we compile with nano.specs 2016-03-17 22:16:13 +01:00
Joakim Nohlgård
7e3c67b654 make: Rename TARGET_TRIPLE -> TARGET_ARCH 2016-03-17 21:55:17 +01:00
Hauke Petersen
4938142b42 cpu/kinetis: adapted GPIO driver 2016-03-17 14:55:30 +01:00
Hauke Petersen
a7790625a1 cpu/lm4f120: adapted GPIO driver 2016-03-17 14:55:30 +01:00
Hauke Petersen
7d53847e61 cpu/stm32l1: adapted GPIO driver 2016-03-17 14:55:30 +01:00
Hauke Petersen
3f478b6e12 cpu/stm32f4: adapted to GPIO changes 2016-03-17 14:55:30 +01:00
Hauke Petersen
46bf22a01d cpu/stm32f3: adapted GPIO driver 2016-03-17 14:55:30 +01:00
Hauke Petersen
141f8c9ff6 cpu/stm32f1: adapted GPIO driver 2016-03-17 14:55:30 +01:00
Hauke Petersen
84880c1f3c cpu/stm32f0: adapted GPIO driver 2016-03-17 14:40:48 +01:00
Hauke Petersen
9bd848f113 cpu/saml21: adapted GPIO driver 2016-03-17 14:39:11 +01:00
Hauke Petersen
d3b21ddf96 cpu/samd21: adapted GPIO driver 2016-03-17 14:39:11 +01:00
Hauke Petersen
f389754de3 cpu/sam3: adapted GPIO driver 2016-03-17 14:39:11 +01:00
Hauke Petersen
af84a5e7aa cpu/nrf5x_common: adapted GPIO driver 2016-03-17 14:39:11 +01:00
Hauke Petersen
28900760de cpu/msp430fxyz: adapted GPIO driver 2016-03-17 14:39:11 +01:00
Hauke Petersen
877d06bda8 cpu/lpc2387: adapted GPIO driver 2016-03-17 14:39:11 +01:00
Hauke Petersen
82e0c51770 cpu/lpc11u34: adapted GPIO driver 2016-03-17 14:39:11 +01:00
Hauke Petersen
ba13a74a7e cpu/ezr32: adapted GPIO driver 2016-03-17 14:39:11 +01:00
Hauke Petersen
cfed0e33cc cpu/cc2538: adapted to GPIO inerface changes 2016-03-17 14:39:11 +01:00
Hauke Petersen
c36efa0f96 cpu/atmega2560: adapted GPIO driver 2016-03-17 14:39:11 +01:00
Johann Fischer
0b2ffc212d Merge pull request #5075 from jfischer-phytec-iot/pr@kinetis-i2c
cpu/kinetis_common/periph/i2c.c: fix generating the STOP signal
2016-03-17 12:53:24 +01:00
DipSwitch
93bce6291c Merge pull request #5090 from haukepetersen/opt_stm_clken
cpu/stm32_common: added shared periph_clk_en/dis functions
2016-03-16 23:02:20 +01:00
Hauke Petersen
7dc6610d48 Merge pull request #4952 from haukepetersen/opt_f1_uart
cpu/stm32f1: reworked UART driver
2016-03-16 15:14:54 +01:00
Martine Lenders
c6bad1ce07 Merge pull request #5056 from Yonezawa-T2/os_x_thread_t
native: workaround for thread_t name collision
2016-03-16 12:51:05 +01:00
Hauke Petersen
4383fbf60b cpu/stm32f4/uart: use common clk_en functions 2016-03-16 12:24:51 +01:00
Hauke Petersen
61f8d45e03 cpu/stm32f1/timer: use common clk_en function 2016-03-16 12:24:51 +01:00
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
Victor Arino
da5b03df5d stm32f1/i2c: remove duplicated code 2016-02-03 17:42:42 +01:00
Victor Arino
be3279f9bc stm32f1/i2c: fix multi byte reading 2016-02-03 17:35:29 +01:00
Joakim Nohlgård
4fd7f23650 cpu/stm32f4: Fix DMA race bug (#4716) 2016-01-30 07:04:26 +01:00
Hauke Petersen
35eb99a46e Merge pull request #3984 from kaspar030/simplify_reboot
core: cpu: sys: simplify reboot()
2016-01-29 14:24:08 +01:00
Hauke Petersen
ad0abdcadd cpus: use default isr_ctx struct in GPIO drivers 2016-01-27 17:00:37 +01:00
Hauke Petersen
f6d350a5a5 Merge pull request #4502 from haukepetersen/fix_doc_cc2538
cpu/cc2538: vendor header cleanup
2016-01-27 16:32:56 +01:00
938ff5c5e7 core: cpu: sys: simplify reboot() 2016-01-27 13:30:01 +01:00
Hauke Petersen
e1df626a9b cpu/cc2538: doxgen fixes
- added missing documentation
- repaired doxygen groups
2016-01-27 09:55:24 +01:00
Hauke Petersen
ad23d0dcea cpu/cc2538: harmonized naming of vendor headers 2016-01-27 09:55:24 +01:00
Hauke Petersen
dda721ca06 cpu/samd21: s/F_CPU/CLOCK_CORECLOCK/ 2016-01-27 09:52:44 +01:00
Hauke Petersen
3101baa589 cpu/sam3: s/F_CPU/CLOCK_CORECLOCK/ 2016-01-27 09:52:44 +01:00
Hauke Petersen
4f35f8d57c cpu/lpc11u34: s/F_CPU/CLOCK_CORECLOCK/ 2016-01-27 09:52:44 +01:00
Hauke Petersen
178e82c0e9 cpu/lpc2387: s/F_CPU/CLOCK_CORECLOCK/ 2016-01-27 09:52:44 +01:00
Hauke Petersen
6fc95e4d6d cpu/atmega2560: removed deps to F_CPU 2016-01-27 09:52:44 +01:00
Hauke Petersen
7cad2577ed cpu/stm32f1: adjusted to new vendor headers 2016-01-26 23:45:50 +01:00
Hauke Petersen
b6194fad42 cpu/stm32f1: updated vendor header files 2016-01-26 23:45:50 +01:00
Peter Kietzmann
cc97fc63ef Merge pull request #4670 from TobiasFredersdorf/new_sam3_cpu_gpioupdate
cpu/sam3: udpate gpio driver
2016-01-26 17:13:58 +01:00
TobiasFredersdorf
9864c84c92 cpu/sam3: udpate gpio driver 2016-01-26 11:05:37 +01:00
Frank Holtz
1c32a536bc pkg/driver: native random fix for micro-ecc 2016-01-25 21:03:03 +01:00
5f44a6938d cpu: native: adapt xtimer backoff values to periph/timer change 2016-01-06 22:07:13 +01:00
ceaeee5c5d Revert "native: periph/timer: prevent underflow in timer_set_absolute"
This reverts commit ec441e9aa6.
2016-01-06 22:07:13 +01:00
Oleg Hahm
6d135d3579 native: make use of TLSF malloc and co
In order to make native behave more similar to other platforms, it should also use TLSF's dynamic memory allocation if included. It will still fall back to the system's malloc implementation when building for use with valgrind, to leverage its memory leak detection mechanisms.
2016-01-03 20:53:08 +01:00
Oleg Hahm
7b95366594 Merge pull request #4455 from OlegHahm/tlsf_warning_free
pkg tlsf: make it compile with -pedantic
2015-12-16 12:51:44 +01:00
Oleg Hahm
26ed138fe2 Merge pull request #4476 from kaspar030/remove_dINT_eINT
core: remove eINT/dINT
2015-12-16 11:10:56 +01:00
Hauke Petersen
c57c608f19 Merge pull request #4422 from lebrush/board-nucleo-f103
Board nucleo f103
2015-12-16 10:51:26 +01:00
Victor Arino
82796f9aea cpu/stm32f1: uncrustified spi driver 2015-12-15 17:23:27 +01:00
Victor Arino
f753ce7809 cpu/stm32f1: allow disabling spi peripherals
This allows disabling SPI peripherals even if defined in periph_conf.h
by setting the definition SPI_*_EN to 0.

The peripherals were tested against ifdef which caused to include the
code even if the peripheral was disabled, which was incompatible with
the current spi.h common implementation.
2015-12-15 17:23:27 +01:00
Victor Arino
f27113b2cc cpu/stm32f1: add linkerscript for stm32f103rb 2015-12-15 17:23:23 +01:00
Oleg Hahm
60e283e6a2 pkg tlsf: add tlsf initialization function
The init function was patched out, but is actually required to compile without warnings with -pedantic enabled.

This patch also updates ccn-lite and x86 support accordingly.
2015-12-15 16:42:43 +01:00
Oleg Hahm
4114382d4e Merge pull request #4458 from nqd/sam3-cpuid
Sam3 cpuid
2015-12-15 16:09:27 +01:00
2d2bfbf7c9 cpu: msp430: remove dINT/eINT 2015-12-14 21:34:48 +01:00
05a572eb58 cpu: x86: remove obsolete dINT/eINT 2015-12-14 21:34:15 +01:00
nqdinh
e24d5031fe cpu/sam3: added cpuid periph driver implementation 2015-12-14 22:17:47 +07:00
DipSwitch
4064858e8d stm32f2: add initial support for stm32f2 2015-12-13 11:00:06 +01:00
Hauke Petersen
8a96a62c42 cpu/stm32f4discovery: fixed freq return in pwm_init 2015-12-10 17:14:12 +01:00
Oleg Hahm
4e5facd750 Merge pull request #4428 from PeterKietzmann/revert_stm32l1_i2c
Revert "stm32l1/i2c.c: adapt for new periph driver interface"
2015-12-08 11:58:31 +01:00
Thomas Eichinger
0f80e688f3 Merge pull request #4115 from haukepetersen/opt_stm32f4_uart
cpu/stm32f4: optimized UART driver
2015-12-08 11:44:13 +01:00
Oleg Hahm
f3e3e40bda Merge pull request #4360 from OlegHahm/relic_import
Add a RELIC package and unit test that shows how to use it
2015-12-08 10:05:54 +01:00
Oleg Hahm
a236fabcd4 cpu stm32f4: rename HASH macro
The HASH macro for an address in STM32's MCU hardware implementation is prone to naming clashes.
2015-12-08 08:58:11 +01:00
Oleg Hahm
fcb5fbf7f6 Merge pull request #4398 from OlegHahm/stm_header_cleanup
cpu: remove superfluous definitions in ST header
2015-12-08 08:52:23 +01:00
Oleg Hahm
f3d161d97a cpu: remove superfluous definitions in ST header 2015-12-08 01:48:21 +01:00
Oleg Hahm
aa3ef774d0 cpu stm32f1 periph spi: simplify condition 2015-12-08 01:48:21 +01:00
Oleg Hahm
4780b5cba1 cc2538: fix pedantic compiler warnings 2015-12-07 20:28:53 +01:00
Oleg Hahm
d92ec1d11e lpc2387: fix pedantic compiler warnings 2015-12-07 20:28:53 +01:00
Oleg Hahm
67c1084825 sam3: fix pedantic compiler warnings 2015-12-07 20:28:52 +01:00
Oleg Hahm
875f48979a avsextrem: some cleanup 2015-12-07 20:28:52 +01:00
Oleg Hahm
20f1750fb6 cpu stm32fX: fix pedantic compiler warnings 2015-12-07 20:28:52 +01:00
Oleg Hahm
e88ebc1c84 cpu nrf51: fix pedantic compiler warnings
Make compiler doesn't complain about unused variables and unnamed unions.
2015-12-07 20:28:52 +01:00
Oleg Hahm
f24e810de5 cpu cortexm_common: fix pedantic compiler warnings 2015-12-07 20:28:52 +01:00
Hauke Petersen
b75e5fe407 cpu/stm32f4: adapted DMA_TypeDef struct for f401 2015-12-07 18:00:41 +01:00
Hauke Petersen
a2247a3400 cpu/stm32f4: significantly optimized UART driver 2015-12-07 18:00:40 +01:00
Hauke Petersen
b13f5cf801 cpu/stm32f4: optimized vendor header slightly 2015-12-07 18:00:40 +01:00
PeterKietzmann
7ff9467970 Revert "stm32l1/i2c.c: adapt for new periph driver interface"
This reverts commit e9215a6cc1.
2015-12-07 17:21:34 +01:00
14a54bddce cpu: native: netdev2_tap: make use of netdev2_eth module 2015-12-07 11:40:39 +01:00
René Herthel
e9215a6cc1 stm32l1/i2c.c: adapt for new periph driver interface 2015-12-03 19:50:06 +01:00
Marc
96444d632e cpu/lm4f120: reworking timer 2015-12-02 13:58:23 +01:00
Oleg Hahm
4d27214a8d Merge pull request #4258 from BytesGalore/cpp11_use_xtimer
cpp11: vtimer->xtimer
2015-11-30 19:30:40 +01:00
Peter Kietzmann
329820ddd4 Merge pull request #4119 from latsku/nucleo-f401
boards: Add support for Nucleo-f401
2015-11-30 10:52:24 +01:00
Lari Lehtomäki
14be504b6a boards/nucleo-f401: Add initial support
cpu: Add support for STM32F401xE cpu

boards: Add support for Nucleo-f401

boards/nucleo-f401: New line fixes and comment on green led pin

board/nucleo-f401: Added LED GPIO

board/nucleo-f401: Fixed LED GPIO

board/nucleo-f401: Minor fixes
2015-11-30 11:06:34 +02:00
04bc408931 cpu: msp430: add write() + needed libc header fixes 2015-11-28 22:09:37 +01:00
BytesGalore
529e83675e cpp11: switched to use xtimer
Also switched the syscalls of cpu/native to use xtimer, only at _gettimeofday()
2015-11-27 18:36:25 +01:00
28d9eab420 cpu: atmega_common_ add off_t to sys/types.h 2015-11-26 20:41:36 +01:00
René Kijewski
ab3345ac5a Merge pull request #4321 from kaspar030/cleanup_posix
sys: cleanup posix compat code
2015-11-26 20:39:30 +01:00
c4e55a2e6d cpu: msp430-common: add unistd.h 2015-11-25 14:36:45 +01:00
4769c3075d cpu: avr_common: add unistd.h 2015-11-25 14:36:45 +01:00
Hauke Petersen
c389f5be02 cpu/cortexm_common: fixes to vectors_cortexm.c
- (optimization) only fill ISR stack with canary values if
  DEVELHELP macro is set (as we don't use these values otherwise)
- (cosmetic) moved define before variable definitions
2015-11-23 12:13:17 +01:00
Hauke Petersen
3fc71ef694 Merge pull request #4307 from haukepetersen/opt_cortex_isrstack
cpu/cortexm_common: moved ISR stack definition
2015-11-20 12:11:19 +01:00
Hauke Petersen
476167a86c cpu: fixed any doxygen warning realated to 'periph' 2015-11-19 16:08:38 +01:00
Hauke Petersen
cf11b073d6 cpu/cortexm_common: define ISR stacksize in cpu.h 2015-11-19 11:55:35 +01:00
Hauke Petersen
3d35c33cb2 cpu/stm32f1: fixed i2c driver
the _stop() function now blocks until the transfer
is complete. Not waiting can lead to concurrent bus
access and subsequent to bus errors.
2015-11-18 14:57:15 +01:00
Hauke Petersen
047f7544a4 Merge pull request #4198 from thomaseichinger/pr/fix_4197
stm32f1/i2c: Disable I2C module before initialization
2015-11-17 17:41:33 +01:00
Ludwig Knüpfer
a86866ea9f cpu/native: malloc.h for osx: fix doxygen, move 2015-11-15 12:14:59 +01:00
Andreas "Paul" Pauli
e5b6566c9a Merge pull request #4170 from haukepetersen/opt_sam3_uart
cpu/sam3: cleaned up UART driver
2015-11-11 16:21:10 +01:00
Cenk Gündoğan
0792450dd7 cpu: kinetis_common: remove vtimer include from spi.c 2015-11-11 09:03:12 +01:00
Joakim Nohlgård
511539bb7a Merge pull request #4247 from cgundogan/pr/stm32/remove_vtimer_include
cpu: stm32f[34]: remove unused vtimer include
2015-11-11 08:57:55 +01:00
Hauke Petersen
86da628971 Merge pull request #4081 from daniel-k/pr/samd21_rtt_fix_irq_priority
samd21: don't change priority of interrupts, this is really evil
2015-11-10 13:05:10 +01:00
Cenk Gündoğan
18427a8074 cpu: stm32f4: spi: remove unused vtimer include 2015-11-10 12:27:17 +01:00
Cenk Gündoğan
6e7f83a390 cpu: stm32f3: spi: remove unused vtimer include 2015-11-10 12:26:58 +01:00
Peter Kietzmann
745320dc41 Merge pull request #4232 from DipSwitch/fix_gpio_read
gpio: Pin direction readout of gpio_read was invalid
2015-11-09 13:18:13 +01:00
Oleg Hahm
4ef889f9ce Merge pull request #4226 from DipSwitch/stm32f1_add_spi_12
cpu/stm32f1/spi: add SPI peripheral 1 and 2
2015-11-07 18:06:09 +09:00
DipSwitch
4186e38976 stm32f1/gpio: pin direction readout of gpio_read was invalid 2015-11-06 16:57:10 +01:00
Andreas "Paul" Pauli
bf63e09a65 Merge pull request #4137 from haukepetersen/opt_samr21_pwm
cpu/samd21: optimized pin config for PWM driver
2015-11-05 16:14:05 +01:00
DipSwitch
2e2ec37846 cpu/stm32f1/spi: add SPI peripheral 1 and 2 2015-11-04 13:40:20 +01:00
René Herthel
13ae0ab979 atmega2560/cpu: Fixed wrong using of UART macros 2015-11-03 18:29:53 +01:00
Hauke Petersen
3ab389b1fd Merge pull request #4134 from gebart/pr/cortexm-hardfault-naked-fix
cpu/cortexm_common: only set naked attribute on DEVELHELP hardfault handler
2015-11-02 18:04:57 +01:00
Thomas Eichinger
96b6d4b1dd stm32f1/i2c: Disable I2C module before initialization
When initializing multiple drivers connected to the same
I2C bus, the bus should be disabled before pin toggeling
and reinitialization.
2015-11-01 11:51:51 +09:00
Ludwig Knüpfer
3b2d26b0dc cpu/saml21: fix typo in gpio.c 2015-10-31 17:35:41 +01:00
Ludwig Knüpfer
406aea453c cpu/samd21: fix typo in gpio.c 2015-10-31 17:28:16 +01:00
Joakim Nohlgård
76bddaf213 Merge pull request #3283 from gebart/pr/kinetis-errata-e4218
k60: Add workaround for errata e4218
2015-10-30 07:33:31 +01:00
Peter Kietzmann
6fcea29bdc Merge pull request #4042 from gebart/pr/kinetis-gpio-periph-refactor
kinetis_common: Refactor GPIO implementation
2015-10-29 08:29:09 +01:00
Hauke Petersen
7d1c952734 Merge pull request #3571 from haukepetersen/add_board_wstk6220a
boards/cpu: added SLWSTK6220A and EZR32WG support
2015-10-28 20:58:43 +01:00
Hauke Petersen
b9707cd8f3 cpu/ezr32wg: added extern C to vendor headers 2015-10-28 17:33:44 +01:00
Joakim Nohlgård
142c28094e kinetis_common: Refactor GPIO implementation
This is a rewrite of the Kinetis GPIO driver which follows the
refactored API in [1]. Pins are specified using the GPIO_PIN(PORT_x, y)
macro, e.g. GPIO_PIN(PORT_E, 25) for the PTE25 pin.

The interrupt pin handling is now implemented as a linked list, this
is more memory efficient, but with a minor variation in interrupt
latency depending on in what order the pins were initialized at
runtime.

Because the linked list entries are taken from a shared pool, there is
also the possibility of running out of available configuration slots,
define the preprocessor macro GPIO_INT_POOL_SIZE in periph_conf.h if
you need more than 16 pins configured for interrupts in the same
application.

[1]: https://github.com/RIOT-OS/RIOT/pull/3095
2015-10-28 14:12:19 +01:00
Martine Lenders
a370a12f75 msp430: fix doc to time.h 2015-10-28 13:59:52 +01:00
Martine Lenders
77b0ffffec msp430: include missing types to time.h 2015-10-28 13:59:35 +01:00
Hauke Petersen
36646865f0 cpu: added support for SiLabs EZR32WG 2015-10-28 13:50:34 +01:00
Hauke Petersen
e1f028a859 cpu/sam3: reworked the UART driver 2015-10-28 12:05:35 +01:00
Hauke Petersen
85e05d411e Merge pull request #4114 from haukepetersen/opt_periph_uart
drivers/periph/uart: remodeled UART interface
2015-10-28 10:50:03 +01:00
Joakim Nohlgård
3033738e30 Merge pull request #4126 from gebart/pr/cortexm-r7-O0-fix
cortexm-common: Workaround for error: r7 cannot be used in asm here
2015-10-28 07:01:32 +01:00
Joakim Nohlgård
c3340b7ccf cpu/cortexm_common: Use PRIx32 for printing uint32_t in hard fault handler
fixes errors like:
    error: format specifies type 'unsigned long' but the argument has
    type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
2015-10-28 06:59:28 +01:00
Joakim Nohlgård
a5449bcbd4 cpu/cortexm_common: only set naked attribute on DEVELHELP hardfault handler
Fixes error on LLVM/Clang:

   cpu/cortexm_common/vectors_cortexm.c:287:5: error: non-ASM statement in naked function is not supported
       core_panic(PANIC_HARD_FAULT, "HARD FAULT HANDLER");
       ^
   cpu/cortexm_common/include/vectors_cortexm.h:65:46: note: attribute is here
   void hard_fault_default(void) __attribute__((naked));
                                                ^
   1 error generated.
2015-10-28 06:51:51 +01:00
Peter Kietzmann
f5b2c80bd6 Merge pull request #4015 from daniel-k/pr/cortexm_hardfault_overflow
cortexm_common: check for possible stack overflow in hardfault handler
2015-10-27 19:19:32 +01:00
daniel-k
c5e220c140 cortexm_common: check for possible stack overflow in hardfault handler 2015-10-27 15:58:36 +01:00
Hauke Petersen
19cd4b32c4 cpu/stm32l1: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
1eb63f20a7 cpu/stm32f4: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
9741267d9d cpu/stm32f3: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
59b935bd1e cpu/stm32f1: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
b71d8ea750 cpu/stm32f0: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
65673663b5 cpu/saml21: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
a93f15b5cb cpu/samd21: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
07a7d93690 cpu/msp430fxyz: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
fe249b9006 cpu/lpc2387: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
68670f038f cpu/lpc1768: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
d31401ef1a cpu/lpc11u34: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
14796f2351 cpu/lm4f120: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
c7d256d83e cpu/kinetis_common: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
a58d577cb1 cpu/cc2538: adapted UART driver 2015-10-27 14:59:38 +01:00
Hauke Petersen
1125f5feb3 cpu/atmega2560: adapted UART driver 2015-10-27 14:59:37 +01:00
Hauke Petersen
8044e457cb cpu/atmega2560: adapted UART driver 2015-10-27 14:59:37 +01:00
Hauke Petersen
4c3a397f34 cpu/sam3: adapted UART driver 2015-10-27 14:59:37 +01:00
Hauke Petersen
d32c03932e cpu/nrf51: adapted UART driver 2015-10-27 14:59:37 +01:00
Hauke Petersen
97af043227 cpu/stm32f4: adapted UART driver 2015-10-27 14:59:37 +01:00
Peter Kietzmann
59e2fd8a22 Merge pull request #4148 from LudwigKnuepfer/pr/nrf51-adc
cpu/nrf51 + boards: add ADC implementation
2015-10-27 14:49:32 +01:00
Peter Kietzmann
816bef6220 Merge pull request #4094 from danielamkaer/atmega2560_gpio_init_fix
cpu/atmega2560: fixes the configuration of pullup resistors in gpio.c
2015-10-26 08:45:34 +01:00
Peter Kietzmann
e539db10ee Merge pull request #4104 from gebart/pr/drop-timer-reset
periph/timer: Drop timer_reset
2015-10-26 08:36:01 +01:00
Peter Kietzmann
9f6cd49559 Merge pull request #4047 from danielamkaer/bugfix_atmega2560_gpio
cpu/atmega2560: gpio - fixes a bug where gpio_* behaves incorrect if …
2015-10-26 08:17:36 +01:00
Joakim Gebart
c404bd97ad k60: Add workaround for errata e4218
e4218: SIM/FLEXBUS: SIM_SCGC7[FLEXBUS] bit should be cleared when the
FlexBus is not being used.

Errata type: Errata

Description:

The SIM_SCGC7[FLEXBUS] bit is set by default. This means that the
FlexBus will be enabled and come up in global chip select mode. With
some code sequence and register value combinations the core could
attempt to prefetch from the FlexBus even though it might not actually
use the value it prefetched. In the case where the FlexBus is
unconfigured, this can result in a hung bus cycle on the FlexBus.

Workaround:

 - If the FlexBus is not being used, disabled the clock to the FlexBus
   during chip initialization by clearing the SIM_SCGC7[FLEXBUS] bit.
 - If the FlexBus will be used, then enable at least one chip select as
   early in the chip initialization process as possible.
2015-10-25 15:12:22 +01:00
Ludwig Knüpfer
73d21efe7d cpu/nrf51: add ADC driver 2015-10-25 14:30:14 +01:00
Ludwig Knüpfer
0b5918003f cpu/nrf51 + boards: fix typo - TIEMER -> TIMER 2015-10-25 08:07:21 +01:00
Johann Fischer
f31db0431f Merge pull request #4132 from jfischer-phytec-iot/pr@kinetis-ldscript
kinetis_common: use cortexm_common ldscript
2015-10-24 09:59:38 +02:00
Johann Fischer
e95afc80fb kinetis_common: use cortexm_common ldscript
kinetis.ld includes cortexm_common ldscript, the fields for the
isr vectors and fcfield remain in kinetis.ld.
2015-10-23 12:01:22 +02:00
Johann Fischer
f0e7d2fc03 cpu/kinetis_common/timer.c: cleanup and fix the pit timer
It simplifies the virtual "count up timer" and improves
the accuracy a little. The LDVAL for the prescaler should
be set as a number of prescaler cycles-1. The virtual
up-counter should be corrected in the isr by +1
(See PIT reference manual). This also fixes a bug where
the timer is not used by xtimer and up-counter does not overflow.
2015-10-23 11:58:10 +02:00
Hauke Petersen
13fcefb638 s cpu: moved pwm_conf_[chan_]t to periph_cpu.h 2015-10-23 11:41:04 +02:00
Hauke Petersen
fe6b3e7d54 cpu/samd21: optimized pin config for PWM driver 2015-10-23 11:41:04 +02:00
Daniel Amkær Sørensen
6040531ae1 cpu/atmega2560: fixes the configuration of pullup resistors in gpio.c 2015-10-22 07:05:33 +02:00
Joakim Nohlgård
30584a49e5 cortexm-common: Workaround for error: r7 cannot be used in asm here
Fixes https://github.com/RIOT-OS/RIOT/issues/4125
2015-10-21 14:35:02 +02:00
Hauke Petersen
05ef9fee99 cpu/kinetis_common: removed i2c_init_slave() 2015-10-20 16:58:06 +02:00
Hauke Petersen
82c843a000 cpu: removed init_slave from I2C drivers 2015-10-20 16:57:39 +02:00
Joakim Nohlgård
cbaeccdb90 periph/timer: Drop timer_reset 2015-10-17 20:11:03 +02:00
Thomas Eichinger
79a3b05b42 Merge pull request #4092 from ks156/spi
cpu/lpc11u34 : Added SPI for NXP LPC11U34 (SPI_0 and SPI_1)
2015-10-16 17:48:23 +02:00
Paul Rathgeb
df68ac9f79 cpu/lpc11u34 : Added SPI for NXP LPC11U34 (SPI_0 and SPI_1)
make: Blacklisted 'weio' in driver_at86rf2xx and driver_kw2xrf due to insufficient memory
2015-10-16 17:28:09 +02:00
daniel-k
1f98e06956 samd21/gpio: check if interrupt is enabled in isr, fixes #4087
The interrupt flag for a previously configured external gpio interrupt
will be set regardless of the actual configuration. So when another source
causes an interrupt, the callback of a disabled gpio interrupt will be serviced
although it was disabled if the interrupt occured in the meantime.
2015-10-15 17:05:40 +02:00
Thomas Eichinger
02e2d8c353 Merge pull request #4084 from ks156/adc
cpu/lpc11u34 : Added ADC support for LPC11U34
2015-10-14 10:22:09 +02:00
Paul Rathgeb
c2d8d27322 cpu/lpc11u34 : Added ADC support for LPC11U34 2015-10-13 21:45:17 +02:00
Thomas Eichinger
2b29abed8e Merge pull request #4071 from thomaseichinger/hauke-fix-gpio-gpiodev
drivers/gpio: renamed GPIO(x,y) macro to GPIO_PIN
2015-10-13 16:05:19 +02:00
Hauke Petersen
d43dc9182f cpu: s/GPIO(x,y)/GPIO_PIN(x,y)/ 2015-10-13 14:59:54 +02:00
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