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

14 Commits

Author SHA1 Message Date
Hauke Petersen
d3e41e7b58 cpu/sam21: removed superfluous gpio_init_sercom
This function was a duplication of the existing gpio_init_mux,
where the exiting function is the more general one, as the mux
inititalization is not only valid for the sercom module...
2016-10-05 13:19:52 +02:00
Kees Bakker
076d5bda11 boards: add support for SODAQ Autonomo
The following features were tested (briefly):
* UART (the first)
* I2C using a BMP180 on a SODAQ TPH board
* SPI0, connected to the on-board serial data flash (only DevID was read
using the periph_spi test program)
* xtimer is working (it's the same code as in samr21)

boards/sodaq-autonomo: Disable the "big" unittests because it does not fit
2016-09-28 18:02:16 +02:00
Kees Bakker
6aa346fbad cpu/sam21_common: some corrections to CMSIS samd21 include files
See README.md for details
* eliminate trailing white space
* remove define of LITTLE_ENDIAN
2016-09-28 18:01:12 +02:00
Kees Bakker
3123b501b5 cpu/sam21_common: add samd21 include files from ASF CMSIS
This adds support for all samd21 variants. Notice that the previous samd21
was moved to cpu/samr21

To use this cpu variant you must set at least the following in your boards
Makefile.include:
    export CPU = samd21
    export CPU_MODEL = samd21j18a   # Not sure if this is used
    CFLAGS += -D__SAMD21J18A__  # or whatever variant you have

The samd21 include files were copied from ASF 3.30
2016-09-28 18:01:12 +02:00
Michael Andersen
41190ac2a8 cpu/sam21_common: support SAMR21E18 2016-09-22 16:24:09 -07: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
1b307b3802 cpu/sam21_common: eliminate trailing white space in CMSIS include files 2016-09-21 20:40:28 +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
Ian Martin
49ae438dd5 doc: eliminate clutter in adc and gpio periph docs 2016-06-29 15:08:32 -04:00
Hauke Petersen
48a639f8fd cpu/sam21_common: used shared periph_cpu.h 2016-02-08 19:04:28 +01:00