summaryrefslogtreecommitdiff
path: root/bootloader/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/common.h')
-rw-r--r--bootloader/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootloader/common.h b/bootloader/common.h
index adb833fd1d..3607dd0f68 100644
--- a/bootloader/common.h
+++ b/bootloader/common.h
@@ -31,9 +31,15 @@
31/* Set this to true to enable lcd_update() in the printf function */ 31/* Set this to true to enable lcd_update() in the printf function */
32extern bool verbose; 32extern bool verbose;
33 33
34/* Error types */
35#define EATA -1
36#define EDISK -2
37#define EBOOTFILE -3
38
34/* Functions common to all bootloaders */ 39/* Functions common to all bootloaders */
35void reset_screen(void); 40void reset_screen(void);
36void printf(const char *format, ...); 41void printf(const char *format, ...);
37char *strerror(int error); 42char *strerror(int error);
43void error(int errortype, int error);
38int load_firmware(unsigned char* buf, char* firmware, int buffer_size); 44int load_firmware(unsigned char* buf, char* firmware, int buffer_size);
39int load_raw_firmware(unsigned char* buf, char* firmware, int buffer_size); 45int load_raw_firmware(unsigned char* buf, char* firmware, int buffer_size);