diff options
Diffstat (limited to 'flash')
-rw-r--r-- | flash/make_firmware/make_firmware.c | 4 | ||||
-rw-r--r-- | flash/minimon/minimon.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/flash/make_firmware/make_firmware.c b/flash/make_firmware/make_firmware.c index a79f2b970d..bd838bf3bf 100644 --- a/flash/make_firmware/make_firmware.c +++ b/flash/make_firmware/make_firmware.c | |||
@@ -69,7 +69,7 @@ UINT32 Read32(UINT8* pByte) | |||
69 | } | 69 | } |
70 | 70 | ||
71 | 71 | ||
72 | UINT32 CalcCRC32 (const UINT8* buf, UINT32 len) | 72 | static UINT32 CalcCRC32 (const UINT8* buf, UINT32 len) |
73 | { | 73 | { |
74 | static const UINT32 crc_table[256] = | 74 | static const UINT32 crc_table[256] = |
75 | { // CRC32 lookup table for polynomial 0x04C11DB7 | 75 | { // CRC32 lookup table for polynomial 0x04C11DB7 |
@@ -127,7 +127,7 @@ UINT32 CalcCRC32 (const UINT8* buf, UINT32 len) | |||
127 | } | 127 | } |
128 | 128 | ||
129 | 129 | ||
130 | UINT32 PlaceImage(char* filename, UINT32 pos, UINT8* pFirmware, UINT32 limit) | 130 | static UINT32 PlaceImage(char* filename, UINT32 pos, UINT8* pFirmware, UINT32 limit) |
131 | { | 131 | { |
132 | UINT32 size, read; | 132 | UINT32 size, read; |
133 | FILE* pFile; | 133 | FILE* pFile; |
diff --git a/flash/minimon/minimon.c b/flash/minimon/minimon.c index f34e94ac62..aca9cb5523 100644 --- a/flash/minimon/minimon.c +++ b/flash/minimon/minimon.c | |||
@@ -21,7 +21,7 @@ int main(void); | |||
21 | tpMain start_vector[] __attribute__ ((section (".startvector"))) = {main}; | 21 | tpMain start_vector[] __attribute__ ((section (".startvector"))) = {main}; |
22 | 22 | ||
23 | 23 | ||
24 | UINT8 uart_read(void) | 24 | static UINT8 uart_read(void) |
25 | { | 25 | { |
26 | UINT8 byte; | 26 | UINT8 byte; |
27 | while (!(SSR1 & SCI_RDRF)); // wait for char to be available | 27 | while (!(SSR1 & SCI_RDRF)); // wait for char to be available |
@@ -31,7 +31,7 @@ UINT8 uart_read(void) | |||
31 | } | 31 | } |
32 | 32 | ||
33 | 33 | ||
34 | void uart_write(UINT8 byte) | 34 | static void uart_write(UINT8 byte) |
35 | { | 35 | { |
36 | while (!(SSR1 & SCI_TDRE)); // wait for transmit buffer empty | 36 | while (!(SSR1 & SCI_TDRE)); // wait for transmit buffer empty |
37 | TDR1 = byte; | 37 | TDR1 = byte; |