X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Favr32_jtag.h;h=b431ef4c828aff9d815b214bf7dde2a914514ed8;hp=00f8330e423d38603b4888622804e3160e2595ba;hb=fa765f137460181fd84529df82309a12c376e71a;hpb=c3d51bf0da7333de303adf86011913a4bca96e4d diff --git a/src/target/avr32_jtag.h b/src/target/avr32_jtag.h index 00f8330e42..b431ef4c82 100644 --- a/src/target/avr32_jtag.h +++ b/src/target/avr32_jtag.h @@ -12,12 +12,11 @@ * 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, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * along with this program. If not, see . * ***************************************************************************/ -#ifndef AVR32_JTAG -#define AVR32_JTAG + +#ifndef OPENOCD_TARGET_AVR32_JTAG_H +#define OPENOCD_TARGET_AVR32_JTAG_H #define AVR32NUMCOREREGS 17 @@ -81,8 +80,7 @@ #define MTSR(sysreg, reg) (0xe3b00002 | ((reg) << 16) | sysreg) #define MFSR(reg, sysreg) (0xe1b00002 | ((reg) << 16) | sysreg) -struct avr32_jtag -{ +struct avr32_jtag { struct jtag_tap *tap; uint32_t dpc; /* Debug PC value */ }; @@ -97,11 +95,9 @@ int avr32_jtag_mwa_read(struct avr32_jtag *jtag_info, int slave, int avr32_jtag_mwa_write(struct avr32_jtag *jtag_info, int slave, uint32_t addr, uint32_t value); - int avr32_ocd_setbits(struct avr32_jtag *jtag, int reg, uint32_t bits); int avr32_ocd_clearbits(struct avr32_jtag *jtag, int reg, uint32_t bits); int avr32_jtag_exec(struct avr32_jtag *jtag_info, uint32_t inst); -#endif /* AVR32_JTAG */ - +#endif /* OPENOCD_TARGET_AVR32_JTAG_H */