diff options
Diffstat (limited to 'tmk_core/common/host.h')
-rw-r--r-- | tmk_core/common/host.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tmk_core/common/host.h b/tmk_core/common/host.h index 3d172eed6..b2a7f9842 100644 --- a/tmk_core/common/host.h +++ b/tmk_core/common/host.h | |||
@@ -22,11 +22,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
22 | #include "report.h" | 22 | #include "report.h" |
23 | #include "host_driver.h" | 23 | #include "host_driver.h" |
24 | 24 | ||
25 | #define IS_LED_ON(leds, led_name) ( (leds) & (1 << (led_name))) | 25 | #define IS_LED_ON(leds, led_name) ((leds) & (1 << (led_name))) |
26 | #define IS_LED_OFF(leds, led_name) (~(leds) & (1 << (led_name))) | 26 | #define IS_LED_OFF(leds, led_name) (~(leds) & (1 << (led_name))) |
27 | 27 | ||
28 | #define IS_HOST_LED_ON(led_name) IS_LED_ON(host_keyboard_leds(), led_name) | 28 | #define IS_HOST_LED_ON(led_name) IS_LED_ON(host_keyboard_leds(), led_name) |
29 | #define IS_HOST_LED_OFF(led_name) IS_LED_OFF(host_keyboard_leds(), led_name) | 29 | #define IS_HOST_LED_OFF(led_name) IS_LED_OFF(host_keyboard_leds(), led_name) |
30 | 30 | ||
31 | #ifdef __cplusplus | 31 | #ifdef __cplusplus |
32 | extern "C" { | 32 | extern "C" { |
@@ -36,15 +36,15 @@ extern uint8_t keyboard_idle; | |||
36 | extern uint8_t keyboard_protocol; | 36 | extern uint8_t keyboard_protocol; |
37 | 37 | ||
38 | /* host driver */ | 38 | /* host driver */ |
39 | void host_set_driver(host_driver_t *driver); | 39 | void host_set_driver(host_driver_t *driver); |
40 | host_driver_t *host_get_driver(void); | 40 | host_driver_t *host_get_driver(void); |
41 | 41 | ||
42 | /* host driver interface */ | 42 | /* host driver interface */ |
43 | uint8_t host_keyboard_leds(void); | 43 | uint8_t host_keyboard_leds(void); |
44 | void host_keyboard_send(report_keyboard_t *report); | 44 | void host_keyboard_send(report_keyboard_t *report); |
45 | void host_mouse_send(report_mouse_t *report); | 45 | void host_mouse_send(report_mouse_t *report); |
46 | void host_system_send(uint16_t data); | 46 | void host_system_send(uint16_t data); |
47 | void host_consumer_send(uint16_t data); | 47 | void host_consumer_send(uint16_t data); |
48 | 48 | ||
49 | uint16_t host_last_system_report(void); | 49 | uint16_t host_last_system_report(void); |
50 | uint16_t host_last_consumer_report(void); | 50 | uint16_t host_last_consumer_report(void); |