0e45604765
Merge pull request #5743 from keestux/refactor-samd21
...
Refactor samd21
2016-09-22 14:54:57 +02:00
b2b42c7b71
Merge pull request #5451 from mali/uno
...
boards: add arduino uno and duemilanove support
2016-09-22 09:29:49 +02:00
Laurent Navet
5b8cfb0b58
boards/arduino-common: use software interrupt for context swap
2016-09-21 22:44:05 +02:00
Ludwig Knüpfer
6d30ced410
Merge pull request #5763 from jthacker/avr_thread_arch_isr_stack_usage
...
atmega: use software interrupt for context swap
2016-09-21 21:13:05 +02:00
Laurent Navet
80cf8389a8
boards: add arduino uno and duemilanove support
...
Uno and Duemilanove(atmega328p version) are nearly the same boards.
The only difference is that the Duemilanove use an FTDI usb chip,
while the Uno use an Atmel which acts as USB/Serial converter.
All of the code needed to support these boards is in arduino-common.
2016-09-21 21:11:01 +02:00
Kees Bakker
ea8b90fa5f
cpu/samd21: uart: now using padd setting from board config
...
Notice the extra fields in uart_conf_t for rx_pad and tx_pad.
2016-09-21 20:34:22 +02:00
Kees Bakker
845ef0decd
cpu/samd21: Refactor spi using ArduinoCore as example
...
The pinmux is now part of the board config. The pad setting is done with
clear names instead of numbers.
2016-09-21 20:34:22 +02:00
Kees Bakker
2a4655b6f8
cpu/samd21: rewrite i2c_init_master to make use of gpio_init_sercom
...
The former i2c_init_master was too complicated. It was trying to set IN/OUT
mode of the pins, but all that is needed is to set the proper MUX.
Also the configuration for the boards was incomplete (no MUX, no pad
setting).
It was tested on a SODAQ Autonomo, but not on a samr21-xpro
2016-09-21 20:34:22 +02:00
Kees Bakker
8644b5f7a0
cpu/samd21: introduce sam0.h so that we can select samr21.h or other
...
In the Makefile.include of the board it is required to set the correct
define.
Currently only SAMRG18A is supported, as required by samr21-xpro.
2016-09-21 19:43:30 +02:00
Joakim Nohlgård
0a15d1b2ed
Merge pull request #5838 from gebart/pr/nucleo-f207-mcu-group
...
boards/nucleo-f207: Use cortex_m3_2 MCU_GROUP
2016-09-19 12:55:29 +02:00
Joakim Nohlgård
ee486fd908
Merge pull request #5794 from smlng/pr/fix_osx_5742
...
correcting linker LTO flags on OSX
2016-09-16 17:37:52 +02:00
Joakim Nohlgård
8160717485
boards/nucleo-f207: Use cortex_m3_2 MCU_GROUP
2016-09-16 17:07:14 +02:00
Cenk Gündoğan
674f7a1cf9
Merge pull request #5843 from smlng/pr/boards/nucleo-f207/fixing_cpp11
...
nucleo-f207: fix uart configuration init
2016-09-16 12:10:04 +02:00
smlng
20fd33c927
nucleo-f207: fix uart configuration init
2016-09-15 13:43:57 +02:00
Martine Lenders
8a74475e70
Merge pull request #5761 from mali/rmdeadcode
...
boards/atmega_common: remove dead code on link
2016-09-12 17:01:15 +02:00
smlng
291c1a54eb
native: correcting linker LTO flags for OSX
...
- corrects and enhances changes introduced in #5742
2016-09-12 15:41:38 +02:00
Jon Thacker
e0365e0bf9
atmega: use software interrupt for context swap
...
Fixes #5745
For AVR based boards, three defines must be defined AVR_CONTEXT_SWAP_INIT,
AVR_CONTEXT_SWAP_INTERRUPT_VECT, and AVR_CONTEXT_SWAP_TRIGGER.
These defines are used to trigger a software interrupt used for context
switching.
When AVR_CONTEXT_SWAP_INTERRUPT_VECT is handled, the scheduler is run
and a context swap will happen if necessary, with the resulting thread
starting following the reti instruction. This results in threads running
at normal priority instead of at interrupt priority.
Atmega devices do provide a pure software interrupt. The method used
here for waspmote-pro and arduino-mega2560 is to use pin change
interrupts, set the pin to act as an output, and toggle the value to
simulate a software interrupt. The main limitation here is that a
physical pin is now occupied and must be defined for each board
supported by RIOT. On the plus side, it provides an easy method for
detecting context swaps with an oscilloscope.
2016-09-07 14:35:53 -05:00
Laurent Navet
3a7e3f4cb7
boards/waspmote-pro: adapt compilation flags
...
Remove flags which are now exported in atmega_common
2016-08-31 21:34:01 +02:00
Laurent Navet
5791a38668
boards/arduino-mega2560: adapt compilation flags
...
Remove flags which are now exported in atmega_common
2016-08-31 21:32:10 +02:00
26e4004de4
Merge pull request #5397 from OTAkeys/pr/stm32f2xx
...
cpu: add stm32f2xx family support (based on #4497 )
2016-08-31 21:14:37 +02:00
kYc0o
5e3747ea8b
Merge pull request #5590 from mali/atmega_common
...
cpu/atmega_common: improve to add smaller atmega MCUs.
2016-08-31 18:29:53 +02:00
PeterKietzmann
5eafb071a6
dist/tools/cc2538-bsl: enforce python2
2016-08-30 23:38:14 +02:00
Peter Kietzmann
8264f41e91
Merge pull request #5708 from aabadie/nucleo_saul_support
...
boards/nucleo-common: add saul support for on-board user led and button
2016-08-30 17:14:17 +02:00
Joakim Nohlgård
455fb6cd4d
Merge pull request #5742 from kaspar030/fix_lto
...
LTO fixes
2016-08-29 19:00:09 +02:00
3bb782f864
boards/nucleo-common: add saul support for on-board user led and button
2016-08-29 10:56:54 +02:00
b3a061e0ab
sys: remove config module
2016-08-27 07:57:09 +02:00
Laurent Navet
2cd918a07a
atmega_common: abstract Power Reduction Register
...
PR Register is PRR0 on atmega2560 and atmega1281
but PRR on atmega328p.
this abstracts as atmega Power Reduction Register as MEGA_PRR.
2016-08-20 12:21:32 +02:00
Joakim Nohlgård
4d95f8a0ba
boards/x86-multiboot-common/Makefile.include: Add -Wl,--gc-sections to linker options
2016-08-10 16:18:29 +02:00
Joakim Nohlgård
db55740447
boards/arduino-mega2560: Add -Wno-error if building with LTO
2016-08-10 16:18:29 +02:00
Joakim Nohlgård
5fcb09f6b9
boards/native/Makefile.include: Add -Wl,--gc-sections to linker options
2016-08-10 16:18:29 +02:00
Joakim Nohlgård
efedaa1a43
boards/x86-multiboot-common: Use gcc-ar when building with LTO
2016-08-10 16:18:29 +02:00
Joakim Nohlgård
0e5522950a
boards/native: Use gcc-ar when building with LTO
2016-08-10 16:18:29 +02:00
Martine Lenders
8dac0787bb
Merge pull request #5655 from haukepetersen/add_due_saulmapping
...
boards/arduino-due: export LED via SAUL
2016-08-05 14:15:46 +02:00
Joakim Nohlgård
1ea462643f
chronos: Fix stdio warnings
2016-08-02 09:19:29 +02:00
kYc0o
e443b90815
Merge pull request #5452 from locicontrols/find-tty
...
Adjust find-tty.sh to return all matches, then use it in boards/cc2538dk
2016-07-22 16:01:46 +02:00
Hauke Petersen
1a34cf66c0
boards/arduino-due: export LED via SAUL
2016-07-18 12:49:06 +02:00
Peter Kietzmann
592530985f
Merge pull request #5555 from basilfx/feature/arch_pro
...
boards: seeeduino_arch-pro: initial support based on mbed_lpc1768
2016-07-17 19:03:40 +02:00
Martine Lenders
4ac7d81420
Merge pull request #5634 from kaspar030/nordic_softdevice
...
nrf52dk: add BLE/6lo support utilizing Nordic's SoftDevice
2016-07-16 16:57:29 +02:00
Bas Stottelaar
b800da4322
boards: seeeduino_arch-pro: initial support based on mbed_lpc1768 board
2016-07-16 11:47:34 +02:00
e012df1bac
nrf52dk: add BLE/6lo support utilizing Nordic's SoftDevice
2016-07-13 17:06:57 +02:00
Bas Stottelaar
43f146663e
boards: arduino-mega2560, waspmote-pro: garbage collect dead code in linker options
2016-07-13 16:45:13 +02:00
Aaron Sowry
f5657127ea
boards/remote-common: Add RF driver as dependency for board
2016-07-13 14:19:52 +12:00
Aaron Sowry
bc18e597c0
boards/cc2538dk: Add RF driver as dependency for board
2016-07-13 14:19:52 +12:00
Aaron Sowry
4b4cbb0317
boards/openmote-cc2538: Add RF driver as dependency for board
2016-07-13 14:19:52 +12:00
Joakim Nohlgård
683e1e2e08
boards/nucleo-f072: Use common serial and openocd defines
2016-07-12 10:58:52 +02:00
Joakim Nohlgård
8dad08289c
boards/mulle: Update timer configuration to match driver modifications
2016-07-07 13:38:28 +02:00
Joakim Nohlgård
647d90c44f
boards/frdm-k64f: Update configuration to match driver changes
2016-07-07 13:38:27 +02:00
Joakim Nohlgård
54d1c2323c
boards/pba-d-01-kw2x: Update configuration to match driver changes
2016-07-07 13:38:27 +02:00
1c6c447493
Merge pull request #5607 from gebart/pr/xtimer-cleanups
...
xtimer: Code refactoring and clean ups
2016-07-07 06:37:50 +02:00
Joakim Nohlgård
4d862955c2
xtimer: Rename XTIMER -> XTIMER_DEV
2016-07-06 22:23:04 +02:00