not working

stable
penguin 4 years ago
parent 8b9e2e48a7
commit 68e3ec2a40

@ -42,14 +42,18 @@
<description>Atmel Start Framework</description> <description>Atmel Start Framework</description>
<RTE_Components_h>#define ATMEL_START</RTE_Components_h> <RTE_Components_h>#define ATMEL_START</RTE_Components_h>
<files> <files>
<file category="doc" condition="ARMCC, GCC, IAR" name="hal/documentation/calendar.rst"/>
<file category="doc" condition="ARMCC, GCC, IAR" name="hal/documentation/mci_sync.rst"/>
<file category="doc" condition="ARMCC, GCC, IAR" name="hal/documentation/spi_master_sync.rst"/> <file category="doc" condition="ARMCC, GCC, IAR" name="hal/documentation/spi_master_sync.rst"/>
<file category="doc" condition="ARMCC, GCC, IAR" name="hal/documentation/usart_sync.rst"/> <file category="doc" condition="ARMCC, GCC, IAR" name="hal/documentation/usart_sync.rst"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_atomic.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_atomic.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_cache.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_cache.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_calendar.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_delay.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_delay.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_gpio.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_gpio.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_init.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_init.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_io.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_io.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_mci_sync.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_sleep.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_sleep.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_spi_m_sync.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_spi_m_sync.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_cmcc.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_cmcc.h"/>
@ -63,6 +67,7 @@
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_i2c_s_sync.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_i2c_s_sync.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_init.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_init.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_irq.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_irq.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_mci_sync.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_ramecc.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_ramecc.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_sleep.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_sleep.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_spi.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_spi.h"/>
@ -77,15 +82,18 @@
<file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_gpio.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_gpio.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_init.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_init.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_io.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_io.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_mci_sync.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_sleep.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_sleep.c"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/compiler.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/compiler.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/err_codes.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/err_codes.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/events.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/events.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_assert.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_assert.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_decrement_macro.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_event.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_event.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_increment_macro.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_increment_macro.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_list.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_list.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_recursion_macro.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_repeat_macro.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/utils_repeat_macro.h"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hal/utils/src/utils_assert.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="hal/utils/src/utils_assert.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hal/utils/src/utils_event.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="hal/utils/src/utils_event.c"/>
@ -130,6 +138,19 @@
<file category="header" condition="ARMCC, GCC, IAR" name="hri/hri_trng_e54.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hri/hri_trng_e54.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hri/hri_usb_e54.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hri/hri_usb_e54.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hri/hri_wdt_e54.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hri/hri_wdt_e54.h"/>
<file category="doc" condition="ARMCC, GCC, IAR" name="documentation/sd_mmc.rst"/>
<file category="source" condition="ARMCC, GCC, IAR" name="sd_mmc/sd_mmc.c"/>
<file category="header" condition="ARMCC, GCC, IAR" name="sd_mmc/sd_mmc.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="sd_mmc/sd_mmc_protocol.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="diskio/diskio.h"/>
<file category="source" condition="ARMCC, GCC, IAR" name="diskio/sdmmc_diskio.c"/>
<file category="doc" condition="ARMCC, GCC, IAR" name="documentation/diskio_sdmmc.rst"/>
<file category="doc" condition="ARMCC, GCC, IAR" name="documentation/fatfs.rst"/>
<file category="other" condition="ARMCC, GCC, IAR" name="fatfs/.clang-format"/>
<file category="source" condition="ARMCC, GCC, IAR" name="fatfs/src/ff.c"/>
<file category="header" condition="ARMCC, GCC, IAR" name="fatfs/src/ff.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="fatfs/src/ffconf.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="fatfs/src/integer.h"/>
<file category="source" condition="ARMCC, GCC, IAR" name="main.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="main.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="driver_init.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="driver_init.c"/>
<file category="header" condition="ARMCC, GCC, IAR" name="driver_init.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="driver_init.h"/>
@ -137,6 +158,7 @@
<file category="header" condition="ARMCC, GCC, IAR" name="examples/driver_examples.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="examples/driver_examples.h"/>
<file category="source" condition="ARMCC, GCC, IAR" name="examples/driver_examples.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="examples/driver_examples.c"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_usart_sync.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hal_usart_sync.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_calendar.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_missing_features.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_missing_features.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_reset.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_reset.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_spi_m_async.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_spi_m_async.h"/>
@ -144,8 +166,10 @@
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_spi_m_sync.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_spi_m_sync.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_spi_s_async.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_spi_s_async.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_spi_s_sync.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_spi_s_sync.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_timer.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_usart_async.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_usart_async.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_usart_sync.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/include/hpl_usart_sync.h"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_calendar.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_spi_m_sync.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_spi_m_sync.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_usart_sync.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="hal/src/hal_usart_sync.c"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/parts.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hal/utils/include/parts.h"/>
@ -163,8 +187,17 @@
<file category="header" condition="ARMCC, GCC, IAR" name="hpl/pm/hpl_pm_base.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hpl/pm/hpl_pm_base.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hpl/port/hpl_gpio_base.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="hpl/port/hpl_gpio_base.h"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hpl/ramecc/hpl_ramecc.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="hpl/ramecc/hpl_ramecc.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hpl/rtc/hpl_rtc.c"/>
<file category="header" condition="ARMCC, GCC, IAR" name="hpl/rtc/hpl_rtc_base.h"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hpl/sdhc/hpl_sdhc.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hpl/sercom/hpl_sercom.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="hpl/sercom/hpl_sercom.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="hpl/systick/hpl_systick.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="hpl/systick/hpl_systick.c"/>
<file category="source" condition="ARMCC, GCC, IAR" name="sd_mmc_start.c"/>
<file category="header" condition="ARMCC, GCC, IAR" name="sd_mmc_start.h"/>
<file category="source" condition="ARMCC, GCC, IAR" name="diskio_start.c"/>
<file category="header" condition="ARMCC, GCC, IAR" name="diskio_start.h"/>
<file category="source" condition="ARMCC, GCC, IAR" name="fatfs_main.c"/>
<file category="header" condition="ARMCC, GCC, IAR" name="fatfs_main.h"/>
<file category="header" condition="ARMCC, GCC, IAR" name="atmel_start.h"/> <file category="header" condition="ARMCC, GCC, IAR" name="atmel_start.h"/>
<file category="source" condition="ARMCC, GCC, IAR" name="atmel_start.c"/> <file category="source" condition="ARMCC, GCC, IAR" name="atmel_start.c"/>
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_cmcc_config.h"/> <file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_cmcc_config.h"/>
@ -174,9 +207,13 @@
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_osc32kctrl_config.h"/> <file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_osc32kctrl_config.h"/>
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_oscctrl_config.h"/> <file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_oscctrl_config.h"/>
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_port_config.h"/> <file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_port_config.h"/>
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_rtc_config.h"/>
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_sdhc_config.h"/>
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_sercom_config.h"/> <file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_sercom_config.h"/>
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_systick_config.h"/> <file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/hpl_systick_config.h"/>
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/peripheral_clk_config.h"/> <file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/peripheral_clk_config.h"/>
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/conf_sd_mmc.h"/>
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="fatfs/src/conf_fatfs.h"/>
<file category="include" condition="ARMCC, GCC, IAR" name=""/> <file category="include" condition="ARMCC, GCC, IAR" name=""/>
<file category="include" condition="ARMCC, GCC, IAR" name="config"/> <file category="include" condition="ARMCC, GCC, IAR" name="config"/>
<file category="include" condition="ARMCC, GCC, IAR" name="examples"/> <file category="include" condition="ARMCC, GCC, IAR" name="examples"/>
@ -192,10 +229,19 @@
<file category="include" condition="ARMCC, GCC, IAR" name="hpl/pm"/> <file category="include" condition="ARMCC, GCC, IAR" name="hpl/pm"/>
<file category="include" condition="ARMCC, GCC, IAR" name="hpl/port"/> <file category="include" condition="ARMCC, GCC, IAR" name="hpl/port"/>
<file category="include" condition="ARMCC, GCC, IAR" name="hpl/ramecc"/> <file category="include" condition="ARMCC, GCC, IAR" name="hpl/ramecc"/>
<file category="include" condition="ARMCC, GCC, IAR" name="hpl/rtc"/>
<file category="include" condition="ARMCC, GCC, IAR" name="hpl/sdhc"/>
<file category="include" condition="ARMCC, GCC, IAR" name="hpl/sercom"/> <file category="include" condition="ARMCC, GCC, IAR" name="hpl/sercom"/>
<file category="include" condition="ARMCC, GCC, IAR" name="hpl/systick"/> <file category="include" condition="ARMCC, GCC, IAR" name="hpl/systick"/>
<file category="include" condition="ARMCC, GCC, IAR" name="hri"/> <file category="include" condition="ARMCC, GCC, IAR" name="hri"/>
<file category="include" condition="ARMCC, GCC, IAR" name=""/> <file category="include" condition="ARMCC, GCC, IAR" name=""/>
<file category="include" condition="ARMCC, GCC, IAR" name="config"/>
<file category="include" condition="ARMCC, GCC, IAR" name="sd_mmc"/>
<file category="include" condition="ARMCC, GCC, IAR" name=""/>
<file category="include" condition="ARMCC, GCC, IAR" name="diskio"/>
<file category="include" condition="ARMCC, GCC, IAR" name=""/>
<file category="include" condition="ARMCC, GCC, IAR" name="fatfs/src"/>
<file category="include" condition="ARMCC, GCC, IAR" name=""/>
</files> </files>
</component> </component>
</components> </components>

