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
* ============================= */
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_ */