diff options
Diffstat (limited to 'src/jtag')
35 files changed, 122 insertions, 88 deletions
diff --git a/src/jtag/aice/aice_interface.h b/src/jtag/aice/aice_interface.h index c9b94052..0e3f1083 100644 --- a/src/jtag/aice/aice_interface.h +++ b/src/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_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 */ diff --git a/src/jtag/aice/aice_pipe.h b/src/jtag/aice/aice_pipe.h index 3be17c54..467ad0ad 100644 --- a/src/jtag/aice/aice_pipe.h +++ b/src/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_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 */ diff --git a/src/jtag/aice/aice_port.h b/src/jtag/aice/aice_port.h index d28cf8ef..4568ce12 100644 --- a/src/jtag/aice/aice_port.h +++ b/src/jtag/aice/aice_port.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 */ diff --git a/src/jtag/aice/aice_transport.h b/src/jtag/aice/aice_transport.h index fea3d4c2..3af8bc2e 100644 --- a/src/jtag/aice/aice_transport.h +++ b/src/jtag/aice/aice_transport.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 */ diff --git a/src/jtag/aice/aice_usb.h b/src/jtag/aice/aice_usb.h index 893ba38c..2911ae56 100644 --- a/src/jtag/aice/aice_usb.h +++ b/src/jtag/aice/aice_usb.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 */ diff --git a/src/jtag/commands.h b/src/jtag/commands.h index c9d73893..947c9472 100644 --- a/src/jtag/commands.h +++ b/src/jtag/commands.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 */ diff --git a/src/jtag/driver.h b/src/jtag/driver.h index befcc9ba..ae00414c 100644 --- a/src/jtag/driver.h +++ b/src/jtag/driver.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 */ diff --git a/src/jtag/drivers/bitbang.h b/src/jtag/drivers/bitbang.h index 43268308..c5b44bfd 100644 --- a/src/jtag/drivers/bitbang.h +++ b/src/jtag/drivers/bitbang.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 */ diff --git a/src/jtag/drivers/bitq.h b/src/jtag/drivers/bitq.h index 1580d18a..df6a08d4 100644 --- a/src/jtag/drivers/bitq.h +++ b/src/jtag/drivers/bitq.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 */ diff --git a/src/jtag/drivers/ftd2xx_common.h b/src/jtag/drivers/ftd2xx_common.h index a4393701..14b84558 100644 --- a/src/jtag/drivers/ftd2xx_common.h +++ b/src/jtag/drivers/ftd2xx_common.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 */ diff --git a/src/jtag/drivers/libusb0_common.h b/src/jtag/drivers/libusb0_common.h index cfd6bddb..7163b431 100644 --- a/src/jtag/drivers/libusb0_common.h +++ b/src/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_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 */ diff --git a/src/jtag/drivers/libusb1_common.h b/src/jtag/drivers/libusb1_common.h index 8781b781..fc6526a3 100644 --- a/src/jtag/drivers/libusb1_common.h +++ b/src/jtag/drivers/libusb1_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 */ diff --git a/src/jtag/drivers/libusb_common.h b/src/jtag/drivers/libusb_common.h index 573903c0..563af10e 100644 --- a/src/jtag/drivers/libusb_common.h +++ b/src/jtag/drivers/libusb_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 */ diff --git a/src/jtag/drivers/minidriver_imp.h b/src/jtag/drivers/minidriver_imp.h index fc1ebd56..cd59a74f 100644 --- a/src/jtag/drivers/minidriver_imp.h +++ b/src/jtag/drivers/minidriver_imp.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 */ diff --git a/src/jtag/drivers/mpsse.h b/src/jtag/drivers/mpsse.h index 075ed775..651eef94 100644 --- a/src/jtag/drivers/mpsse.h +++ b/src/jtag/drivers/mpsse.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 */ diff --git a/src/jtag/drivers/rlink.h b/src/jtag/drivers/rlink.h index a591b29c..74b62580 100644 --- a/src/jtag/drivers/rlink.h +++ b/src/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_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 */ diff --git a/src/jtag/drivers/rlink_dtc_cmd.h b/src/jtag/drivers/rlink_dtc_cmd.h index 239f196a..ff9e8b25 100644 --- a/src/jtag/drivers/rlink_dtc_cmd.h +++ b/src/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_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 */ diff --git a/src/jtag/drivers/rlink_ep1_cmd.h b/src/jtag/drivers/rlink_ep1_cmd.h index 28dee0c9..3f9f2b38 100644 --- a/src/jtag/drivers/rlink_ep1_cmd.h +++ b/src/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_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 */ diff --git a/src/jtag/drivers/rlink_st7.h b/src/jtag/drivers/rlink_st7.h index 976d9017..3d573e72 100644 --- a/src/jtag/drivers/rlink_st7.h +++ b/src/jtag/drivers/rlink_st7.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 */ diff --git a/src/jtag/drivers/usb_blaster/ublast_access.h b/src/jtag/drivers/usb_blaster/ublast_access.h index 81763806..00349d2e 100644 --- a/src/jtag/drivers/usb_blaster/ublast_access.h +++ b/src/jtag/drivers/usb_blaster/ublast_access.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 */ diff --git a/src/jtag/drivers/usb_common.h b/src/jtag/drivers/usb_common.h index bf0dbcbb..4d2bd268 100644 --- a/src/jtag/drivers/usb_common.h +++ b/src/jtag/drivers/usb_common.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 */ diff --git a/src/jtag/drivers/versaloon/usbtoxxx/usbtoxxx.h b/src/jtag/drivers/versaloon/usbtoxxx/usbtoxxx.h index 1339a632..98a056a8 100644 --- a/src/jtag/drivers/versaloon/usbtoxxx/usbtoxxx.h +++ b/src/jtag/drivers/versaloon/usbtoxxx/usbtoxxx.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 */ diff --git a/src/jtag/drivers/versaloon/usbtoxxx/usbtoxxx_internal.h b/src/jtag/drivers/versaloon/usbtoxxx/usbtoxxx_internal.h index 6d8012ed..e40667e9 100644 --- a/src/jtag/drivers/versaloon/usbtoxxx/usbtoxxx_internal.h +++ b/src/jtag/drivers/versaloon/usbtoxxx/usbtoxxx_internal.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 */ diff --git a/src/jtag/drivers/versaloon/versaloon.h b/src/jtag/drivers/versaloon/versaloon.h index 74ef8085..9d92bcaa 100644 --- a/src/jtag/drivers/versaloon/versaloon.h +++ b/src/jtag/drivers/versaloon/versaloon.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 */ diff --git a/src/jtag/drivers/versaloon/versaloon_include.h b/src/jtag/drivers/versaloon/versaloon_include.h index 1bc4fe08..089056d0 100644 --- a/src/jtag/drivers/versaloon/versaloon_include.h +++ b/src/jtag/drivers/versaloon/versaloon_include.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 */ diff --git a/src/jtag/drivers/versaloon/versaloon_internal.h b/src/jtag/drivers/versaloon/versaloon_internal.h index 3f0d31f0..497b6b9c 100644 --- a/src/jtag/drivers/versaloon/versaloon_internal.h +++ b/src/jtag/drivers/versaloon/versaloon_internal.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 */ diff --git a/src/jtag/hla/hla_interface.h b/src/jtag/hla/hla_interface.h index 418b7d35..0992d1ca 100644 --- a/src/jtag/hla/hla_interface.h +++ b/src/jtag/hla/hla_interface.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 */ diff --git a/src/jtag/hla/hla_layout.h b/src/jtag/hla/hla_layout.h index 986667ff..40c1321b 100644 --- a/src/jtag/hla/hla_layout.h +++ b/src/jtag/hla/hla_layout.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 */ diff --git a/src/jtag/hla/hla_tcl.h b/src/jtag/hla/hla_tcl.h index 84c16937..ac00add5 100644 --- a/src/jtag/hla/hla_tcl.h +++ b/src/jtag/hla/hla_tcl.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 */ diff --git a/src/jtag/hla/hla_transport.h b/src/jtag/hla/hla_transport.h index 558aa435..07eb751e 100644 --- a/src/jtag/hla/hla_transport.h +++ b/src/jtag/hla/hla_transport.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 */ diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index d3fa4492..7702d6ca 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.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 */ diff --git a/src/jtag/minidriver.h b/src/jtag/minidriver.h index 6bffb25e..688c3963 100644 --- a/src/jtag/minidriver.h +++ b/src/jtag/minidriver.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 */ diff --git a/src/jtag/minidriver/minidriver_imp.h b/src/jtag/minidriver/minidriver_imp.h index 9c321afe..11d0fae7 100644 --- a/src/jtag/minidriver/minidriver_imp.h +++ b/src/jtag/minidriver/minidriver_imp.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 */ diff --git a/src/jtag/swd.h b/src/jtag/swd.h index 07fbd747..c888cc07 100644 --- a/src/jtag/swd.h +++ b/src/jtag/swd.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 */ diff --git a/src/jtag/tcl.h b/src/jtag/tcl.h index f23ec7cc..932b47ac 100644 --- a/src/jtag/tcl.h +++ b/src/jtag/tcl.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 */ |