1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/sam21_common/include/cmsis/samd21
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
..
include cpu/sam21_common: add samd21 include files from ASF CMSIS 2016-09-28 18:01:12 +02:00
README.md cpu/sam21_common: add samd21 include files from ASF CMSIS 2016-09-28 18:01:12 +02:00

CMSIS from Atmel Software Foundation (ASF)

The include files in the directory tree are copied from ASF. See https://spaces.atmel.com/gf/project/asf/frs/?action=FrsReleaseBrowse&frs_package_id=4 (dd. 2016-07-15 ASF version 3.30 was used)

The directory tree was copied "as is" and its structure is as follows:

cmsis
└── samd21
    ├── include
    │   ├── component
    │   ├── instance
    │   └── pio
    └── source
        ├── gcc
        └── iar

There is only one include file (per CPU variant) that should be included in the source code. For SAMD21 that is cmsis/samd21/include/samd21.h. But that will only work if the proper define is set. The define is named after the variant, for example __SAMD21J18A__. This define must be set in the Makefile.include of the board.

Be aware that if you want to make changes to any file in this tree that the changes will be lost when a new ASF release is going to be used.