Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.
Upstream: https://github.com/ARMmbed/DAPLink
source/family/onsemi/ncs36510/target.c@0:01f31e923fe2, 2020-04-07 (annotated)
- Committer:
- Pawel Zarembski
- Date:
- Tue Apr 07 12:55:42 2020 +0200
- Revision:
- 0:01f31e923fe2
hani: DAPLink with reset workaround
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Pawel Zarembski |
0:01f31e923fe2 | 1 | /* CMSIS-DAP Interface Firmware |
Pawel Zarembski |
0:01f31e923fe2 | 2 | * Copyright (c) 2009-2013 ARM Limited |
Pawel Zarembski |
0:01f31e923fe2 | 3 | * |
Pawel Zarembski |
0:01f31e923fe2 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Pawel Zarembski |
0:01f31e923fe2 | 5 | * you may not use this file except in compliance with the License. |
Pawel Zarembski |
0:01f31e923fe2 | 6 | * You may obtain a copy of the License at |
Pawel Zarembski |
0:01f31e923fe2 | 7 | * |
Pawel Zarembski |
0:01f31e923fe2 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Pawel Zarembski |
0:01f31e923fe2 | 9 | * |
Pawel Zarembski |
0:01f31e923fe2 | 10 | * Unless required by applicable law or agreed to in writing, software |
Pawel Zarembski |
0:01f31e923fe2 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Pawel Zarembski |
0:01f31e923fe2 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Pawel Zarembski |
0:01f31e923fe2 | 13 | * See the License for the specific language governing permissions and |
Pawel Zarembski |
0:01f31e923fe2 | 14 | * limitations under the License. |
Pawel Zarembski |
0:01f31e923fe2 | 15 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 16 | |
Pawel Zarembski |
0:01f31e923fe2 | 17 | #include "target_config.h" |
Pawel Zarembski |
0:01f31e923fe2 | 18 | |
Pawel Zarembski |
0:01f31e923fe2 | 19 | // The file flash_blob.c must only be included in target.c |
Pawel Zarembski |
0:01f31e923fe2 | 20 | #include "flash_blob.c" |
Pawel Zarembski |
0:01f31e923fe2 | 21 | |
Pawel Zarembski |
0:01f31e923fe2 | 22 | // target information |
Pawel Zarembski |
0:01f31e923fe2 | 23 | target_cfg_t target_device = { |
Pawel Zarembski |
0:01f31e923fe2 | 24 | .sectors_info = sectors_info, |
Pawel Zarembski |
0:01f31e923fe2 | 25 | .sector_info_length = (sizeof(sectors_info))/(sizeof(sector_info_t)), |
Pawel Zarembski |
0:01f31e923fe2 | 26 | .flash_regions[0].start = 0x00002000, |
Pawel Zarembski |
0:01f31e923fe2 | 27 | .flash_regions[0].end = 0x00151FFF, |
Pawel Zarembski |
0:01f31e923fe2 | 28 | .flash_regions[0].flags = kRegionIsDefault, |
Pawel Zarembski |
0:01f31e923fe2 | 29 | .flash_regions[0].flash_algo = (program_target_t *) &flash, |
Pawel Zarembski |
0:01f31e923fe2 | 30 | .ram_regions[0].start = 0x3FFF4000, |
Pawel Zarembski |
0:01f31e923fe2 | 31 | .ram_regions[0].end = 0x3FFFFFFF, |
Pawel Zarembski |
0:01f31e923fe2 | 32 | }; |