/* * Copyright (c) 2022 Kamil Serwus * Copyright (c) 2024 Gerson Fernando Budke * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _SOC_ATMEL_SAM0_SAMC20_SOC_H_ #define _SOC_ATMEL_SAM0_SAMC20_SOC_H_ #ifndef _ASMLANGUAGE #define DONT_USE_CMSIS_INIT #include #if defined(CONFIG_SOC_SAMC20E15A) #include #elif defined(CONFIG_SOC_SAMC20E16A) #include #elif defined(CONFIG_SOC_SAMC20E17A) #include #elif defined(CONFIG_SOC_SAMC20E18A) #include #elif defined(CONFIG_SOC_SAMC20G15A) #include #elif defined(CONFIG_SOC_SAMC20G16A) #include #elif defined(CONFIG_SOC_SAMC20G17A) #include #elif defined(CONFIG_SOC_SAMC20G18A) #include #elif defined(CONFIG_SOC_SAMC20J15A) #include #elif defined(CONFIG_SOC_SAMC20J16A) #include #elif defined(CONFIG_SOC_SAMC20J17A) #include #elif defined(CONFIG_SOC_SAMC20J18A) #include #elif defined(CONFIG_SOC_SAMC20J17AU) #include #elif defined(CONFIG_SOC_SAMC20J18AU) #include #elif defined(CONFIG_SOC_SAMC20N17A) #include #elif defined(CONFIG_SOC_SAMC20N18A) #include #else #error Library does not support the specified device. #endif #endif /* _ASMLANGUAGE */ #define ADC_SAM0_REFERENCE_ENABLE_PROTECTED #include "adc_fixup_sam0.h" #include "../common/soc_port.h" #include "../common/atmel_sam0_dt.h" #define SOC_ATMEL_SAM0_OSC32K_FREQ_HZ 32768 #define SOC_ATMEL_SAM0_OSC48M_FREQ_HZ 48000000 /** Processor Clock (HCLK) Frequency */ #define SOC_ATMEL_SAM0_HCLK_FREQ_HZ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC /** Master Clock (MCK) Frequency */ #define SOC_ATMEL_SAM0_MCK_FREQ_HZ SOC_ATMEL_SAM0_HCLK_FREQ_HZ #define SOC_ATMEL_SAM0_GCLK0_FREQ_HZ SOC_ATMEL_SAM0_MCK_FREQ_HZ #endif /* _SOC_ATMEL_SAM0_SAMC20_SOC_H_ */