]> git.donarmstrong.com Git - tmk_firmware.git/blob - protocol/usb_hid/leonardo_led.h
Remove MCU dependent code from common/keyboard.c
[tmk_firmware.git] / protocol / usb_hid / leonardo_led.h
1 #ifndef LEONARDO_LED_H
2 #define LEONARDO_LED_H
3
4 // Leonardo "TX" LED for debug
5 #define LED_TX_INIT    (DDRD  |=  (1<<5))
6 #define LED_TX_ON      (PORTD &= ~(1<<5))
7 #define LED_TX_OFF     (PORTD |=  (1<<5))
8 #define LED_TX_TOGGLE  (PORTD ^=  (1<<5))
9
10 #endif