diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-03-16 12:01:35 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-03-16 12:01:35 -0400 |
commit | 9307a0a3e415d33d0858283f67fcba4c59a042ff (patch) | |
tree | 45252e53439dde1122945646f4fa340cf0a8923e /keyboard/hhkb_rn42/rn42/battery.h | |
parent | be86aefdbda560d6810f9594169fee4385c1422d (diff) | |
parent | c35c4283b9c2c65d62fe8dc5e4b7ca49a8f5af33 (diff) |
Merge pull request #6 from tmk/master
pulling from tmk
Diffstat (limited to 'keyboard/hhkb_rn42/rn42/battery.h')
-rw-r--r-- | keyboard/hhkb_rn42/rn42/battery.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/keyboard/hhkb_rn42/rn42/battery.h b/keyboard/hhkb_rn42/rn42/battery.h deleted file mode 100644 index 180d4dcfaa..0000000000 --- a/keyboard/hhkb_rn42/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 |