TARGET/DSP563XX_ONCE: review scope of functions

Add "static" qualifier to private functions.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Antonio Borneo 2010-04-10 22:12:20 +08:00
parent b2495c0101
commit 11fd673f0c
2 changed files with 2 additions and 8 deletions

View File

@ -30,7 +30,7 @@
#include "dsp563xx_once.h" #include "dsp563xx_once.h"
/** single word instruction */ /** single word instruction */
int dsp563xx_once_ir_exec(struct jtag_tap *tap, uint8_t instr, uint8_t rw, static int dsp563xx_once_ir_exec(struct jtag_tap *tap, uint8_t instr, uint8_t rw,
uint8_t go, uint8_t ex) uint8_t go, uint8_t ex)
{ {
dsp563xx_write_dr_u8(tap, 0, dsp563xx_write_dr_u8(tap, 0,
@ -41,7 +41,7 @@ int dsp563xx_once_ir_exec(struct jtag_tap *tap, uint8_t instr, uint8_t rw,
} }
/** single word instruction */ /** single word instruction */
int dsp563xx_once_ir_exec_nq(struct jtag_tap *tap, uint8_t instr, uint8_t rw, static int dsp563xx_once_ir_exec_nq(struct jtag_tap *tap, uint8_t instr, uint8_t rw,
uint8_t go, uint8_t ex) uint8_t go, uint8_t ex)
{ {
dsp563xx_write_dr_u8(tap, 0, dsp563xx_write_dr_u8(tap, 0,

View File

@ -57,12 +57,6 @@
#define DSP563XX_ONCE_OPABEX 0x011 /* trace buffer/inc ptr */ #define DSP563XX_ONCE_OPABEX 0x011 /* trace buffer/inc ptr */
#define DSP563XX_ONCE_NOREG 0x01F /* no register selected */ #define DSP563XX_ONCE_NOREG 0x01F /* no register selected */
/** single word instruction */
int dsp563xx_once_ir_exec(struct jtag_tap *tap, uint8_t instr, uint8_t rw,
uint8_t go, uint8_t ex);
/** single word instruction */
int dsp563xx_once_ir_exec_nq(struct jtag_tap *tap, uint8_t instr, uint8_t rw,
uint8_t go, uint8_t ex);
/** once read register */ /** once read register */
int dsp563xx_once_reg_read(struct jtag_tap *tap, uint8_t reg, uint32_t * data); int dsp563xx_once_reg_read(struct jtag_tap *tap, uint8_t reg, uint32_t * data);
/** once write register */ /** once write register */