|
| 1 | +/** |
| 2 | + * @file k26f_bl.c |
| 3 | + * @brief board ID and meta-data for the hardware interface circuit (HIC) based on the NXP K26F |
| 4 | + * |
| 5 | + * DAPLink Interface Firmware |
| 6 | + * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved |
| 7 | + * SPDX-License-Identifier: Apache-2.0 |
| 8 | + * |
| 9 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 10 | + * not use this file except in compliance with the License. |
| 11 | + * You may obtain a copy of the License at |
| 12 | + * |
| 13 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | + * |
| 15 | + * Unless required by applicable law or agreed to in writing, software |
| 16 | + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 17 | + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | + * See the License for the specific language governing permissions and |
| 19 | + * limitations under the License. |
| 20 | + */ |
| 21 | + |
| 22 | +#include "target_config.h" |
| 23 | +#include "daplink_addr.h" |
| 24 | +#include "compiler.h" |
| 25 | +#include "target_board.h" |
| 26 | +#include "target_family.h" |
| 27 | + |
| 28 | +// Warning - changing the interface start will break backwards compatibility |
| 29 | +COMPILER_ASSERT(DAPLINK_ROM_IF_START == KB(64)); |
| 30 | + |
| 31 | +// k26f target information |
| 32 | +target_cfg_t target_device = { |
| 33 | + .sector_size = DAPLINK_SECTOR_SIZE, |
| 34 | + // Assume memory regions are same size. Flash algo should ignore requests |
| 35 | + // when variable sized sectors exist |
| 36 | + // .sector_cnt = ((.flash_end - .flash_start) / .sector_size); |
| 37 | + .sector_cnt = (DAPLINK_ROM_IF_SIZE / DAPLINK_SECTOR_SIZE), |
| 38 | + .flash_start = DAPLINK_ROM_IF_START, |
| 39 | + .flash_end = DAPLINK_ROM_IF_START + DAPLINK_ROM_IF_SIZE, |
| 40 | + .ram_start = 0x1fff0000, |
| 41 | + .ram_end = 0x20030000, |
| 42 | + /* .flash_algo not needed for bootloader */ |
| 43 | +}; |
| 44 | + |
| 45 | +//bootloader has no family |
| 46 | +const target_family_descriptor_t *g_target_family = NULL; |
| 47 | + |
| 48 | +const board_info_t g_board_info = { |
| 49 | + .infoVersion = 0x0, |
| 50 | + .board_id = "0000", |
| 51 | + .daplink_url_name = "HELP_FAQHTM", |
| 52 | + .daplink_drive_name = "BOOTLOADER", |
| 53 | + .daplink_target_url = "https://mbed.com/daplink", |
| 54 | + .target_cfg = &target_device, |
| 55 | +}; |
0 commit comments