forked from forks/qmk_firmware
add led init function to header for use in keymap.c
This commit is contained in:
parent
da4c2d2e3e
commit
f66361d678
|
@ -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_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);
|
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
|
* 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;
|
extern mailbox_t led_mailbox;
|
||||||
|
|
||||||
// constants for signaling the LED controller thread
|
// constants for signaling the LED controller thread
|
||||||
#define LED_MSG_CAPS_ON 1
|
enum led_msg_t {
|
||||||
#define LED_MSG_CAPS_OFF 2
|
LED_MSG_CAPS_ON,
|
||||||
#define LED_MSG_SLEEP_LED_ON 3
|
LED_MSG_CAPS_OFF,
|
||||||
#define LED_MSG_SLEEP_LED_OFF 4
|
LED_MSG_SLEEP_LED_ON,
|
||||||
#define LED_MSG_ALL_TOGGLE 5
|
LED_MSG_SLEEP_LED_OFF,
|
||||||
#define LED_MSG_GAME_TOGGLE 6
|
LED_MSG_ALL_TOGGLE,
|
||||||
|
LED_MSG_GAME_TOGGLE
|
||||||
|
};
|
||||||
|
|
||||||
#endif /* _LED_CONTROLLER_H_ */
|
#endif /* _LED_CONTROLLER_H_ */
|
||||||
|
|
Loading…
Reference in a new issue