This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
/************************************************************************************
|
|
|
|
* arch/arm/include/samd5e5/chip.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
|
|
|
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
*
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in
|
|
|
|
* the documentation and/or other materials provided with the
|
|
|
|
* distribution.
|
|
|
|
* 3. Neither the name NuttX nor the names of its contributors may be
|
|
|
|
* used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
************************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __ARCH_ARM_INCLUDE_SAMD5E5_CHIP_H
|
|
|
|
#define __ARCH_ARM_INCLUDE_SAMD5E5_CHIP_H
|
|
|
|
|
|
|
|
/************************************************************************************
|
|
|
|
* Included Files
|
|
|
|
************************************************************************************/
|
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
|
|
|
|
|
|
|
/************************************************************************************
|
|
|
|
* Pre-processor Definitions
|
|
|
|
************************************************************************************/
|
|
|
|
|
|
|
|
/* Get customizations for each supported chip. Only sizes and numbers of things are
|
|
|
|
* provided here. See arch/arm/src/samd5e5/Kconfig for other, boolean configuration
|
|
|
|
* settings.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if defined(CONFIG_ARCH_CHIP_SAMD51P20)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (1024*1024) /* 1024KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (256*1024) /* 256KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 8 /* TC0-TC7 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NSDHC 2 /* SDHC0-1 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 16 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAMD51P19)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (512*1024) /* 512KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (192*1024) /* 192KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 8 /* TC0-TC7 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NSDHC 2 /* SDHC0-1 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 6 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAMD51N20)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (1024*1024) /* 1024KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (256*1024) /* 256KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 8 /* TC0-TC7 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NSDHC 2 /* SDHC0-1 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 12 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAMD51N19)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (512*1024) /* 512KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (192*1024) /* 192KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 8 /* TC0-TC7 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NSDHC 2 /* SDHC0-1 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 12 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAMD51J20)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (1024*1024) /* 1024KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (256*1024) /* 256KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 6 /* Sercomm0-5 */
|
|
|
|
# define SAMD5E5_NTC 6 /* TC0-TC5 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 10 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 8 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 3 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAMD51J19)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (512*1024) /* 512KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (192*1024) /* 192KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 6 /* Sercomm0-5 */
|
|
|
|
# define SAMD5E5_NTC 6 /* TC0-TC5 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 10 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 8 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 3 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAMD51J18)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (256*1024) /* 1256KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (128*1024) /* 128KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 6 /* Sercomm0-5 */
|
|
|
|
# define SAMD5E5_NTC 6 /* TC0-TC5 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 10 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 8 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 3 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAMD51G19)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (512*1024) /* 512KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (192*1024) /* 192KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 6 /* Sercomm0-5 */
|
|
|
|
# define SAMD5E5_NTC 4 /* TC0-TC3 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 1 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 10 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 4 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 2 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAMD51G18)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (256*1024) /* 1256KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (128*1024) /* 128KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 6 /* Sercomm0-5 */
|
|
|
|
# define SAMD5E5_NTC 4 /* TC0-TC3 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 1 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 10 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 4 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 2 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME51N20)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (1024*1024) /* 1024KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (256*1024) /* 256KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 4 /* TC0-TC3 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 12 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME51N19)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (512*1024) /* 512KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (192*1024) /* 192KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 4 /* TC0-TC3 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 12 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME51J20)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (1024*1024) /* 1024KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (256*1024) /* 256KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 6 /* Sercomm0-5 */
|
|
|
|
# define SAMD5E5_NTC 6 /* TC0-TC5 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 10 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 8 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 3 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME51J19)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (512*1024) /* 512KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (192*1024) /* 192KB */
|
|
|
|
|
|
|
|
/* Peripherals -- to be provided */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME51J18)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (256*1024) /* 1256KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (128*1024) /* 128KB */
|
|
|
|
|
|
|
|
/* Peripherals -- to be provided */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME53N20)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (1024*1024) /* 1024KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (256*1024) /* 256KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 8 /* TC0-TC7 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 2 /* SDHC0-1 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 12 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME53N19)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (512*1024) /* 512KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (192*1024) /* 192KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 8 /* TC0-TC7 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 2 /* SDHC0-1 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 12 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME53J20)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (1024*1024) /* 1024KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (256*1024) /* 256KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 6 /* Sercomm0-5 */
|
|
|
|
# define SAMD5E5_NTC 6 /* TC0-TC5 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 10 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 8 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 3 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME53J19)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (512*1024) /* 512KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (192*1024) /* 192KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 6 /* Sercomm0-5 */
|
|
|
|
# define SAMD5E5_NTC 6 /* TC0-TC5 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 10 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 8 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 3 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME53J18)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (256*1024) /* 1256KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (128*1024) /* 128KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 6 /* Sercomm0-5 */
|
|
|
|
# define SAMD5E5_NTC 6 /* TC0-TC5 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 10 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 8 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 3 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME54P20)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (1024*1024) /* 1024KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (256*1024) /* 256KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 8 /* TC0-TC7 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 2 /* SDHC0-1 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 16 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME54P19)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (512*1024) /* 512KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (192*1024) /* 192KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 8 /* TC0-TC7 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 2 /* SDHC0-1 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 16 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME54N20)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (1024*1024) /* 1024KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (256*1024) /* 256KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 8 /* TC0-TC7 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 12 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#elif defined(CONFIG_ARCH_CHIP_SAME54N19)
|
|
|
|
|
|
|
|
/* Internal memory */
|
|
|
|
|
|
|
|
# define SAMD5E5_FLASH_SIZE (512*1024) /* 512KB */
|
|
|
|
# define SAMD5E5_SRAM_SIZE (192*1024) /* 192KB */
|
|
|
|
|
|
|
|
/* Peripherals */
|
|
|
|
|
|
|
|
# define SAMD5E5_NSERCOM 8 /* Sercomm0-7 */
|
|
|
|
# define SAMD5E5_NTC 8 /* TC0-TC7 */
|
|
|
|
# define SAMD5E5_NTCCOMP 2 /* TC compare */
|
|
|
|
# define SAMD5E5_NTCC24 2 /* TCC 24-bit */
|
|
|
|
# define SAMD5E5_NTCC16 3 /* TCC 16-bit */
|
|
|
|
# define SAMD5E5_NSDHC 1 /* SDHC0 */
|
2018-07-29 19:31:26 +02:00
|
|
|
# define SAMD5E5_NDMACHAN 32 /* 32 DMA channels */
|
This is the initial commit the port to the SAMD5x/E5x MCU family and also support for the Adafruit Metro M4 board. It port is untested and unfinished. It currently will not even link due to some missing clock related logic.
Squashed commit of the following:
arch/arm/src/samd5e5: Clean-up EIC logic.
arch/arm/src/samd5e5: Fix some compilation issues; Still issues with the EIC logic from samd2x.
arch/arm/src/samd5e5: Fix some compilation issues; bring in some EIC logic from samd2x.
arch/arm/src/samd5e5: Add NVMCTRL header file, fix some compiler problems, misc. clean-up.
configs/metro-m4: Add LED support.
arch/arm/src/samd5e5: Bring in SAML21 clock configuration. This is a WIP; it cannot possible even compile yet.
arch/arm/src/samd5e5: Leverage Cortex-M4 interrupt and SysTick logic from the SAM3/4.
arch/arm/src/samd5e5: Add SERCOM utility function.
arch/arm/src/samd5e5: Bring all SERCOM USART logic from SAMD2L2 to SAMD5E5. This is a brute coy with nothing more than more that name changes and extension from 5 to 7 SERCOMs.
arch/arm/src/samd5e5: Add sam_config.h header file
arch/arm/src/samd5e5/: Add Generic Clock (GCLK) utility functions.
arch/arm/src/samd5e5: Add EVSYS register definition file
arch/arm/src/samd5e5 and configs/metro-m4: Use SERCOM3 for the Arduino serial shield as console.
arch/arm/src/samd5e5/chip: Add SERCOM USART, SPI, I2C master, and slave register defintions header files
arch/arm/src/samd5e5/chip: Add AES, PM, TRNG, and WDT header files.
arch/arm/src/samd5e5/chip: Add pin multiplexing header files.
Various fixes to configuration system; fix metro-m4/nsh defconfig file.
configs/metro-m4: Add initial support for the Adafruit Metro M4 board.
arch/arm/src/samd5e5: Add peripheral clock helpers.
arch/arm/src/samd5e5/chip: Add PAC register definition header file. Fix some errors in the memory map header file.
arch/arm/src/samd5e5: Add chip.h headerf file.
arch/arm/src/samd5e5: Add PORT register definitions and support from SAML21.
arch/arm/include/samd5e5: Add interrupt vector definitions.
arch/arm/src/samd5e5: Add some boilerplate files. Correct some typos.
arch/arm/src/samd5e5/chip/sam_eic.h: Add EIC register definitions.
arch/arm/src/samd5e5/chip: Add OSC32KCTRL and OSCCTRL register definitions.
arch/arm/src/samd5e5/chip: Add GCLK, MCLK, and RSTC header files.
arch/arm/src/samd5e5/chip/sam_cmcc.h: Add CMCC register definitions
arch/arm/src/samd5e5/chip/sam_supc.h: Add SUPC header file.
arch/arm/src/samd5e5: Add start-up logic.
arch/arm/src/samd5e5: Add Make.defs file
arch/arm/src/samd5e5/chip: Add memory map header file.
arch/arm/include/samd5e5: Add chip.h header file.
arch/arm/Kconfig and arch/arm/src/samd5e5/Kconfig: Add configuration logic for the SAMD5x/Ex family.
2018-07-26 20:08:58 +02:00
|
|
|
# define SAMD5E5_PCCSIZE 14 /* PCC data size */
|
|
|
|
# define SAMD5E5_NCCL 4 /* CCL */
|
|
|
|
# define SAMD5E5_NEVTCHAN 32 /* Event system channels */
|
|
|
|
# define SAMD5E5_NADC0CHAN 16 /* ADC0 channels */
|
|
|
|
# define SAMD5E5_NADC1CHAN 12 /* ADC1 channels */
|
|
|
|
# define SAMD5E5_NACMP 4 /* Analog comparators */
|
|
|
|
# define SAMD5E5_NDACCHAN 2 /* DAC channels */
|
|
|
|
# define SAMD5E5_NPCTMANCHAN 256 /* PTC manual channels */
|
|
|
|
# define SAMD5E5_NPCTSELFCHAN 32 /* PTC self-capacitance channels */
|
|
|
|
# define SAMD5E5_NTAMPER 5 /* Tamper pins */
|
|
|
|
|
|
|
|
#else
|
|
|
|
# error Unrecognized SAMD5x/Ex chip
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* NVIC priority levels *************************************************************/
|
|
|
|
/* Each priority field holds a priority value, 0x00-0xe0. The lower the value, the
|
|
|
|
* greater the priority of the corresponding interrupt. The processor implements only
|
|
|
|
* bits[7:4] of each field, bits[6:0] read as zero and ignore writes.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define NVIC_SYSH_PRIORITY_MIN 0xe0 /* All bits[7:5] set is minimum priority */
|
|
|
|
#define NVIC_SYSH_PRIORITY_DEFAULT 0x80 /* Midpoint is the default */
|
|
|
|
#define NVIC_SYSH_PRIORITY_MAX 0x00 /* Zero is maximum priority */
|
|
|
|
#define NVIC_SYSH_PRIORITY_STEP 0x20 /* Eight priority levels in steps 0x20 */
|
|
|
|
|
|
|
|
/************************************************************************************
|
|
|
|
* Public Types
|
|
|
|
************************************************************************************/
|
|
|
|
|
|
|
|
/************************************************************************************
|
|
|
|
* Public Data
|
|
|
|
************************************************************************************/
|
|
|
|
|
|
|
|
/************************************************************************************
|
|
|
|
* Public Functions
|
|
|
|
************************************************************************************/
|
|
|
|
|
|
|
|
#endif /* __ARCH_ARM_INCLUDE_SAMD5E5_CHIP_H */
|