1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* This file is part of the Black Magic Debug project.
*
* Copyright (C) 2019-2021 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PLATFORMS_HOSTED_CMSIS_DAP_H
#define PLATFORMS_HOSTED_CMSIS_DAP_H
#include "bmp_hosted.h"
#include "adiv5.h"
#include "cli.h"
bool dap_init(void);
void dap_exit_function(void);
void dap_adiv5_dp_init(adiv5_debug_port_s *dp);
bool dap_jtag_init(void);
bool dap_swd_init(adiv5_debug_port_s *dp);
void dap_jtag_dp_init(adiv5_debug_port_s *dp);
uint32_t dap_max_frequency(uint32_t clock);
void dap_swd_configure(uint8_t cfg);
void dap_nrst_set_val(bool assert);
#endif /* PLATFORMS_HOSTED_CMSIS_DAP_H */