diff options
author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-09-14 20:03:11 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-09-14 20:03:11 -0700 |
commit | 9508b3f333dbd56ca5a91044874daa47f7be1902 (patch) | |
tree | 77970693c8a0ff32676a4e9981985a46f3125966 /keyboards/alps64/led.c | |
parent | 6c871408dfe971dce72910a0868b564eb8e76e27 (diff) |
[Keyboard] Alps64 Refactor (#6723)
* get rid of custom matrix that is no longer being used
* remove _kc LAYOUT
* remove ifdefs and replace with pragma once
* cleanup rules and use bootmagic lite
* get rid of led.c
* Update keyboards/alps64/alps64.c
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* remove unneeded configurations
Diffstat (limited to 'keyboards/alps64/led.c')
-rw-r--r-- | keyboards/alps64/led.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/keyboards/alps64/led.c b/keyboards/alps64/led.c deleted file mode 100644 index d20c51aabe..0000000000 --- a/keyboards/alps64/led.c +++ /dev/null @@ -1,34 +0,0 @@ -/* -Copyright 2012 Jun Wako <wakojun@gmail.com> - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#include <avr/io.h> -#include "stdint.h" -#include "led.h" - - -void led_set(uint8_t usb_led) -{ - if (usb_led & (1<<USB_LED_CAPS_LOCK)) { - // output high - DDRC |= (1<<5); - PORTC |= (1<<5); - } else { - // Hi-Z - DDRC &= ~(1<<5); - PORTC &= ~(1<<5); - } -} |