summaryrefslogtreecommitdiff
path: root/keyboard/hhkb/rn42/battery.h
diff options
context:
space:
mode:
authorErez Zukerman <ezuk@madmimi.com>2016-05-24 23:55:29 -0400
committerErez Zukerman <ezuk@madmimi.com>2016-05-24 23:55:29 -0400
commitd06e940a179b2e81563cf6123461cfcad35f9045 (patch)
tree58f4bbc22f51cba0c22a6a1ab09a499681f1f89e /keyboard/hhkb/rn42/battery.h
parent8bc69afc633d3e199e3ac0a5bf39e4d255f2ce4a (diff)
[Erez & Jack] Removes keyboards which are not active on qmk
Diffstat (limited to 'keyboard/hhkb/rn42/battery.h')
-rw-r--r--keyboard/hhkb/rn42/battery.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/keyboard/hhkb/rn42/battery.h b/keyboard/hhkb/rn42/battery.h
deleted file mode 100644
index 180d4dcfaa..0000000000
--- a/keyboard/hhkb/rn42/battery.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef POWER_H
-#define POWER_H
-
-#include <stdint.h>
-#include <stdbool.h>
-
-typedef enum {
- FULL_CHARGED,
- CHARGING,
- DISCHARGING,
- LOW_VOLTAGE,
- UNKNOWN,
-} battery_status_t;
-
-typedef enum {
- LED_CHARGER = 0,
- LED_ON,
- LED_OFF,
- LED_TOGGLE,
-} battery_led_t;
-
-/* Battery API */
-void battery_init(void);
-void battery_led(battery_led_t val);
-bool battery_charging(void);
-uint16_t battery_voltage(void);
-battery_status_t battery_status(void);
-
-#define BATTERY_VOLTAGE_LOW_LIMIT 3500
-#define BATTERY_VOLTAGE_LOW_RECOVERY 3700
-// ADC offset:16, resolution:5mV
-#define BATTERY_ADC_OFFSET 16
-#define BATTERY_ADC_RESOLUTION 5
-
-#endif