aboutsummaryrefslogtreecommitdiff
path: root/hw/sofirn/sp10-pro/hwdef.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-03-27increased voltage precision from 0.025V to 0.02VSelene ToyKeeper1-2/+2
(so 0 to 255 now goes from 0.00V to 5.10V)
2023-11-27fixed ADC on sp10-proSelene ToyKeeper1-2/+5
2023-11-22ADC voltage: battcheck 3 digits, fixed t1616, switched back to 8-bit ↵Selene ToyKeeper1-2/+2
internal volt unit Before this branch, `voltage` was 6 bits: Volts * 10 A couple patches ago, I upgraded it to 16 bits: 65535 * Volts / 10.24 That costs too much extra ROM on attiny85 though, for extra precision it doesn't even use... so I switched back to an 8-bit value. It's still more precise than before though: Volts * 40 ... and battcheck displays an extra digit now, on devices with ROM for it. ... and battcheck waits a second to get a more accurate measurement before displaying the first value. It has *much* less variation between first and later readings now. Also: - got t1616 builds working again (tested fc13 and thefreeman-boost-fwaa) - upgraded t1616 voltage and temp to 12-bit (10 bits + 4x oversampling) - removed expensive temp conversion from t1616 ADC interrupt - recalibrated t1616 bogomips again; runs faster after interrupt fix - increased t1616 internal VDD measurement resolution by 36% (1.5V Vref, not 1.1V) - fixed sloppy setting of Vref bits I still need to test / update other t1616 builds, and fix all the t85 + t1634 code and build targets.
2023-11-10refactor checkpoint: splitting MCU-specific code into arch/$MCU.[ch]Selene ToyKeeper1-5/+1
Phew, that's a lot of changes! And there's still a lot more to do...
2023-11-03moved ATTINY and MODEL_NUMBER into $target/arch and $target/model,Selene ToyKeeper1-1/+0
and updated other scripts and files accordingly
2023-11-02got things to compile again, renamed #includesSelene ToyKeeper1-1/+1
(also modified the build scripts to work with the new file structure)
2023-11-02reorganized project files (part 1)Selene ToyKeeper1-0/+0
(just moved files, didn't change the contents yet, and nothing will work without updating #includes and build scripts and stuff)
2023-10-30fixed sp10-pro build error (attiny DFP v2 changed some definitions)Selene ToyKeeper1-1/+1
2023-10-09converted sofirn-sp10-pro to new APISelene ToyKeeper1-50/+65
2023-04-17switched the rest of FSM + Anduril to use SPDX license headersSelene ToyKeeper1-14/+12
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.
2022-04-14sp10-pro: hard reset phase while turning off, fixes shutoff bug without a delaySelene ToyKeeper1-2/+5
(also, made phase hacks individually selectable)
2022-04-14avrdude fails when .fuse section is included, so omit that when copying elf ↵Selene ToyKeeper1-9/+9
to hex
2022-04-14moved fuses from cfg to hwdef, renamed LED_EN/DISABLE_DELAY to LED_ON/OFF_DELAYSelene ToyKeeper1-1/+17
(also really should rename LED_* to CH1_* and LED2_* to CH2_*)
2022-04-13Created LED_DISABLE_DELAY option and enabled it for SP10 Pro to hopefully ↵Gabriel Hart1-0/+1
eliminate flashes when turning off at certain levels
2022-04-12Added FUSES section to SP10 Pro for building ELF file with BOD Active fuse ↵Gabriel Hart1-1/+1
setting
2021-11-13fixed SP10 ramp flickering properly, using double-buffered registersSelene ToyKeeper1-4/+5
instead of my janky forced phase-reset workaround (gchart found the solution but couldn't reproduce the issue, so I tried his method and confirmed it seems to be fixed)
2021-11-06greatly smoothed out SP10 ramp, and configured defaultsSelene ToyKeeper1-0/+1
also fixed random ramp stuttering, by adding phase-reset register to hwdef (though it still has a brief stutter sometimes while ramping down across the channel boundary, at least it always seems to be smooth while going up now)
2021-09-20SP10 Pro: lower AA LVP to 0.7vGabriel Hart1-1/+1
2021-09-19SP10 Pro: use dynamic PWM, add hidden firefly, adjust candle amplitude, and ↵Gabriel Hart1-2/+8
tweak party strobe & LVP level
2021-08-12Finalized SP10S and renamed to SP10 Pro. Updated Sofirn settings to include SOS.Gabriel Hart1-24/+10
2021-05-04Update 1-Series to use 10 MHz clock and Phase Correct PWM. Add PWM ↵Gabriel Hart1-4/+10
documentation. Also clear thermal offset on factory reset instead of setting it to 21*C.
2021-04-01minor formatting cleanup on t1616 hwdef filesSelene ToyKeeper1-9/+11
2021-02-01Updated the Sofirn SP10S Anduril boardGabriel Hart1-13/+11
2021-01-12Rename SP10Ss hwdef file to align with othersGabriel Hart1-0/+0
2021-01-12Add Sofirn SP10S (adapter) and dual-voltage logicGabriel Hart1-0/+124