summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/backlight-target.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-03 18:17:11 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-09 12:41:18 -0400
commitaabc8aca47e60cf745a34af28c50679fcb967910 (patch)
treecfe17f546aae9785fb13482f39527e2da0597ccb /firmware/target/hosted/backlight-target.h
parent4231c2c83f2b5331e3e38b10a308ee3752315f9c (diff)
downloadrockbox-aabc8aca47e60cf745a34af28c50679fcb967910.tar.gz
rockbox-aabc8aca47e60cf745a34af28c50679fcb967910.tar.bz2
rockbox-aabc8aca47e60cf745a34af28c50679fcb967910.zip
New port: FiiO M3K
Most credit goes to: Roman Skylarov Additional integration and refactoring by myself. *** COMPLETELY UNTESTED *** Change-Id: Ia64c36d92e0214c6b15f7a868df286f8113ea27b
Diffstat (limited to 'firmware/target/hosted/backlight-target.h')
-rw-r--r--firmware/target/hosted/backlight-target.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/target/hosted/backlight-target.h b/firmware/target/hosted/backlight-target.h
index e3b8a7bd78..261af09d72 100644
--- a/firmware/target/hosted/backlight-target.h
+++ b/firmware/target/hosted/backlight-target.h
@@ -21,16 +21,20 @@
#ifndef _BACKLIGHT_TARGET_H_
#define _BACKLIGHT_TARGET_H_
-
#include <stdbool.h>
-
/* See backlight.c */
bool backlight_hw_init(void);
void backlight_hw_on(void);
void backlight_hw_off(void);
void backlight_hw_brightness(int brightness);
-
+#ifdef HAVE_BUTTON_LIGHT
+void buttonlight_hw_on(void);
+void buttonlight_hw_off(void);
+#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
+void buttonlight_hw_brightness(int brightness);
+#endif
#endif
+#endif