]> git.sur5r.net Git - openocd/blobdiff - src/flash/nand/mx3.c
nor/str7x: review scope of symbols
[openocd] / src / flash / nand / mx3.c
index 21577a6e9334ff8841abf078359ffcfef1a56847..7d9cc8b93255c10002590ca1103a189ddebf4fa4 100644 (file)
@@ -35,7 +35,9 @@ get_next_halfword_from_sram_buffer() not tested
 #include "config.h"
 #endif
 
+#include "imp.h"
 #include "mx3.h"
+#include <target/target.h>
 
 static const char target_not_halted_err_msg[] =
        "target must be halted to use mx3 NAND flash controller";
@@ -45,7 +47,7 @@ static const char sram_buffer_bounds_err_msg[] =
        "trying to access out of SRAM buffer bound (addr=0x%" PRIx32 ")";
 static const char get_status_register_err_msg[] = "can't get NAND status";
 static uint32_t in_sram_address;
-unsigned char sign_of_sequental_byte_read;
+static unsigned char sign_of_sequental_byte_read;
 
 static int test_iomux_settings (struct target * target, uint32_t value,
                                uint32_t mask, const char *text);