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
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user