From 099701dd3130d433244b3a4102f36f547aec25ae Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 16 Jan 2015 10:21:18 +0900 Subject: hhkb: Integrate RN-42 support, remove hhkb_rn42 --- keyboard/hhkb_rn42/rn42/battery.c | 130 -------------------------------------- 1 file changed, 130 deletions(-) delete mode 100644 keyboard/hhkb_rn42/rn42/battery.c (limited to 'keyboard/hhkb_rn42/rn42/battery.c') diff --git a/keyboard/hhkb_rn42/rn42/battery.c b/keyboard/hhkb_rn42/rn42/battery.c deleted file mode 100644 index 7e868c9646..0000000000 --- a/keyboard/hhkb_rn42/rn42/battery.c +++ /dev/null @@ -1,130 +0,0 @@ -#include -#include -#include "battery.h" - - -/* - * Battery - */ -void battery_init(void) -{ - // blink - battery_led(LED_ON); _delay_ms(500); - battery_led(LED_OFF); _delay_ms(500); - battery_led(LED_ON); _delay_ms(500); - battery_led(LED_OFF); _delay_ms(500); - // LED indicates charger status - battery_led(LED_CHARGER); - - // ADC setting for voltage monitor - // Ref:2.56V band-gap, Input:ADC0(PF0), Prescale:128(16MHz/128=125KHz) - ADMUX = (1< BATTERY_VOLTAGE_LOW_RECOVERY) { - low = false; - } - return low; -} - -battery_status_t battery_status(void) -{ - if (USBSTA&(1<