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.
This commit is contained in:
Zachary T Welch
2009-11-09 03:10:11 -08:00
parent 5e9d18f027
commit 81fbc63718
7 changed files with 68 additions and 44 deletions

View File

@@ -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

View File

@@ -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