Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
target.c
00001 00002 /** 00003 * @file target.c 00004 * @brief Target information for the Musca B qspi 00005 * 00006 * DAPLink Interface Firmware 00007 * Copyright (c) 2016-2019, ARM Limited, All Rights Reserved 00008 * SPDX-License-Identifier: Apache-2.0 00009 * 00010 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00011 * not use this file except in compliance with the License. 00012 * You may obtain a copy of the License at 00013 * 00014 * http://www.apache.org/licenses/LICENSE-2.0 00015 * 00016 * Unless required by applicable law or agreed to in writing, software 00017 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00018 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00019 * See the License for the specific language governing permissions and 00020 * limitations under the License. 00021 */ 00022 00023 #include "target_config.h" 00024 #include "region_defs.h" 00025 00026 // The file flash_blob.c must only be included in target.c 00027 #include "flash_blob.c" 00028 00029 00030 // target information 00031 target_cfg_t target_device = { 00032 .sectors_info = sectors_info, 00033 .sector_info_length = (sizeof(sectors_info))/(sizeof(sector_info_t)), 00034 00035 .flash_regions[0].start = (MUSCA_B_NS_FLASH_START), 00036 .flash_regions[0].end = (MUSCA_B_NS_FLASH_START + MUSCA_B_FLASH_SIZE), 00037 #if (defined MUSCA_B_BOOT_QSPI_FLASH) 00038 .flash_regions[0].flags = kRegionIsDefault , 00039 #endif 00040 .flash_regions[0].flash_algo = (program_target_t *) &qspi_flash, 00041 00042 .flash_regions[1].start = (MUSCA_B_S_FLASH_START), 00043 .flash_regions[1].end = (MUSCA_B_S_FLASH_START + MUSCA_B_FLASH_SIZE), 00044 .flash_regions[1].flash_algo = (program_target_t *) &qspi_flash, 00045 00046 .flash_regions[2].start = (MUSCA_B_NS_EFLASH0_START), 00047 .flash_regions[2].end = (MUSCA_B_NS_EFLASH0_START + MUSCA_B_EFLASH0_SIZE), 00048 .flash_regions[2].flash_algo = (program_target_t *) &eflash, 00049 #if (defined MUSCA_B_BOOT_EFLASH0) 00050 .flash_regions[2].flags = kRegionIsDefault , 00051 #endif 00052 00053 .flash_regions[3].start = (MUSCA_B_S_EFLASH0_START), 00054 .flash_regions[3].end = (MUSCA_B_S_EFLASH0_START + MUSCA_B_EFLASH0_SIZE), 00055 .flash_regions[3].flash_algo = (program_target_t *) &eflash, 00056 00057 .flash_regions[4].start = (MUSCA_B_NS_EFLASH1_START), 00058 .flash_regions[4].end = (MUSCA_B_NS_EFLASH1_START + MUSCA_B_EFLASH1_SIZE), 00059 .flash_regions[4].flash_algo = (program_target_t *) &eflash, 00060 #if (defined MUSCA_B_BOOT_EFLASH1) 00061 .flash_regions[4].flags = kRegionIsDefault , 00062 #endif 00063 00064 .flash_regions[5].start = (MUSCA_B_S_EFLASH1_START), 00065 .flash_regions[5].end = (MUSCA_B_S_EFLASH1_START + MUSCA_B_EFLASH1_SIZE), 00066 .flash_regions[5].flash_algo = (program_target_t *) &eflash, 00067 00068 .flash_regions[6].start = (MUSCA_B_NS_CODE_SRAM_START), 00069 .flash_regions[6].end = (MUSCA_B_NS_CODE_SRAM_START + MUSCA_B_CODE_SRAM_SIZE), 00070 #if (defined MUSCA_B_BOOT_CODE_SRAM) 00071 .flash_regions[6].flags = kRegionIsDefault , 00072 #endif 00073 00074 .flash_regions[7].start = (MUSCA_B_S_CODE_SRAM_START), 00075 .flash_regions[7].end = (MUSCA_B_S_CODE_SRAM_START + MUSCA_B_CODE_SRAM_SIZE), 00076 00077 .ram_regions[0].start = (MUSCA_B_NS_RAM_START), 00078 .ram_regions[0].end = (MUSCA_B_NS_RAM_START + MUSCA_B_RAM_SIZE), 00079 .ram_regions[1].start = (MUSCA_B_S_RAM_START), 00080 .ram_regions[1].end = (MUSCA_B_S_RAM_START + MUSCA_B_RAM_SIZE), 00081 };
Generated on Tue Jul 12 2022 15:37:24 by
1.7.2