Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.
Upstream: https://github.com/ARMmbed/DAPLink
source/board/ncs36510rf.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 "uart.h" |
Pawel Zarembski |
0:01f31e923fe2 | 18 | #include "target_board.h" |
Pawel Zarembski |
0:01f31e923fe2 | 19 | #include "target_family.h" |
Pawel Zarembski |
0:01f31e923fe2 | 20 | |
Pawel Zarembski |
0:01f31e923fe2 | 21 | static void prerun_board_config() |
Pawel Zarembski |
0:01f31e923fe2 | 22 | { |
Pawel Zarembski |
0:01f31e923fe2 | 23 | uart_enable_flow_control(false); |
Pawel Zarembski |
0:01f31e923fe2 | 24 | } |
Pawel Zarembski |
0:01f31e923fe2 | 25 | |
Pawel Zarembski |
0:01f31e923fe2 | 26 | const board_info_t g_board_info = { |
Pawel Zarembski |
0:01f31e923fe2 | 27 | .info_version = kBoardInfoVersion, |
Pawel Zarembski |
0:01f31e923fe2 | 28 | .board_id = "1200", |
Pawel Zarembski |
0:01f31e923fe2 | 29 | .family_id = kStub_SWSysReset_FamilyID, |
Pawel Zarembski |
0:01f31e923fe2 | 30 | .prerun_board_config = prerun_board_config, |
Pawel Zarembski |
0:01f31e923fe2 | 31 | .target_cfg = &target_device, |
Pawel Zarembski |
0:01f31e923fe2 | 32 | }; |