aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* added "emisar-2ch-fet-joined" build, for D4S w/ lighted switchSelene ToyKeeper2024-01-106-0/+512
| | | | (it's an odd case with a 2 channel driver which only uses 1 set of LEDs)
* documented FW3X swapped pins betterSelene ToyKeeper2023-12-171-3/+7
|
* documented Wurkkos TS25/TS11/FC13 distinctionsSelene ToyKeeper2023-12-174-6/+44
|
* build.sh: don't require DFPs, newer avr-libc doesn't need themSelene ToyKeeper2023-12-151-6/+8
|
* use BLIP_LEVEL instead of 0 for "blip"sSelene ToyKeeper2023-12-153-2/+7
| | | | | This helps when using a regulator which doesn't like being turned off and back on quickly.
* clarified which-hex-file.md a bit; make sure the model number matchesSelene ToyKeeper2023-12-111-4/+7
|
* fw3x: reduced pulsing on low modesSelene ToyKeeper2023-12-101-2/+2
|
* moved version string calculation to bin/version-string.shSelene ToyKeeper2023-12-053-13/+63
| | | | | | Also updated the format slightly, so this rev is: `2023-12-03+2#1` +N for commits since tag #1 for dirty
* forgot one item in the ChangeLogSelene ToyKeeper2023-12-051-0/+2
|
* ChangeLog: added 2023-12-03 release notes, converted @modelname to &modelnameSelene ToyKeeper2023-12-031-52/+115
| | | | | (because the @ was causing people to get tagged when their username happened to be the same as a brand or model name)
* docs: expanded / reorganized info on Version Check formatsSelene ToyKeeper2023-12-032-44/+63
|
* updated MODELS, bin/models.py, and hw/BRANDS...Selene ToyKeeper2023-12-033-81/+112
| | | | | | | | - changed column order to (model, mcu, name) - changed column sizes (auto-sized w/ 2 spaces between columns) - made it handle hex digits in model numbers - reserved 1900 to 2199 for years only, not model numbers - noted gChart and thefreeman sharing a brand ID
* fw3x: document how it ships with the wrong fuse values, and how to fix itSelene ToyKeeper2023-12-031-0/+5
|
* Merge branch 'github-ci-fix-version-tags' into trunkSelene ToyKeeper2023-12-022-4/+16
|\ | | | | | | | | | | | | | | | | | | | | | | Fixed missing version strings during github CI builds. Made "git describe" work within github's CI environment, so it can detect the most recent release tag and generate a version number for each build. * github-ci-fix-version-tags: github CI: fetch history too, to allow detection of version tags build-all: handle the case where "git describe" can't get any tags run CI on all branches, not just on trunk fetch tags on CI checkout, so 'git describe' can work
| * github CI: fetch history too, to allow detection of version tagsSelene ToyKeeper2023-12-021-1/+2
| | | | | | | | | | | | It needs history to determine which tag precedes the current commit. This could be expensive on large repos, but for Anduril it seems to only increase the checkout size by about 40% or so. (11 MiB -> 15 MiB)
| * build-all: handle the case where "git describe" can't get any tagsSelene ToyKeeper2023-12-021-0/+5
| | | | | | | | Resulting revision is "$MODEL-0.$HASH" where the hash is the commit short ID
| * run CI on all branches, not just on trunkSelene ToyKeeper2023-12-021-4/+7
| |
| * fetch tags on CI checkout, so 'git describe' can workSelene ToyKeeper2023-12-021-0/+3
|/
* added docs/battery-rainbow.png from old repo, since it's still relevantSelene ToyKeeper2023-12-011-0/+0
|
* added bin/make-release.sh to generate a .zip file ready for releaseSelene ToyKeeper2023-12-012-1/+56
|
* build-all.sh: re-indented, started organizing code into functionsSelene ToyKeeper2023-11-301-75/+84
| | | | | (still needs a proper rewrite, but at least the version.h code is in a separate function now)
* changed version number to use the latest release tag instead of build dateSelene ToyKeeper2023-11-303-5/+19
| | | | | | | Before: 2023-11-30 (build date) After: 2023-10-31-98.1 (latest release tag + number of commits since + dirty flag)
* fixed RGB aux turning on in momentary mode when post-off voltage was enabledSelene ToyKeeper2023-11-301-6/+9
|
* oops, flashing script should actually flash ... not just echo a commandSelene ToyKeeper2023-11-301-1/+1
|
* Merge branch 'pr23-digitalcircuit-fix-nofet-bikeflash' into trunkSelene ToyKeeper2023-11-302-4/+10
|\ | | | | | | | | | | | | | | | | Fixed bike mode's default brightness so it won't be wildly miscalibrated on lights with high regulated modes. * pr23-digitalcircuit-fix-nofet-bikeflash: saner defaults for the default biking level bikeflash: Cap default brightness to max, define
| * saner defaults for the default biking levelSelene ToyKeeper2023-11-302-11/+9
| | | | | | | | | | | | | | - set DEFAULT_BIKING_LEVEL in bike mode's header file - use RAMP_SIZE/3 by default - limit to MAX_BIKING_LEVEL if necessary - get rid of any ties to MAX_1x7135 because it's kind of an obsolete symbol
| * Merge branch 'fix-nofet-bikeflash' of github.com:digitalcircuit/anduril into ↵Selene ToyKeeper2023-11-301-1/+9
|/| | | | | | | | | | | | | pr23-digitalcircuit-fix-nofet-bikeflash * 'fix-nofet-bikeflash' of github.com:digitalcircuit/anduril: bikeflash: Cap default brightness to max, define
| * bikeflash: Cap default brightness to max, defineShane Synan2023-11-281-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cap fallback default bike flasher brightness to stay below MAX_BIKING_LEVEL, fixing noFET/boost driver builds where MAX_1x7135 is above MAX_BIKING_LEVEL. Add the optional define DEFAULT_BIKING_LEVEL to set the default bike flasher brightness. This is NOT checked against MAX_BIKING_LEVEL, for simplicity. Alternatively, strobe-modes.c could be updated to check if the value exceeds MAX_BIKING_LEVEL at runtime. However, that might take up more flash space. Migrated from https://code.launchpad.net/~digitalcircuit/flashlight-firmware/anduril2_fix_nofet_bikeflash/+merge/408124
* | sofirn-lt1s-pro: disable memory timer and extended simple UI by defaultSelene ToyKeeper2023-11-301-3/+3
| | | | | | | | | | (users complained, and extended simple UI probably needs to be off by default in all factory builds anyway)
* | minor documentation updatesSelene ToyKeeper2023-11-302-8/+9
| |
* | Merge branch 'avr32dd20-devkit' into trunkSelene ToyKeeper2023-11-3083-1296/+2633
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added support for AVR DD MCUs, particularly avr32dd20. Also did a bunch of refactoring for how MCU support works, cleaned up the ADC code, switched to consistent internal formats for voltage and temperature, fixed the FW3X, and some other little things. * avr32dd20-devkit: (28 commits) eliminated direct CCP register access from arch/attiny1616 made the avr32dd20 flashing script more universal added a build target for FW3X with manually-fixed RGB aux wiring prevent future issues like the FW3X had fixed FW3X thermal regulation fixed incorrect temperature history for a few seconds after waking fsm/adc: removed dead code FW3X: fixed external temperature sensor FW3X: multiple upgrades... fw3x: fixed swapped red+blue, fixed battery measurements, added police color strobe fixed ADC on sp10-pro fixed ADC on attiny85 and related builds fixed ADC on attiny1634 and related builds more ADC / DAC / MCU progress... avr32dd20-devkit: make the defaults a bit more dev friendly (realtime voltage colors, and no simple UI by default) ADC voltage: battcheck 3 digits, fixed t1616, switched back to 8-bit internal volt unit got ADC voltage+temp working on avrdd... but broke all other builds/MCUs 1.55V AA battery should not show as "white" voltage color, only purple started refactoring fsm/adc.*, but need a checkpoint before continuing added dac-scale.py: short script to calculate avrdd DAC+Vref values from level_calc.py ramp data ...
| * | eliminated direct CCP register access from arch/attiny1616Selene ToyKeeper2023-11-301-2/+2
| | | | | | | | | | | | (the protected write macro exists for a reason, and should be used instead)
| * | made the avr32dd20 flashing script more universalSelene ToyKeeper2023-11-301-5/+32
| | |
| * | added a build target for FW3X with manually-fixed RGB aux wiringSelene ToyKeeper2023-11-303-3/+21
| | |
| * | prevent future issues like the FW3X hadSelene ToyKeeper2023-11-281-4/+5
| | | | | | | | | | | | | | | | | | | | | 1/3rd of the ramp size is probably a more reliable default than MAX_1x7135. The 7135-based reference points need to eventually be removed entirely and replaced by something more universal, but for now at least don't fail when a thermal stepdown isn't defined.
| * | fixed FW3X thermal regulationSelene ToyKeeper2023-11-282-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | It had no minimum thermal stepdown defined, so it used MAX_7135 by default, which was level 149/150 ... thus virtually no regulation. I also made it easier to switch between internal and external temperature sensors by just commenting out a few lines in the hwdef.h.
| * | fixed incorrect temperature history for a few seconds after wakingSelene ToyKeeper2023-11-282-13/+11
| | | | | | | | | | | | | | | (it used raw ADC units instead of cooked Kelvin units ... ... which was only noticeable on hardware which has different ADC units)
| * | fsm/adc: removed dead codeSelene ToyKeeper2023-11-281-57/+32
| | |
| * | FW3X: fixed external temperature sensorSelene ToyKeeper2023-11-282-7/+41
| | | | | | | | | | | | (the MCU's internal sensor works too, but external is a bit better I guess?)
| * | FW3X: multiple upgrades...Selene ToyKeeper2023-11-274-54/+132
| | | | | | | | | | | | | | | | | | | | | | | | - upgraded to DSM: lower lows, *much* smoother ramp - made lows more efficient with underclocking - fixed party strobe being too blurry - calibrated UI speed / bogomips multiplier - added readme to document this hardware's multiple quirks
| * | fw3x: fixed swapped red+blue, fixed battery measurements, added police color ↵Selene ToyKeeper2023-11-272-13/+29
| | | | | | | | | | | | strobe
| * | fixed ADC on sp10-proSelene ToyKeeper2023-11-271-2/+5
| | |
| * | fixed ADC on attiny85 and related buildsSelene ToyKeeper2023-11-275-23/+80
| | | | | | | | | | | | (also enabled smooth steps on BLF GT, but had to remove stuff to make room)
| * | fixed ADC on attiny1634 and related buildsSelene ToyKeeper2023-11-2713-328/+181
| | |
| * | more ADC / DAC / MCU progress...Selene ToyKeeper2023-11-2413-157/+136
| | | | | | | | | | | | | | | | | | | | | | | | - fixed t1616 Vref values getting clobbered sometimes, wrapped setting those in a #define'd function for ease and consistency - moved some DAC definitions from hw/ to arch/ to reduce repetition - fixed thefreeman's other builds - switched from PWM_TOPS to PWM2_LEVELS (I'm trying to phase out _TOPS)
| * | avr32dd20-devkit: make the defaults a bit more dev friendlySelene ToyKeeper2023-11-221-1/+5
| | | | | | | | | | | | (realtime voltage colors, and no simple UI by default)
| * | ADC voltage: battcheck 3 digits, fixed t1616, switched back to 8-bit ↵Selene ToyKeeper2023-11-2213-112/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | got ADC voltage+temp working on avrdd... but broke all other builds/MCUsSelene ToyKeeper2023-11-215-34/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes the ADC code to use two internal standard units, and everything else must convert to these units: - FSM Volts: centiVolts << 6 (range 0 to 10.24 V per cell) - FSM Kelvin: Kelvin << 6 (range 0 to 1024 K) UI-level voltage is still "Volts * 10", and temperature is still Celsius. FSM expects functions to be provided, to convert from the hardware's raw ADC measurements to these internal units: `voltage_raw2cooked()` and `temp_raw2cooked()`. Defaults will be provided by arch/*.[ch] for each MCU type, or the hwdef can make its own. Anyway, gotta go fix all the other MCUs and builds now. :(
| * | 1.55V AA battery should not show as "white" voltage color, only purpleSelene ToyKeeper2023-11-211-1/+1
| | |
| * | started refactoring fsm/adc.*, but need a checkpoint before continuingSelene ToyKeeper2023-11-192-24/+14
| | |