@ -6,4 +6,6 @@
void atmel_start_init(void) void atmel_start_init(void)
{ {
system_init(); system_init();
sd_mmc_stack_init();
diskio_init();
} }

@ -6,6 +6,8 @@ extern "C" {
#endif #endif
#include "driver_init.h" #include "driver_init.h"
#include "sd_mmc_start.h"
#include "diskio_start.h"
/** /**
* Initializes MCU, drivers and middleware in the project * Initializes MCU, drivers and middleware in the project

@ -18,7 +18,72 @@ board:
device: SAME54P20A-AU device: SAME54P20A-AU
details: null details: null
application: null application: null
middlewares: {} middlewares:
SDMMC:
user_label: SDMMC
configuration:
conf_mmc_support: false
conf_sd_mmc_0_cd_detect_en: false
conf_sd_mmc_0_cd_detect_value: Low
conf_sd_mmc_0_enable: true
conf_sd_mmc_0_wp_detect_en: false
conf_sd_mmc_0_wp_detect_value: High
conf_sd_mmc_os_support: false
conf_sdio_support: true
definition: Atmel:SD_MMC:0.0.1::SD_MMC
functionality: SD/MMC_Access
api: SD-MMC:Lib:API
dependencies:
IO Bus: IO_BUS
Write Protect 0: null
Card Detect 0: null
DISK_IO:
user_label: DISK_IO
configuration: {}
definition: Atmel:DiskIO:1.0.0::SD_MMC
functionality: DISKIO
api: DiskIO:Storage-Abstractions:API
dependencies:
SDMMC: SDMMC
FATFS_0:
user_label: FATFS_0
configuration:
character_code_set: 0 - ANSI/OEM
character_encoding: UTF-8
code_page: Multilingual Latin 1 (OEM)
config_fs_timeout: 1000
f_mkfs_fs_enable: true
fast_seek_fs_enable: false
file_lock_enable: 0
file_share_count: 0
filtered_dir_enable: false
free_space_info_enable: false
lfn_feature: 0 - Disable LFN feature. _MAX_LFN and _LFN_UNICODE have no effect.
max_lfn_length: 255
max_sector_size: '512'
min_sector_size: '512'
minimisation_level: 0 - Full function
multiple_partition_enable: false
num_volumes: 5
read_only_fs_enable: false
reentrant_enable: false
relative_path_enable: 2 - f_getcwd() is available in addition to 1.
sectore_erase_enable: false
strfunc_fs_enable: false
string_volume_enable: false
synch_handler: HANDLE
time_stamp_enable: false
tiny_fs_enable: false
trim_feature_enable: false
use_forward_fs_enable: false
volume_label_enable: false
word_access_enable: false
definition: Atmel:FATFS:1.0.0::FAT_File_System
functionality: FATFS
api: FAT:File-System:API
dependencies:
Disk IO: DISK_IO
Calender Interface: CALENDER_INTERFACE
drivers: drivers:
CMCC: CMCC:
user_label: CMCC user_label: CMCC
@ -582,7 +647,7 @@ drivers:
$input_id: External Crystal Oscillator 8-48MHz (XOSC1) $input_id: External Crystal Oscillator 8-48MHz (XOSC1)
RESERVED_InputFreq: 12000000 RESERVED_InputFreq: 12000000
RESERVED_InputFreq_id: External Crystal Oscillator 8-48MHz (XOSC1) RESERVED_InputFreq_id: External Crystal Oscillator 8-48MHz (XOSC1)
_$freq_output_Generic clock generator 0: 48005120 _$freq_output_Generic clock generator 0: 119997440
_$freq_output_Generic clock generator 1: 48005120 _$freq_output_Generic clock generator 1: 48005120
_$freq_output_Generic clock generator 10: 12000000 _$freq_output_Generic clock generator 10: 12000000
_$freq_output_Generic clock generator 11: 12000000 _$freq_output_Generic clock generator 11: 12000000
@ -680,7 +745,7 @@ drivers:
gclk_arch_gen_9_runstdby: false gclk_arch_gen_9_runstdby: false
gclk_gen_0_div: 1 gclk_gen_0_div: 1
gclk_gen_0_div_sel: false gclk_gen_0_div_sel: false
gclk_gen_0_oscillator: Digital Frequency Locked Loop (DFLL48M) gclk_gen_0_oscillator: Digital Phase Locked Loop (DPLL0)
gclk_gen_10_div: 1 gclk_gen_10_div: 1
gclk_gen_10_div_sel: false gclk_gen_10_div_sel: false
gclk_gen_10_oscillator: External Crystal Oscillator 8-48MHz (XOSC1) gclk_gen_10_oscillator: External Crystal Oscillator 8-48MHz (XOSC1)
@ -724,18 +789,18 @@ drivers:
functionality: System functionality: System
api: HAL:HPL:MCLK api: HAL:HPL:MCLK
configuration: configuration:
$input: 48005120 $input: 119997440
$input_id: Generic clock generator 0 $input_id: Generic clock generator 0
RESERVED_InputFreq: 48005120 RESERVED_InputFreq: 119997440
RESERVED_InputFreq_id: Generic clock generator 0 RESERVED_InputFreq_id: Generic clock generator 0
_$freq_output_CPU: 48005120 _$freq_output_CPU: 119997440
cpu_clock_source: Generic clock generator 0 cpu_clock_source: Generic clock generator 0
cpu_div: '1' cpu_div: '1'
enable_cpu_clock: true enable_cpu_clock: true
mclk_arch_bupdiv: Divide by 8 mclk_arch_bupdiv: Divide by 8
mclk_arch_hsdiv: Divide by 1 mclk_arch_hsdiv: Divide by 1
mclk_arch_lpdiv: Divide by 4 mclk_arch_lpdiv: Divide by 4
nvm_wait_states: '0' nvm_wait_states: '5'
optional_signals: [] optional_signals: []
variant: null variant: null
clocks: clocks:
@ -768,11 +833,11 @@ drivers:
xosc32k_arch_cfdeo: false xosc32k_arch_cfdeo: false
xosc32k_arch_cgm: Standard mode xosc32k_arch_cgm: Standard mode
xosc32k_arch_en1k: false xosc32k_arch_en1k: false
xosc32k_arch_en32k: false xosc32k_arch_en32k: true
xosc32k_arch_enable: true xosc32k_arch_enable: true
xosc32k_arch_ondemand: true xosc32k_arch_ondemand: true
xosc32k_arch_runstdby: false xosc32k_arch_runstdby: false
xosc32k_arch_startup: 62592us xosc32k_arch_startup: 1000092us
xosc32k_arch_swben: false xosc32k_arch_swben: false
xosc32k_arch_xtalen: true xosc32k_arch_xtalen: true
optional_signals: [] optional_signals: []
@ -790,16 +855,16 @@ drivers:
RESERVED_InputFreq: 32768 RESERVED_InputFreq: 32768
RESERVED_InputFreq_id: 32kHz External Crystal Oscillator (XOSC32K) RESERVED_InputFreq_id: 32kHz External Crystal Oscillator (XOSC32K)
_$freq_output_Digital Frequency Locked Loop (DFLL48M): 48005120 _$freq_output_Digital Frequency Locked Loop (DFLL48M): 48005120
_$freq_output_Digital Phase Locked Loop (DPLL0): 47985664 _$freq_output_Digital Phase Locked Loop (DPLL0): 119997440
_$freq_output_Digital Phase Locked Loop (DPLL1): 47985664 _$freq_output_Digital Phase Locked Loop (DPLL1): 47985664
_$freq_output_External Crystal Oscillator 8-48MHz (XOSC0): '12000000' _$freq_output_External Crystal Oscillator 8-48MHz (XOSC0): 12000000
_$freq_output_External Crystal Oscillator 8-48MHz (XOSC1): '12000000' _$freq_output_External Crystal Oscillator 8-48MHz (XOSC1): 12000000
dfll_arch_bplckc: false dfll_arch_bplckc: false
dfll_arch_calibration: false dfll_arch_calibration: false
dfll_arch_ccdis: true dfll_arch_ccdis: true
dfll_arch_coarse: 31 dfll_arch_coarse: 31
dfll_arch_cstep: 1 dfll_arch_cstep: 1
dfll_arch_enable: true dfll_arch_enable: false
dfll_arch_fine: 128 dfll_arch_fine: 128
dfll_arch_fstep: 1 dfll_arch_fstep: 1
dfll_arch_llaw: false dfll_arch_llaw: false
@ -812,15 +877,15 @@ drivers:
dfll_mode: Closed Loop Mode dfll_mode: Closed Loop Mode
dfll_mul: 1465 dfll_mul: 1465
dfll_ref_clock: Generic clock generator 3 dfll_ref_clock: Generic clock generator 3
enable_dfll: true enable_dfll: false
enable_fdpll0: false enable_fdpll0: true
enable_fdpll1: false enable_fdpll1: false
enable_xosc0: false enable_xosc0: false
enable_xosc1: false enable_xosc1: false
fdpll0_arch_dcoen: false fdpll0_arch_dcoen: false
fdpll0_arch_enable: false fdpll0_arch_enable: true
fdpll0_arch_filter: 0 fdpll0_arch_filter: 0
fdpll0_arch_lbypass: false fdpll0_arch_lbypass: true
fdpll0_arch_ltime: No time-out, automatic lock fdpll0_arch_ltime: No time-out, automatic lock
fdpll0_arch_ondemand: false fdpll0_arch_ondemand: false
fdpll0_arch_refclk: XOSC32K clock reference fdpll0_arch_refclk: XOSC32K clock reference
@ -828,8 +893,8 @@ drivers:
fdpll0_arch_wuf: false fdpll0_arch_wuf: false
fdpll0_clock_dcofilter: 0 fdpll0_clock_dcofilter: 0
fdpll0_clock_div: 0 fdpll0_clock_div: 0
fdpll0_ldr: 1463 fdpll0_ldr: 3661
fdpll0_ldrfrac: 13 fdpll0_ldrfrac: 1
fdpll0_ref_clock: 32kHz External Crystal Oscillator (XOSC32K) fdpll0_ref_clock: 32kHz External Crystal Oscillator (XOSC32K)
fdpll1_arch_dcoen: false fdpll1_arch_dcoen: false
fdpll1_arch_enable: false fdpll1_arch_enable: false
@ -941,6 +1006,61 @@ drivers:
variant: null variant: null
clocks: clocks:
domain_group: null domain_group: null
CALENDER_INTERFACE:
user_label: CALENDER_INTERFACE
definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::RTC::driver_config_definition::Calendar::HAL:Driver:Calendar
functionality: Calendar
api: HAL:Driver:Calendar
configuration:
rtc_arch_init_reset: true
rtc_arch_prescaler: Peripheral clock divided by 1
rtc_cmpeo0: false
rtc_cmpeo1: false
rtc_event_control: false
rtc_ovfeo: false
rtc_pereo0: false
rtc_pereo1: false
rtc_pereo2: false
rtc_pereo3: false
rtc_pereo4: false
rtc_pereo5: false
rtc_pereo6: false
rtc_pereo7: false
rtc_tamper_active_layer_frequency_prescalar: DIV2 CLK_RTC_OUT is CLK_RTC /2
rtc_tamper_debounce_frequency_prescalar: DIV2 CLK_RTC_DEB is CLK_RTC /2
rtc_tamper_input_action_0: OFF(Disabled)
rtc_tamper_input_action_1: OFF(Disabled)
rtc_tamper_input_action_2: OFF(Disabled)
rtc_tamper_input_action_3: OFF(Disabled)
rtc_tamper_input_action_4: OFF(Disabled)
rtc_tampereo: false
rtc_tampevei: false
tamper_debounce_enable_0: false
tamper_debounce_enable_1: false
tamper_debounce_enable_2: false
tamper_debounce_enable_3: false
tamper_debounce_enable_4: false
tamper_input_0_settings: false
tamper_input_1_settings: false
tamper_input_2_settings: false
tamper_input_3_settings: false
tamper_input_4_settings: false
tamper_level_0: false
tamper_level_1: false
tamper_level_2: false
tamper_level_3: false
tamper_level_4: false
optional_signals: []
variant: null
clocks:
domain_group:
nodes:
- name: RTC
input: RTC source
external: false
external_frequency: 0
configuration:
rtc_clk_selection: RTC source
USART_DBG: USART_DBG:
user_label: USART_DBG user_label: USART_DBG
definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::SERCOM2::driver_config_definition::UART::HAL:Driver:USART.Sync definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::SERCOM2::driver_config_definition::UART::HAL:Driver:USART.Sync
@ -1034,6 +1154,49 @@ drivers:
configuration: configuration:
core_gclk_selection: Generic clock generator 0 core_gclk_selection: Generic clock generator 0
slow_gclk_selection: Generic clock generator 3 slow_gclk_selection: Generic clock generator 3
IO_BUS:
user_label: IO_BUS
definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::SDHC0::driver_config_definition::MCI::HAL:Driver:MCI.Sync
functionality: MCI
api: HAL:Driver:MCI_Sync
configuration:
sdhc_clk_gsel: Divided Clock mode
optional_signals: []
variant:
specification: default
required_signals:
- name: SDHC0/SDCK
pad: PB11
label: SDCK
- name: SDHC0/SDCMD
pad: PA08
label: SDCMD
- name: SDHC0/SDDAT/0
pad: PA09
label: SDDAT/0
- name: SDHC0/SDDAT/1
pad: PA10
label: SDDAT/1
- name: SDHC0/SDDAT/2
pad: PA11
label: SDDAT/2
- name: SDHC0/SDDAT/3
pad: PB10
label: SDDAT/3
clocks:
domain_group:
nodes:
- name: SDHC
input: Generic clock generator 0
external: false
external_frequency: 0
- name: SDHC_Slow
input: Generic clock generator 0
external: false
external_frequency: 0
configuration:
sdhc_gclk_selection: Generic clock generator 0
sdhc_slow_gclk_selection: Generic clock generator 0
DELAY_0: DELAY_0:
user_label: DELAY_0 user_label: DELAY_0
definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::SysTick::driver_config_definition::Delay::HAL:Driver:Delay definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::SysTick::driver_config_definition::Delay::HAL:Driver:Delay
@ -1046,6 +1209,42 @@ drivers:
clocks: clocks:
domain_group: null domain_group: null
pads: pads:
PA08:
name: PA08
definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::pad::PA08
mode: Advanced
user_label: PA08
configuration: null
PA09:
name: PA09
definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::pad::PA09
mode: Advanced
user_label: PA09
configuration: null
PA10:
name: PA10
definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::pad::PA10
mode: Advanced
user_label: PA10
configuration: null
PA11:
name: PA11
definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::pad::PA11
mode: Advanced
user_label: PA11
configuration: null
PB10:
name: PB10
definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::pad::PB10
mode: Advanced
user_label: PB10
configuration: null
PB11:
name: PB11
definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::pad::PB11
mode: Advanced
user_label: PB11
configuration: null
PB24: PB24:
name: PB24 name: PB24
definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::pad::PB24 definition: Atmel:SAME54_Drivers:0.0.1::SAME54P20A-AU::pad::PB24

@ -27,10 +27,24 @@
#define GPIO_PIN_FUNCTION_M 12 #define GPIO_PIN_FUNCTION_M 12
#define GPIO_PIN_FUNCTION_N 13 #define GPIO_PIN_FUNCTION_N 13
#define PA04 GPIO(GPIO_PORTA, 4)
#define PA08 GPIO(GPIO_PORTA, 8)
#define PA09 GPIO(GPIO_PORTA, 9)
#define PA10 GPIO(GPIO_PORTA, 10)
#define PA11 GPIO(GPIO_PORTA, 11)
#define PB10 GPIO(GPIO_PORTB, 10)
#define PB11 GPIO(GPIO_PORTB, 11)
#define PB24 GPIO(GPIO_PORTB, 24) #define PB24 GPIO(GPIO_PORTB, 24)
#define PB25 GPIO(GPIO_PORTB, 25) #define PB25 GPIO(GPIO_PORTB, 25)
#define PB26 GPIO(GPIO_PORTB, 26) #define PB26 GPIO(GPIO_PORTB, 26)
#define PB27 GPIO(GPIO_PORTB, 27) #define PB27 GPIO(GPIO_PORTB, 27)
#define PB28 GPIO(GPIO_PORTB, 28)
#define PB29 GPIO(GPIO_PORTB, 29) #define PB29 GPIO(GPIO_PORTB, 29)
#define SPI_CS PB28
#define SPI_CS_PIN GPIO_PIN(SPI_CS)
#define SPI_CS_PORT GPIO_PORT(SPI_CS)
#define SPI_CD PA04
#endif // ATMEL_START_PINS_H_INCLUDED #endif // ATMEL_START_PINS_H_INCLUDED

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save