WARNING! This is a very big and serious change to internals
[openocd/libswd.git] / src / transport / swd_libswd.h
blob16a88241a30ed70b4f9b50ec5b6773ddffe2bbd8
1 /*
2 * Driver Bridge between LibSWD and OpenOCD, header file.
4 * Copyright (C) 2011-2012 Tomasz Boleslaw CEDRO
5 * cederom@tlen.pl, http://www.tomek.cedro.info
6 * All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are met:
10 * 1. Redistributions of source code must retain the above copyright notice,
11 * this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright notice,
13 * this list of conditions and the following disclaimer in the documentation
14 * and/or other materials provided with the distribution.
15 * 3. Neither the name of the Tomasz Boleslaw CEDRO nor the names of its
16 * contributors may be used to endorse or promote products derived from this
17 * software without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
24 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
27 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
29 * OF THE POSSIBILITY OF SUCH DAMAGE.*
31 * Written by Tomasz Boleslaw CEDRO <cederom@tlen.pl>, 2011-2012;
35 /** \file transport_libswd_drv_libswd.h Driver Bridge between LibSWD and OpenOCD, header file. */
37 #ifdef HAVE_CONFIG_H
38 #include "config.h"
39 #endif
41 #include <libswd.h>
43 #ifndef OOCD_TRANSPORT_SWD_LIBSWD_H
44 #define OOCD_TRANSPORT_SWD_LIBSWD_H
46 extern const struct dap_ops oocd_dap_ops_swd_libswd;
47 extern oocd_feature_t oocd_transport_swd_libswd_arm_dap_feature;
49 int oocd_transport_swd_libswd_register_commands(struct command_context *cmd_ctx);
51 #endif