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

12154 Commits

Author SHA1 Message Date
Laurent Navet
3ff576e46a tests: adapt for arduino uno and duemilanove support
- blacklist arduino-uno and arduino-duemilanove for
  coap, libfixmath_unittests, lwip, nhdp,
  pthread, pthread_barrier, pthread_cleanup, pthread_condition_variable
  pthread_cooperation, pthread_rwlock and pthread_tls tests.

- fix sys/pipe build

- unittests: boards added to BOARD_INSUFICIENT_MEMORY list.
2016-09-21 21:12:58 +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
d367090c44 cpu/sam21_common: remove define of LITTLE_ENDIAN
This define conflicts with LITTLE_ENDIAN defined in
include/machine/endian.h which is part of gcc-arm-none-eabi.

Also, the define does not seem to be used by the ASF included files.
2016-09-21 20:44:38 +02:00
Kees Bakker
e118525731 cpu/sam21_common: add C++ wrapper to sam0.h 2016-09-21 20:40:49 +02:00
Kees Bakker
bd2fbf040b dist/tools: exclude sam21_common cmsis include files 2016-09-21 20:40:49 +02:00
Kees Bakker
1b307b3802 cpu/sam21_common: eliminate trailing white space in CMSIS include files 2016-09-21 20:40:28 +02:00
Kees Bakker
ebeece15c7 doc: correct exclude patterns after moving CMSIS files to cpu/sam21_common 2016-09-21 20:34:22 +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
f794bd4c8e cpu/samd21: spi: change #ifdef's to #if's
The board config can define SPI_1_EN as 0, and in that case #ifdef won't
work.

Add some more comments, and fix typos.
2016-09-21 20:34:22 +02:00
Kees Bakker
574b565e2a cpu/samd21: add helper functions spi_power_on/off 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
be1113fa6c cpu/sam21_common: move i2c.c from samd21 to sam21_common
Notice that saml21 does not use I2C (yet).
2016-09-21 20:34:22 +02:00
Kees Bakker
4ad3313ae5 cpu/sam21_common: add a few typedefs for SERCOM
A generic function is added to initialize a SERCOM.

Notice that uart_conf_t was expanded with pad settings, but it isn't used
yet.
2016-09-21 20:34:21 +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
Kees Bakker
88e84f68ff cpu/sam21_common: update ASF CMSIS (samr21) include files using ASF 3.21
Notice that RIOT was using FDPLL96M, which is indeed the name in the
datasheet. But Atmel is using GCLK_GENCTRL_SRC_FDPLL.
2016-09-21 19:43:30 +02:00
Kees Bakker
2869d7729d cpu/samr21: rename ASF include files to prepare for ASF update 2016-09-21 19:43:30 +02:00
Martine Lenders
03a82bc295 Merge pull request #5857 from smlng/pr/tests/driver_at86rf2xx/fix
tests/driver_at86rf2xx: corrects flag compare
2016-09-21 18:01:36 +02:00
smlng
671831d326 corrects flag compare 2016-09-21 16:51:12 +02:00
smlng
0784b9a812 gnrc_rpl: add explanatory links to RFC sections 2016-09-21 13:45:25 +02:00
smlng
4ae107626a gnrc_rpl: correct (some) default params 2016-09-21 13:34:36 +02:00
smlng
fbafcc39ac gnrc_rpl: modify RPL default parameters in Makefile 2016-09-21 13:33:55 +02:00
Sebastian Meiling
8234a0029d Merge pull request #5853 from cgundogan/pr/vagrant
vagrant: minimize Vagrantfile and make it loadable
2016-09-21 10:40:50 +02:00
Cenk Gündoğan
9457703607 vagrant: minimize Vagrantfile and make it loadable
By parameterizing certain paths with `RIOTBASE`, it is possible to load
this Vagrantfile from other Vagrantfiles. This feature will be used by the
Tutorials repository, so that this Vagrantfile has no knowledge about
the tutorials, hence the deletion of the `tutorials` definition at this
place.
2016-09-21 10:22:35 +02:00
Martine Lenders
4fa36e6128 auto_init_gnrc_netif: set priorities one lower than 6LoWPAN 2016-09-20 15:43:11 +02:00
Joakim Nohlgård
6be334b4f4 Merge pull request #5833 from immesys/fix-i2c-checks
samd21: i2c: check all busstate bits
2016-09-20 10:06:40 +02:00
Michael Andersen
e367ab93f6 samd21: i2c: improve busstate comparison 2016-09-19 10:54:17 -07: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
d9d0646545 Merge pull request #5850 from smlng/pr/dist_fix_readme
minor typos in README corrected
2016-09-19 12:54:54 +02:00
smlng
f9432cef4b minor typos in README corrected 2016-09-19 12:09:46 +02:00
Sebastian Meiling
0d901c410f Merge pull request #5846 from cgundogan/pr/vagrantfile_tutorial
vagrant: sync Tutorials folder into vbox
2016-09-16 18:10:20 +02:00
Sebastian Meiling
77f8aabec1 Merge pull request #5847 from cgundogan/pr/vagrant_file_provisioner
vagrant: prevent error by checking existence of .gitconfig
2016-09-16 17:47:58 +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
Cenk Gündoğan
f41f7bd8ff vagrant: prevent error by checking existence of .gitconfig 2016-09-16 17:15:24 +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
c767f27168 vagrant: sync Tutorials folder into vbox 2016-09-16 16:32:20 +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
fc9e1d9024 kw2xrf: set tx_power in gnrc_netdev_t
without this patch, tx_power is directly set on the device but not in
gnrc_netdev_t. Thus, calling ifconfig in shell shows tx_power always
at 0dBm, never showing the correct, current value. Additionally, it
verifies that given tx_power to be set is in valid range.
2016-09-16 10:52:53 +02:00
add6e1d36d Merge pull request #5674 from aabadie/driver_io1_xplained
drivers/io1_xplained: initial implementation of Atmel IO1 Xplained extension board
2016-09-16 10:35:49 +02:00
smlng
20fd33c927 nucleo-f207: fix uart configuration init 2016-09-15 13:43:57 +02:00
Matthias Kolja Miehl
c5cfacebc3 cpu/stm32l1: uart: make sure 'dev' is != NULL to avoid nullPointer errors 2016-09-13 22:22:48 +02:00
Matthias Kolja Miehl
1d1e6c44e4 sys/shell: fix cppcheck warnings 2016-09-13 22:07: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
Martine Lenders
03fbe9c2a5 Merge pull request #5766 from zhuoshuguo/fix_cpu_atmega_header_include_guards
fix cpu/atmega header include guardes.
2016-09-12 17:00:56 +02:00
Martine Lenders
55a08aeb59 Merge pull request #5827 from miri64/make/enh/quiet-per-default
make: build quiet as default
2016-09-12 16:59:59 +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
Martine Lenders
9cb73dd63f Merge pull request #5832 from immesys/patch-1
samd21: i2c: clear timeout_counter
2016-09-12 15:08:06 +02:00
Martine Lenders
b5f22a73ef Merge pull request #5836 from gebart/pr/quiet-typo
Makefile.buildtests: Fix typo QUITE -> QUIET
2016-09-12 14:26:51 +02:00
Martine Lenders
d301ae279b Merge pull request #5839 from cgundogan/pr/ccnl_example_docfix
examples: ccn-lite-relay: minor doc fix
2016-09-12 13:50:29 +02:00
Cenk Gündoğan
c0f05a8a88 examples: ccn-lite-relay: minor doc fix 2016-09-11 22:39:20 +02:00