Skip to content

Commit

Permalink
DM: clean up and add all samd51 devices
Browse files Browse the repository at this point in the history
  • Loading branch information
deanm1278 committed Aug 7, 2017
1 parent 6e17060 commit 03a1b11
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 12 deletions.
29 changes: 24 additions & 5 deletions CMSIS-Atmel/CMSIS/Device/ATMEL/sam.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,21 +156,40 @@

#define SAMD21J18 ( \
part_is_defined( SAMD21J18A ) )

#define SAMD51P20A ( \
part_is_defined( SAMD51P20A ) )

#define SAMD51G18A ( \
part_is_defined( SAMD51G18A ) )

#define SAMD51G19A ( \
part_is_defined( SAMD51G19A ) )


#define SAMD51J19A ( \
part_is_defined( SAMD51J19A ) )

#define SAMD51J20A ( \
part_is_defined( SAMD51J20A ) )

#define SAMD51N19A ( \
part_is_defined( SAMD51N19A ) )

#define SAMD51N20A ( \
part_is_defined( SAMD51N20A ) )

#define SAMD51P19A ( \
part_is_defined( SAMD51P19A ) )

#define SAMD51P20A ( \
part_is_defined( SAMD51P20A ) )


/* Entire SAMD21 series */
#define SAMD21_SERIES (SAMD21J17 || SAMD21G17A || SAMD21E15B || SAMD21E15 || SAMD21E16 || SAMD21E17 || SAMD21E18 || SAMD21E16B || SAMD21J15 || SAMD21J16 || SAMD21G16 || SAMD21G17 || SAMD21G18A || SAMD21G15 || SAMD21G18 || SAMD21J18)

/* Entire SAMD51 series */
#define SAMD51_SERIES (SAMD51G18A || SAMD51G19A || SAMD51J19A || SAMD51J20A || SAMD51N19A || SAMD51N20A || SAMD51P19A || SAMD51P20A)

/* Entire SAMD family */
#define SAMD_SERIES (SAMD10_SERIES || SAMD11_SERIES || SAMD21_SERIES || SAMD51_SERIES || SAMD51P20A || SAMD51G19A || SAMD51J20A)
#define SAMD_SERIES (SAMD10_SERIES || SAMD11_SERIES || SAMD21_SERIES || SAMD51_SERIES)

/*
* ----------------------------------------------------------------------------
Expand Down
24 changes: 17 additions & 7 deletions CMSIS-Atmel/CMSIS/Device/ATMEL/samd.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@
#ifndef _SAMD_INCLUDED_
#define _SAMD_INCLUDED_

#if defined (__SAMD51P20A__)
#include "samd51/include/samd51.h"
#elif defined (__SAMD51G19A__)
#include "samd51/include/samd51.h"
#elif defined (__SAMD51J20A__)
#include "samd51/include/samd51.h"
#elif defined (__SAMD20E14__)
#if defined (__SAMD20E14__)
#include "samd20/include/samd20.h"
#elif defined (__SAMD20E15__)
#include "samd20/include/samd20.h"
Expand Down Expand Up @@ -141,6 +135,22 @@
#include "samd11/include/samd11.h"
#elif defined (__SAMD11D14AM__)
#include "samd11/include/samd11.h"
#elif defined (__SAMD51G18A__)
#include "samd51/include/samd51.h"
#elif defined (__SAMD51G19A__)
#include "samd51/include/samd51.h"
#elif defined (__SAMD51J19A__)
#include "samd51/include/samd51.h"
#elif defined (__SAMD51J20A__)
#include "samd51/include/samd51.h"
#elif defined (__SAMD51N19A__)
#include "samd51/include/samd51.h"
#elif defined (__SAMD51N20A__)
#include "samd51/include/samd51.h"
#elif defined (__SAMD51P19A__)
#include "samd51/include/samd51.h"
#elif defined (__SAMD51P20A__)
#include "samd51/include/samd51.h"
#endif

#endif /* _SAMD_INCLUDED_ */

0 comments on commit 03a1b11

Please sign in to comment.