summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjpetermans <tibcmhhm@gmail.com>2017-04-06 13:48:31 -0700
committerjpetermans <tibcmhhm@gmail.com>2017-04-06 13:48:31 -0700
commitf66361d678047af31d9d48ca6c22afcc48756882 (patch)
tree3b17ecf0012e2cae87aff79328f65e2bb350b950
parentda4c2d2e3e4cd566ccf0c5a468f1a544c4b2be55 (diff)
add led init function to header for use in keymap.c
-rw-r--r--keyboards/infinity60/led_controller.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/keyboards/infinity60/led_controller.h b/keyboards/infinity60/led_controller.h
index dcf346e043..7db02389f8 100644
--- a/keyboards/infinity60/led_controller.h
+++ b/keyboards/infinity60/led_controller.h
@@ -26,6 +26,12 @@ msg_t is31_write_data(uint8_t page, uint8_t *buffer, uint8_t size);
msg_t is31_write_register(uint8_t page, uint8_t reg, uint8_t data);
msg_t is31_read_register(uint8_t page, uint8_t reg, uint8_t *result);
+/* =========================
+ * init functions
+ * ========================= */
+
+void led_controller_init(void);
+
/* =============================
* IS31 chip related definitions
* ============================= */
@@ -83,11 +89,13 @@ msg_t is31_read_register(uint8_t page, uint8_t reg, uint8_t *result);
extern mailbox_t led_mailbox;
// constants for signaling the LED controller thread
-#define LED_MSG_CAPS_ON 1
-#define LED_MSG_CAPS_OFF 2
-#define LED_MSG_SLEEP_LED_ON 3
-#define LED_MSG_SLEEP_LED_OFF 4
-#define LED_MSG_ALL_TOGGLE 5
-#define LED_MSG_GAME_TOGGLE 6
+enum led_msg_t {
+ LED_MSG_CAPS_ON,
+ LED_MSG_CAPS_OFF,
+ LED_MSG_SLEEP_LED_ON,
+ LED_MSG_SLEEP_LED_OFF,
+ LED_MSG_ALL_TOGGLE,
+ LED_MSG_GAME_TOGGLE
+};
#endif /* _LED_CONTROLLER_H_ */