X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fdsp563xx_once.h;h=8835d553dc2ac3e48668d738d0a61816e489b2a3;hb=d84c7d91960bbba0079268d165f0bb29a0da4d86;hp=1ba9c1ee7eaa70ac2d956bfd9b8aa5f5eb435973;hpb=fe0894015fd3d25593ce3a7211b1540ebfbab1f3;p=openocd.git diff --git a/src/target/dsp563xx_once.h b/src/target/dsp563xx_once.h index 1ba9c1ee7e..8835d553dc 100644 --- a/src/target/dsp563xx_once.h +++ b/src/target/dsp563xx_once.h @@ -15,13 +15,18 @@ * 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. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ***************************************************************************/ + #ifndef DSP563XX_ONCE_H #define DSP563XX_ONCE_H #include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #define DSP563XX_ONCE_OCR_EX (1<<5) #define DSP563XX_ONCE_OCR_GO (1<<6) #define DSP563XX_ONCE_OCR_RW (1<<7) @@ -57,11 +62,10 @@ #define DSP563XX_ONCE_OPABF11 0x012 /* trace buffer/inc ptr */ #define DSP563XX_ONCE_NOREG 0x01F /* no register selected */ -struct once_reg -{ - uint8_t num; - uint8_t addr; - uint8_t len; +struct once_reg { + const uint8_t num; + const uint8_t addr; + const uint8_t len; const char *name; uint32_t reg; };