diff options
Diffstat (limited to 'quantum/led.c')
| -rw-r--r-- | quantum/led.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/quantum/led.c b/quantum/led.c index 2c0574660..a53e94043 100644 --- a/quantum/led.c +++ b/quantum/led.c | |||
| @@ -16,9 +16,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include <avr/io.h> | 18 | #include <avr/io.h> |
| 19 | #include "stdint.h" | 19 | #include <stddef.h> |
| 20 | #include "led.h" | 20 | #include "led.h" |
| 21 | 21 | ||
| 22 | __attribute__ ((weak)) | ||
| 23 | void * led_set_kb(uint8_t usb_led) { | ||
| 24 | return NULL; | ||
| 25 | }; | ||
| 22 | 26 | ||
| 23 | void led_set(uint8_t usb_led) | 27 | void led_set(uint8_t usb_led) |
| 24 | { | 28 | { |
| @@ -35,4 +39,10 @@ void led_set(uint8_t usb_led) | |||
| 35 | // DDRE &= ~(1<<6); | 39 | // DDRE &= ~(1<<6); |
| 36 | // PORTE &= ~(1<<6); | 40 | // PORTE &= ~(1<<6); |
| 37 | // } | 41 | // } |
| 42 | |||
| 43 | if (led_set_kb) { | ||
| 44 | (*led_set_kb)(usb_led); | ||
| 45 | } | ||
| 46 | |||
| 47 | return; | ||
| 38 | } | 48 | } |
