summaryrefslogtreecommitdiff
path: root/keyboards/ergodox/infinity/led.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-11-21 20:17:45 -0500
committerJack Humbert <jack.humb@gmail.com>2016-11-21 20:17:45 -0500
commit450a8fb5b61de8166fe21eb4f57e1c00514afe32 (patch)
treec7d363a244115eb3736401cc6670f1967ddf9a5d /keyboards/ergodox/infinity/led.c
parent06a2677b7eedbf58532fa1a673ba1277e756174d (diff)
parentaf119baf710c0b19cfe3351e3f3e89ddeeaacdf6 (diff)
Merge branch 'master' of github.com:jackhumbert/qmk_firmware into wu5y7
Diffstat (limited to 'keyboards/ergodox/infinity/led.c')
-rw-r--r--keyboards/ergodox/infinity/led.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/keyboards/ergodox/infinity/led.c b/keyboards/ergodox/infinity/led.c
index 77195bb358..8175c1c5c5 100644
--- a/keyboards/ergodox/infinity/led.c
+++ b/keyboards/ergodox/infinity/led.c
@@ -21,29 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
void led_set(uint8_t usb_led) {
-// The LCD backlight functionality conflicts with this simple
-// red backlight
-#if !defined(LCD_BACKLIGHT_ENABLE) && defined(STATUS_LED_ENABLE)
- // PTC1: LCD Backlight Red(0:on/1:off)
- GPIOC->PDDR |= (1<<1);
- PORTC->PCR[1] |= PORTx_PCRn_DSE | PORTx_PCRn_MUX(1);
- if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
- GPIOC->PCOR |= (1<<1);
- } else {
- GPIOC->PSOR |= (1<<1);
- }
-#elif !defined(LCD_BACKLIGHT_ENABLE)
+ //TODO: Add led emulation if there's no customized visualization
(void)usb_led;
- GPIOC->PDDR |= (1<<1);
- PORTC->PCR[1] |= PORTx_PCRn_DSE | PORTx_PCRn_MUX(1);
- GPIOC->PSOR |= (1<<1);
- GPIOC->PDDR |= (1<<2);
- PORTC->PCR[2] |= PORTx_PCRn_DSE | PORTx_PCRn_MUX(1);
- GPIOC->PSOR |= (1<<2);
- GPIOC->PDDR |= (1<<3);
- PORTC->PCR[3] |= PORTx_PCRn_DSE | PORTx_PCRn_MUX(1);
- GPIOC->PSOR |= (1<<3);
-#else
- (void)usb_led;
-#endif
}