Make #include guard naming consistent
Change-Id: Ie13e8af0bb74ed290f811dcad64ad06c9d8cb4fa Signed-off-by: Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/2956 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
This commit is contained in:
committed by
Andreas Fritiofson
parent
d0e763ac7e
commit
d4b7cbff88
@@ -15,8 +15,9 @@
|
||||
* 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 __AICE_INTERFACE_H__
|
||||
#define __AICE_INTERFACE_H__
|
||||
|
||||
#ifndef OPENOCD_JTAG_AICE_AICE_INTERFACE_H
|
||||
#define OPENOCD_JTAG_AICE_AICE_INTERFACE_H
|
||||
|
||||
struct aice_interface_param_s {
|
||||
/** */
|
||||
@@ -31,4 +32,4 @@ struct aice_interface_param_s {
|
||||
|
||||
int aice_init_targets(void);
|
||||
|
||||
#endif
|
||||
#endif /* OPENOCD_JTAG_AICE_AICE_INTERFACE_H */
|
||||
|
||||
@@ -15,8 +15,9 @@
|
||||
* 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 _AICE_PIPE_H_
|
||||
#define _AICE_PIPE_H_
|
||||
|
||||
#ifndef OPENOCD_JTAG_AICE_AICE_PIPE_H
|
||||
#define OPENOCD_JTAG_AICE_AICE_PIPE_H
|
||||
|
||||
#include <helper/types.h>
|
||||
|
||||
@@ -27,4 +28,4 @@
|
||||
|
||||
extern struct aice_port_api_s aice_pipe;
|
||||
|
||||
#endif
|
||||
#endif /* OPENOCD_JTAG_AICE_AICE_PIPE_H */
|
||||
|
||||
@@ -15,8 +15,9 @@
|
||||
* 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 _AICE_PORT_H_
|
||||
#define _AICE_PORT_H_
|
||||
|
||||
#ifndef OPENOCD_JTAG_AICE_AICE_PORT_H
|
||||
#define OPENOCD_JTAG_AICE_AICE_PORT_H
|
||||
|
||||
#include <target/nds32_edm.h>
|
||||
|
||||
@@ -233,4 +234,4 @@ struct aice_port {
|
||||
/** */
|
||||
const struct aice_port *aice_port_get_list(void);
|
||||
|
||||
#endif
|
||||
#endif /* OPENOCD_JTAG_AICE_AICE_PORT_H */
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef _AICE_TRANSPORT_
|
||||
#define _AICE_TRANSPORT_
|
||||
#ifndef OPENOCD_JTAG_AICE_AICE_TRANSPORT_H
|
||||
#define OPENOCD_JTAG_AICE_AICE_TRANSPORT_H
|
||||
|
||||
extern const char *aice_transports[];
|
||||
|
||||
#endif
|
||||
#endif /* OPENOCD_JTAG_AICE_AICE_TRANSPORT_H */
|
||||
|
||||
@@ -15,8 +15,9 @@
|
||||
* 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 __AICE_USB_H__
|
||||
#define __AICE_USB_H__
|
||||
|
||||
#ifndef OPENOCD_JTAG_AICE_AICE_USB_H
|
||||
#define OPENOCD_JTAG_AICE_AICE_USB_H
|
||||
|
||||
#include "aice_port.h"
|
||||
|
||||
@@ -128,4 +129,4 @@ extern struct aice_port_api_s aice_usb_api;
|
||||
int aice_read_ctrl(uint32_t address, uint32_t *data);
|
||||
int aice_write_ctrl(uint32_t address, uint32_t data);
|
||||
|
||||
#endif
|
||||
#endif /* OPENOCD_JTAG_AICE_AICE_USB_H */
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef JTAG_COMMANDS_H
|
||||
#define JTAG_COMMANDS_H
|
||||
#ifndef OPENOCD_JTAG_COMMANDS_H
|
||||
#define OPENOCD_JTAG_COMMANDS_H
|
||||
|
||||
/**
|
||||
* The inferred type of a scan_command_s structure, indicating whether
|
||||
@@ -173,4 +173,4 @@ int jtag_scan_size(const struct scan_command *cmd);
|
||||
int jtag_read_buffer(uint8_t *buffer, const struct scan_command *cmd);
|
||||
int jtag_build_buffer(const struct scan_command *cmd, uint8_t **buffer);
|
||||
|
||||
#endif /* JTAG_COMMANDS_H */
|
||||
#endif /* OPENOCD_JTAG_COMMANDS_H */
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef JTAG_DRIVER_H
|
||||
#define JTAG_DRIVER_H
|
||||
#ifndef OPENOCD_JTAG_DRIVER_H
|
||||
#define OPENOCD_JTAG_DRIVER_H
|
||||
|
||||
struct command_context;
|
||||
|
||||
int interface_register_commands(struct command_context *ctx);
|
||||
|
||||
#endif /* JTAG_DRIVER_H */
|
||||
#endif /* OPENOCD_JTAG_DRIVER_H */
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef BITBANG_H
|
||||
#define BITBANG_H
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_BITBANG_H
|
||||
#define OPENOCD_JTAG_DRIVERS_BITBANG_H
|
||||
|
||||
#include <jtag/swd.h>
|
||||
|
||||
@@ -45,4 +45,4 @@ extern struct bitbang_interface *bitbang_interface;
|
||||
void bitbang_switch_to_swd(void);
|
||||
int bitbang_swd_switch_seq(enum swd_special_seq seq);
|
||||
|
||||
#endif /* BITBANG_H */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_BITBANG_H */
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef BITQ_H
|
||||
#define BITQ_H
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_BITQ_H
|
||||
#define OPENOCD_JTAG_DRIVERS_BITQ_H
|
||||
|
||||
#include <jtag/commands.h>
|
||||
|
||||
@@ -42,4 +42,4 @@ int bitq_execute_queue(void);
|
||||
|
||||
void bitq_cleanup(void);
|
||||
|
||||
#endif /* BITQ_H */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_BITQ_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef _FTD2XX_COMMON_H
|
||||
#define _FTD2XX_COMMON_H
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_FTD2XX_COMMON_H
|
||||
#define OPENOCD_JTAG_DRIVERS_FTD2XX_COMMON_H
|
||||
|
||||
#if ((BUILD_FT2232_FTD2XX == 1) || (BUILD_PRESTO_FTD2XX == 1) || (BUILD_USB_BLASTER_FTD2XX == 1))
|
||||
#include <ftd2xx.h>
|
||||
@@ -52,4 +52,4 @@ static const char *ftd2xx_status_string(FT_STATUS status)
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif /* _FTD2XX_COMMON_H */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_FTD2XX_COMMON_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef JTAG_LIBUSB_COMMON_H
|
||||
#define JTAG_LIBUSB_COMMON_H
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_LIBUSB0_COMMON_H
|
||||
#define OPENOCD_JTAG_DRIVERS_LIBUSB0_COMMON_H
|
||||
|
||||
#include <usb.h>
|
||||
|
||||
@@ -70,4 +70,4 @@ int jtag_libusb_choose_interface(struct jtag_libusb_device_handle *devh,
|
||||
int bclass, int subclass, int protocol);
|
||||
int jtag_libusb_get_pid(struct jtag_libusb_device *dev, uint16_t *pid);
|
||||
|
||||
#endif /* JTAG_USB_COMMON_H */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_LIBUSB0_COMMON_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef JTAG_LIBUSB_COMMON_H
|
||||
#define JTAG_LIBUSB_COMMON_H
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_LIBUSB1_COMMON_H
|
||||
#define OPENOCD_JTAG_DRIVERS_LIBUSB1_COMMON_H
|
||||
|
||||
#include <libusb.h>
|
||||
|
||||
@@ -77,4 +77,4 @@ int jtag_libusb_choose_interface(struct jtag_libusb_device_handle *devh,
|
||||
int bclass, int subclass, int protocol);
|
||||
int jtag_libusb_get_pid(struct jtag_libusb_device *dev, uint16_t *pid);
|
||||
|
||||
#endif /* JTAG_USB_COMMON_H */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_LIBUSB1_COMMON_H */
|
||||
|
||||
@@ -15,8 +15,13 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_LIBUSB_COMMON_H
|
||||
#define OPENOCD_JTAG_DRIVERS_LIBUSB_COMMON_H
|
||||
|
||||
#ifdef HAVE_LIBUSB1
|
||||
#include <libusb1_common.h>
|
||||
#else
|
||||
#include <libusb0_common.h>
|
||||
#endif
|
||||
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_LIBUSB_COMMON_H */
|
||||
|
||||
@@ -16,8 +16,9 @@
|
||||
* 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 MINIDRIVER_IMP_H
|
||||
#define MINIDRIVER_IMP_H
|
||||
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_MINIDRIVER_IMP_H
|
||||
#define OPENOCD_JTAG_DRIVERS_MINIDRIVER_IMP_H
|
||||
|
||||
#include <jtag/commands.h>
|
||||
|
||||
@@ -37,4 +38,4 @@ void jtag_add_callback4(jtag_callback_t f, jtag_callback_data_t data0,
|
||||
jtag_callback_data_t data1, jtag_callback_data_t data2,
|
||||
jtag_callback_data_t data3);
|
||||
|
||||
#endif /* MINIDRIVER_IMP_H */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_MINIDRIVER_IMP_H */
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MPSSE_H_
|
||||
#define MPSSE_H_
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_MPSSE_H
|
||||
#define OPENOCD_JTAG_DRIVERS_MPSSE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "helper/binarybuffer.h"
|
||||
@@ -75,4 +75,4 @@ int mpsse_set_frequency(struct mpsse_ctx *ctx, int frequency);
|
||||
int mpsse_flush(struct mpsse_ctx *ctx);
|
||||
void mpsse_purge(struct mpsse_ctx *ctx);
|
||||
|
||||
#endif /* MPSSE_H_ */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_MPSSE_H */
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_RLINK_H
|
||||
#define OPENOCD_JTAG_DRIVERS_RLINK_H
|
||||
|
||||
struct rlink_speed_table {
|
||||
uint8_t const *dtc;
|
||||
uint16_t dtc_size;
|
||||
@@ -25,3 +28,5 @@ struct rlink_speed_table {
|
||||
|
||||
extern const struct rlink_speed_table rlink_speed_table[];
|
||||
extern const size_t rlink_speed_table_size;
|
||||
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_RLINK_H */
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_RLINK_DTC_CMD_H
|
||||
#define OPENOCD_JTAG_DRIVERS_RLINK_DTC_CMD_H
|
||||
|
||||
/* A command position with the high nybble of 0x0 is reserved for an error condition.
|
||||
* If executed, it stops the DTC and raises the ERROR flag */
|
||||
|
||||
@@ -69,3 +72,5 @@
|
||||
/* A shared status byte is updated with bit 0 set when this has happened,
|
||||
* and it is cleared when a new command buffer becomes ready.
|
||||
* The host can poll that byte to see when it is safe to read a reply. */
|
||||
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_RLINK_DTC_CMD_H */
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_RLINK_EP1_CMD_H
|
||||
#define OPENOCD_JTAG_DRIVERS_RLINK_EP1_CMD_H
|
||||
|
||||
/*
|
||||
* Command opcodes that can be sent over endpoint 1.
|
||||
* This codifies information provided by Rob Brown <rob@cobbleware.com>.
|
||||
@@ -53,3 +56,5 @@
|
||||
#define EP1_CMD_MEMORY_WRITE (0x29)
|
||||
#define EP1_CMD_GET_FWREV (0xfe)
|
||||
#define EP1_CMD_GET_SERIAL (0xff)
|
||||
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_RLINK_EP1_CMD_H */
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_RLINK_ST7_H
|
||||
#define OPENOCD_JTAG_DRIVERS_RLINK_ST7_H
|
||||
|
||||
#define ST7_FOSC (12 * 1000000)
|
||||
|
||||
/* This is not a complete enumeration of ST7 registers, but it is sufficient for this interface driver. */
|
||||
@@ -110,3 +113,5 @@
|
||||
#define ST7_PF5 (1 << 5)
|
||||
#define ST7_PF6 (1 << 6)
|
||||
#define ST7_PF7 (1 << 7)
|
||||
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_RLINK_ST7_H */
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef JTAG_UBLAST_ACCESS_H
|
||||
#define JTAG_UBLAST_ACCESS_H
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_USB_BLASTER_UBLAST_ACCESS_H
|
||||
#define OPENOCD_JTAG_DRIVERS_USB_BLASTER_UBLAST_ACCESS_H
|
||||
|
||||
#include <libusb_common.h>
|
||||
|
||||
@@ -71,4 +71,4 @@ extern struct ublast_lowlevel *ublast_register_ftdi(void);
|
||||
extern struct ublast_lowlevel *ublast_register_ftd2xx(void);
|
||||
extern struct ublast_lowlevel *ublast2_register_libusb(void);
|
||||
|
||||
#endif /* JTAG_UBLAST_ACCESS_H */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_USB_BLASTER_UBLAST_ACCESS_H */
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef JTAG_USB_COMMON_H
|
||||
#define JTAG_USB_COMMON_H
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_USB_COMMON_H
|
||||
#define OPENOCD_JTAG_DRIVERS_USB_COMMON_H
|
||||
|
||||
#include <usb.h>
|
||||
|
||||
int jtag_usb_open(const uint16_t vids[], const uint16_t pids[],
|
||||
struct usb_dev_handle **out);
|
||||
|
||||
#endif /* JTAG_USB_COMMON_H */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_USB_COMMON_H */
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef __USBTOXXX_H_INCLUDED__
|
||||
#define __USBTOXXX_H_INCLUDED__
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_H
|
||||
#define OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_H
|
||||
|
||||
RESULT usbtoxxx_init(void);
|
||||
RESULT usbtoxxx_fini(void);
|
||||
@@ -234,4 +234,4 @@ RESULT usbtopwm_config(uint8_t interface_index, uint16_t kHz, uint8_t mode);
|
||||
RESULT usbtopwm_out(uint8_t interface_index, uint16_t count, uint16_t *rate);
|
||||
RESULT usbtopwm_in(uint8_t interface_index, uint16_t count, uint16_t *rate);
|
||||
|
||||
#endif /* __USBTOXXX_H_INCLUDED__ */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_H */
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef __USBTOXXX_INTERNAL_H_INCLUDED__
|
||||
#define __USBTOXXX_INTERNAL_H_INCLUDED__
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_INTERNAL_H
|
||||
#define OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_INTERNAL_H
|
||||
|
||||
/* USB_TO_XXX USB Commands */
|
||||
/* Page0 */
|
||||
@@ -158,4 +158,4 @@ RESULT usbtoxxx_add_command(uint8_t type, uint8_t cmd, uint8_t *cmdbuf,
|
||||
/* USB_TO_GPIO */
|
||||
#define USB_TO_GPIO_DIR_MSK 0x01
|
||||
|
||||
#endif /* __USBTOXXX_INTERNAL_H_INCLUDED__ */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_INTERNAL_H */
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef __VERSALOON_H_INCLUDED__
|
||||
#define __VERSALOON_H_INCLUDED__
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_H
|
||||
#define OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_H
|
||||
|
||||
#include <libusb.h>
|
||||
|
||||
@@ -109,5 +109,4 @@ struct versaloon_interface_t {
|
||||
extern struct versaloon_interface_t versaloon_interface;
|
||||
extern libusb_device_handle *versaloon_usb_device_handle;
|
||||
|
||||
#endif /* __VERSALOON_H_INCLUDED__ */
|
||||
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_H */
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INCLUDE_H
|
||||
#define OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INCLUDE_H
|
||||
|
||||
/* This file is used to include different header and macros */
|
||||
/* according to different platform */
|
||||
#include <jtag/interface.h>
|
||||
@@ -95,3 +98,5 @@
|
||||
#define SET_LE_U32(p, v) SET_U32_LSBFIRST(p, v)
|
||||
#define SET_BE_U16(p, v) SET_U16_MSBFIRST(p, v)
|
||||
#define SET_BE_U32(p, v) SET_U32_MSBFIRST(p, v)
|
||||
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INCLUDE_H */
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef __VERSALOON_INTERNAL_H_INCLUDED__
|
||||
#define __VERSALOON_INTERNAL_H_INCLUDED__
|
||||
#ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INTERNAL_H
|
||||
#define OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INTERNAL_H
|
||||
|
||||
#define VERSALOON_PRODUCTSTRING_INDEX 2
|
||||
#define VERSALOON_SERIALSTRING_INDEX 3
|
||||
@@ -107,4 +107,4 @@ extern uint8_t *versaloon_buf;
|
||||
extern uint8_t *versaloon_cmd_buf;
|
||||
extern uint16_t versaloon_buf_size;
|
||||
|
||||
#endif /* __VERSALOON_INTERNAL_H_INCLUDED__ */
|
||||
#endif /* OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INTERNAL_H */
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef _HL_INTERFACE
|
||||
#define _HL_INTERFACE
|
||||
#ifndef OPENOCD_JTAG_HLA_HLA_INTERFACE_H
|
||||
#define OPENOCD_JTAG_HLA_HLA_INTERFACE_H
|
||||
|
||||
/** */
|
||||
struct target;
|
||||
@@ -65,4 +65,4 @@ int hl_interface_init_target(struct target *t);
|
||||
int hl_interface_init_reset(void);
|
||||
int hl_interface_override_target(const char **targetname);
|
||||
|
||||
#endif /* _HL_INTERFACE */
|
||||
#endif /* OPENOCD_JTAG_HLA_HLA_INTERFACE_H */
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef _HL_LAYOUT_H
|
||||
#define _HL_LAYOUT_H
|
||||
#ifndef OPENOCD_JTAG_HLA_HLA_LAYOUT_H
|
||||
#define OPENOCD_JTAG_HLA_HLA_LAYOUT_H
|
||||
|
||||
#include <target/armv7m_trace.h>
|
||||
|
||||
@@ -125,4 +125,4 @@ const struct hl_layout *hl_layout_get_list(void);
|
||||
/** */
|
||||
int hl_layout_init(struct hl_interface_s *adapter);
|
||||
|
||||
#endif /* _HL_LAYOUT_H */
|
||||
#endif /* OPENOCD_JTAG_HLA_HLA_LAYOUT_H */
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef _HL_TCL_
|
||||
#define _HL_TCL_
|
||||
#ifndef OPENOCD_JTAG_HLA_HLA_TCL_H
|
||||
#define OPENOCD_JTAG_HLA_HLA_TCL_H
|
||||
|
||||
/** */
|
||||
int jim_hl_newtap(Jim_Interp *interp, int argc, Jim_Obj * const *argv);
|
||||
|
||||
#endif /* _HL_TCL_ */
|
||||
#endif /* OPENOCD_JTAG_HLA_HLA_TCL_H */
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef _HL_TRANSPORT
|
||||
#define _HL_TRANSPORT
|
||||
#ifndef OPENOCD_JTAG_HLA_HLA_TRANSPORT_H
|
||||
#define OPENOCD_JTAG_HLA_HLA_TRANSPORT_H
|
||||
|
||||
enum hl_transports {
|
||||
HL_TRANSPORT_UNKNOWN = 0,
|
||||
@@ -29,4 +29,4 @@ enum hl_transports {
|
||||
HL_TRANSPORT_SWIM
|
||||
};
|
||||
|
||||
#endif /* _HL_TRANSPORT */
|
||||
#endif /* OPENOCD_JTAG_HLA_HLA_TRANSPORT_H */
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef JTAG_H
|
||||
#define JTAG_H
|
||||
#ifndef OPENOCD_JTAG_JTAG_H
|
||||
#define OPENOCD_JTAG_JTAG_H
|
||||
|
||||
#include <helper/binarybuffer.h>
|
||||
#include <helper/log.h>
|
||||
@@ -646,4 +646,4 @@ bool transport_is_jtag(void);
|
||||
|
||||
int jim_jtag_newtap(Jim_Interp *interp, int argc, Jim_Obj *const *argv);
|
||||
|
||||
#endif /* JTAG_H */
|
||||
#endif /* OPENOCD_JTAG_JTAG_H */
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MINIDRIVER_H
|
||||
#define MINIDRIVER_H
|
||||
#ifndef OPENOCD_JTAG_MINIDRIVER_H
|
||||
#define OPENOCD_JTAG_MINIDRIVER_H
|
||||
|
||||
/**
|
||||
* @page jtagminidriver JTAG Mini-Driver
|
||||
@@ -87,4 +87,4 @@ int interface_jtag_execute_queue(void);
|
||||
*/
|
||||
int default_interface_jtag_execute_queue(void);
|
||||
|
||||
#endif /* MINIDRIVER_H */
|
||||
#endif /* OPENOCD_JTAG_MINIDRIVER_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MINIDRIVER_IMP_H
|
||||
#define MINIDRIVER_IMP_H
|
||||
#ifndef OPENOCD_JTAG_MINIDRIVER_MINIDRIVER_IMP_H
|
||||
#define OPENOCD_JTAG_MINIDRIVER_MINIDRIVER_IMP_H
|
||||
|
||||
#include <jtag/jtag_minidriver.h>
|
||||
|
||||
@@ -27,4 +27,4 @@
|
||||
#define jtag_add_callback4(callback, in, data1, data2, data3) \
|
||||
interface_jtag_add_callback4(callback, in, data1, data2, data3)
|
||||
|
||||
#endif /* MINIDRIVER_IMP_H */
|
||||
#endif /* OPENOCD_JTAG_MINIDRIVER_MINIDRIVER_IMP_H */
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef SWD_H
|
||||
#define SWD_H
|
||||
#ifndef OPENOCD_JTAG_SWD_H
|
||||
#define OPENOCD_JTAG_SWD_H
|
||||
|
||||
#include <target/arm_adi_v5.h>
|
||||
|
||||
@@ -213,4 +213,4 @@ void swd_add_reset(int req_srst);
|
||||
|
||||
bool transport_is_swd(void);
|
||||
|
||||
#endif /* SWD_H */
|
||||
#endif /* OPENOCD_JTAG_SWD_H */
|
||||
|
||||
@@ -26,12 +26,12 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef _JTAG_TCL_H_
|
||||
#define _JTAG_TCL_H_
|
||||
#ifndef OPENOCD_JTAG_TCL_H
|
||||
#define OPENOCD_JTAG_TCL_H
|
||||
|
||||
int jim_jtag_configure(Jim_Interp *interp, int argc,
|
||||
Jim_Obj * const *argv);
|
||||
int jim_jtag_tap_enabler(Jim_Interp *interp, int argc,
|
||||
Jim_Obj * const *argv);
|
||||
|
||||
#endif
|
||||
#endif /* OPENOCD_JTAG_TCL_H */
|
||||
|
||||
Reference in New Issue
Block a user