summaryrefslogtreecommitdiff
path: root/src/target/embeddedice.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-04-10 16:44:54 +0800
committerAntonio Borneo <borneo.antonio@gmail.com>2010-04-10 16:44:54 +0800
commit263b4b9057b4e34eec8b39c4f165d370cb51a9e3 (patch)
treea7c074c1d22eb68870b32b43e2dbe916d2a22750 /src/target/embeddedice.c
parent3f0b17e48af9e3481084e1e9e697012b6824df43 (diff)
downloadopenocd+libswd-263b4b9057b4e34eec8b39c4f165d370cb51a9e3.tar.gz
openocd+libswd-263b4b9057b4e34eec8b39c4f165d370cb51a9e3.tar.bz2
openocd+libswd-263b4b9057b4e34eec8b39c4f165d370cb51a9e3.tar.xz
openocd+libswd-263b4b9057b4e34eec8b39c4f165d370cb51a9e3.zip
EMBEDDEDICE: review scope of functions
Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/target/embeddedice.c')
-rw-r--r--src/target/embeddedice.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/embeddedice.c b/src/target/embeddedice.c
index 69f3a768..7ef4ac42 100644
--- a/src/target/embeddedice.c
+++ b/src/target/embeddedice.c
@@ -47,6 +47,8 @@
* core entered debug mode.
*/
+static int embeddedice_set_reg_w_exec(struct reg *reg, uint8_t *buf);
+
/*
* From: ARM9E-S TRM, DDI 0165, table C-4 (and similar, for other cores)
*/
@@ -469,7 +471,7 @@ void embeddedice_set_reg(struct reg *reg, uint32_t value)
* Write an EmbeddedICE register, updating the register cache.
* Uses embeddedice_set_reg(); not queued.
*/
-int embeddedice_set_reg_w_exec(struct reg *reg, uint8_t *buf)
+static int embeddedice_set_reg_w_exec(struct reg *reg, uint8_t *buf)
{
int retval;