summaryrefslogtreecommitdiff
path: root/src/flash/ocl
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-09 03:10:11 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-09 09:44:33 -0800
commit81fbc637185fb0007dbe84c866794800851295b5 (patch)
treef4becaf14928d69a1141ff9bb6ed03738e14ed63 /src/flash/ocl
parent5e9d18f027954c5f5e883934d6c54cb20817ea9f (diff)
downloadopenocd_libswd-81fbc637185fb0007dbe84c866794800851295b5.tar.gz
openocd_libswd-81fbc637185fb0007dbe84c866794800851295b5.tar.bz2
openocd_libswd-81fbc637185fb0007dbe84c866794800851295b5.tar.xz
openocd_libswd-81fbc637185fb0007dbe84c866794800851295b5.zip
src/flash: remove 'extern' and wrap headers
Removes 'extern' keywords from function prototypes in the flash headers. Wraps long lines to fit into 80 columns. Adds multiple inclusion protection for s3c2xx_nand.h.
Diffstat (limited to 'src/flash/ocl')
-rw-r--r--src/flash/ocl/at91sam7x/dcc.h4
-rw-r--r--src/flash/ocl/at91sam7x/samflash.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/flash/ocl/at91sam7x/dcc.h b/src/flash/ocl/at91sam7x/dcc.h
index f41b1d27..f7d6d227 100644
--- a/src/flash/ocl/at91sam7x/dcc.h
+++ b/src/flash/ocl/at91sam7x/dcc.h
@@ -23,9 +23,9 @@
#include "platform.h"
/* debug channel read (debugger->MCU) */
-extern uint32 dcc_rd(void);
+uint32 dcc_rd(void);
/* debug channel write (MCU->debugger) */
-extern int dcc_wr(uint32 data);
+int dcc_wr(uint32 data);
#endif
diff --git a/src/flash/ocl/at91sam7x/samflash.h b/src/flash/ocl/at91sam7x/samflash.h
index 136e3147..f544942e 100644
--- a/src/flash/ocl/at91sam7x/samflash.h
+++ b/src/flash/ocl/at91sam7x/samflash.h
@@ -34,15 +34,15 @@ extern unsigned int flash_page_count;
extern unsigned int flash_page_size; /* words */
/* detect chip and set loader parameters */
-extern int flash_init(void);
+int flash_init(void);
/* program single flash page */
-extern int flash_page_program(uint32 *data, int page_num);
+int flash_page_program(uint32 *data, int page_num);
/* erase whole chip */
-extern int flash_erase_all(void);
+int flash_erase_all(void);
/* verify written data */
-extern int flash_verify(uint32 adr, unsigned int len, uint8 *src);
+int flash_verify(uint32 adr, unsigned int len, uint8 *src);
#endif