aboutsummaryrefslogtreecommitdiff
path: root/arch/voltage.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-11-03renamed tk*.h in file contents, and deleted unused filesSelene ToyKeeper1-178/+0
2023-11-03renamed tk*.h to arch/*.h or fsm/*.h (part 1)Selene ToyKeeper1-0/+0
to get them out of the root dir, and to start cleaning up mcu/arch code
2023-04-17switched the rest of FSM + Anduril to use SPDX license headersSelene ToyKeeper1-23/+4
instead of full GPL headers (or all too often, nothing at all) There are a few "FIXME" entries where I'm not sure about the correct copyright.
2017-06-25Got 10-bit temperature measurement working.Selene ToyKeeper1-5/+35
2015-10-10Made a simple program to blink out temperature measurements.Selene ToyKeeper1-0/+14
Added some basic temperature stuff to header files.
2015-10-03Added volts+tenths and 8-bar battery check styles.Selene ToyKeeper1-8/+86
Reworked how voltage definitions work, and added one for each tenth of a volt. Set default calibration for RMM attiny25V driver. Made battcheck.py output all tenths in a wide range. Changed bistro to use x**3 curve for better mode spacing. Changed bistro's blink() to be compatible with volts+tenths code. Tried to fit volts_tenths into blf-a6 for attiny13a but failed. Made blf-a6 compatible with 8-bar battery check style.
2015-09-11Refactored blf-a6 a bunch to export code to includes and make attiny ↵Selene ToyKeeper1-0/+75
portability a bit better. Moved MCU hardware options and pin layout to tk-attiny.h. Moved voltage and OTC hardcoded values to tk-calibration.h. Moved delay functions to tk-delay.h, and made it use BOGOMIPS instead of DELAY_TWEAK. Moved voltage ADC and most of the battcheck code to tk-voltage.h. Changed EEPLEN to EEPSIZE. Made 1.1V reference symbol consistent across MCUs to avoid repeated #if/#else clauses.