diff options
Diffstat (limited to 'firmware/export/scroll_engine.h')
-rw-r--r-- | firmware/export/scroll_engine.h | 40 |
1 files changed, 34 insertions, 6 deletions
diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h index 2a1a510dbd..ba7cc3c4d5 100644 --- a/firmware/export/scroll_engine.h +++ b/firmware/export/scroll_engine.h | |||
@@ -38,6 +38,11 @@ extern void lcd_bidir_scroll(int threshold); | |||
38 | extern void lcd_scroll_speed(int speed); | 38 | extern void lcd_scroll_speed(int speed); |
39 | extern void lcd_scroll_delay(int ms); | 39 | extern void lcd_scroll_delay(int ms); |
40 | 40 | ||
41 | #ifdef HAVE_REMOTE_LCD | ||
42 | extern void lcd_remote_scroll_speed(int speed); | ||
43 | extern void lcd_remote_scroll_delay(int ms); | ||
44 | #endif | ||
45 | |||
41 | #ifdef BOOTLOADER | 46 | #ifdef BOOTLOADER |
42 | static inline void lcd_scroll_stop(void) | 47 | static inline void lcd_scroll_stop(void) |
43 | { | 48 | { |
@@ -62,22 +67,45 @@ static inline bool lcd_scroll_now(struct scrollinfo *scroll) | |||
62 | (void)scroll; | 67 | (void)scroll; |
63 | return false; | 68 | return false; |
64 | } | 69 | } |
70 | |||
71 | #ifdef HAVE_REMOTE_LCD | ||
72 | static inline void lcd_remote_scroll_stop(void) | ||
73 | { | ||
74 | } | ||
75 | |||
76 | static inline void lcd_remote_scroll_stop_viewport(const struct viewport *vp) | ||
77 | { | ||
78 | (void)vp; | ||
79 | } | ||
80 | |||
81 | static inline void lcd_remote_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height) | ||
82 | { | ||
83 | (void)vp; | ||
84 | (void)x; | ||
85 | (void)y; | ||
86 | (void)width; | ||
87 | (void)height; | ||
88 | } | ||
89 | |||
90 | static inline bool lcd_remote_scroll_now(struct scrollinfo *scroll) | ||
91 | { | ||
92 | (void)scroll; | ||
93 | return false; | ||
94 | } | ||
95 | #endif /* HAVE_REMOTE_LCD */ | ||
65 | #else | 96 | #else |
66 | extern void lcd_scroll_stop(void); | 97 | extern void lcd_scroll_stop(void); |
67 | extern void lcd_scroll_stop_viewport(const struct viewport *vp); | 98 | extern void lcd_scroll_stop_viewport(const struct viewport *vp); |
68 | extern void lcd_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height); | 99 | extern void lcd_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height); |
69 | extern bool lcd_scroll_now(struct scrollinfo *scroll); | 100 | extern bool lcd_scroll_now(struct scrollinfo *scroll); |
70 | #endif | ||
71 | #ifdef HAVE_REMOTE_LCD | ||
72 | extern void lcd_remote_scroll_speed(int speed); | ||
73 | extern void lcd_remote_scroll_delay(int ms); | ||
74 | 101 | ||
102 | #ifdef HAVE_REMOTE_LCD | ||
75 | extern void lcd_remote_scroll_stop(void); | 103 | extern void lcd_remote_scroll_stop(void); |
76 | extern void lcd_remote_scroll_stop_viewport(const struct viewport *vp); | 104 | extern void lcd_remote_scroll_stop_viewport(const struct viewport *vp); |
77 | extern void lcd_remote_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height); | 105 | extern void lcd_remote_scroll_stop_viewport_rect(const struct viewport *vp, int x, int y, int width, int height); |
78 | extern bool lcd_remote_scroll_now(struct scrollinfo *scroll); | 106 | extern bool lcd_remote_scroll_now(struct scrollinfo *scroll); |
79 | #endif | 107 | #endif /* HAVE_REMOTE_LCD */ |
80 | 108 | #endif /* BOOTLOADER */ | |
81 | 109 | ||
82 | 110 | ||
83 | /* internal usage, but in multiple drivers | 111 | /* internal usage, but in multiple drivers |