Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers target.c Source File

target.c

00001 /* CMSIS-DAP Interface Firmware
00002  * Copyright (c) 2009-2013 ARM Limited
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #include "target_config.h"
00018 
00019 // The file flash_blob.c must only be included in target.c
00020 #include "flash_blob.c"
00021 
00022 // target information
00023 target_cfg_t target_device = {
00024     .sectors_info                   = sectors_info,
00025     .sector_info_length             = (sizeof(sectors_info))/(sizeof(sector_info_t)),
00026     .flash_regions[0].start         = 0x00002000,
00027     .flash_regions[0].end           = 0x00151FFF,
00028     .flash_regions[0].flags         = kRegionIsDefault ,
00029     .flash_regions[0].flash_algo    = (program_target_t *) &flash,    
00030     .ram_regions[0].start           = 0x3FFF4000,
00031     .ram_regions[0].end             = 0x3FFFFFFF,
00032 };