summaryrefslogtreecommitdiff
path: root/bootloader/x1000/x1000bootloader.h
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/x1000/x1000bootloader.h')
-rw-r--r--bootloader/x1000/x1000bootloader.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootloader/x1000/x1000bootloader.h b/bootloader/x1000/x1000bootloader.h
index 84feded9b3..c5984c9a91 100644
--- a/bootloader/x1000/x1000bootloader.h
+++ b/bootloader/x1000/x1000bootloader.h
@@ -24,8 +24,11 @@
24 24
25#include "config.h" 25#include "config.h"
26#include <stddef.h> 26#include <stddef.h>
27#include <stdint.h>
27#include <stdbool.h> 28#include <stdbool.h>
28 29
30struct uimage_header;
31
29#if defined(FIIO_M3K) 32#if defined(FIIO_M3K)
30# define BL_RECOVERY BUTTON_VOL_UP 33# define BL_RECOVERY BUTTON_VOL_UP
31# define BL_UP BUTTON_VOL_UP 34# define BL_UP BUTTON_VOL_UP
@@ -108,6 +111,10 @@ int check_disk(bool wait);
108void usb_mode(void); 111void usb_mode(void);
109 112
110int load_rockbox(const char* filename, size_t* sizep); 113int load_rockbox(const char* filename, size_t* sizep);
114int load_uimage_file(const char* filename,
115 struct uimage_header* uh, size_t* sizep);
116int load_uimage_flash(uint32_t addr, uint32_t length,
117 struct uimage_header* uh, size_t* sizep);
111 118
112void recovery_menu(void) __attribute__((noreturn)); 119void recovery_menu(void) __attribute__((noreturn));
113 120