aboutsummaryrefslogtreecommitdiff
path: root/arch/delay.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-11-03renamed tk*.h in file contents, and deleted unused filesSelene ToyKeeper1-2/+2
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.
2019-11-13fixed some compile issues related to delay_4ms()Selene ToyKeeper1-0/+2
2017-10-21Made DELAY_ZERO_TIME a per-MCU option; hopefully will sync to PWM better ↵Selene ToyKeeper1-1/+2
that way. Added BLF Q8 driver type, but it's basically identical to the D4 except in name. (can be used to auto-detect whether to use indicator LED, and what the diode drop constant should be)
2017-08-19Fixed unreliability of short-click detection.Selene ToyKeeper1-1/+1
(it was doing stuff like "press, release, release, timeout" so it didn't match "press, release, timeout") (it may have also been missing the exact tick it needed, so I made it use >= instead of ==, but this is theoretical and harmless if I was wrong) Made baton mode memory work a bit better for both regular and strobe modes. Made baton fast strobe pulses shorter for better motion freezing. Added USE_DELAY_ZERO option as an alternate for USE_FINE_DELAY.
2017-08-18First RoundTable example actually works (simple momentary 1-mode UI).Selene ToyKeeper1-0/+4
Changed how tk-attiny.h detects whether a layout was defined. Changed how tk-attiny.h detects number of PWM channels for new-style layouts. Added no-underscore versions of delay functions. Lots of RoundTable refactoring and blank-filling.
2017-03-18Made tk-delay.h allow use of both _delay_ms() and _delay_4ms().Selene ToyKeeper1-3/+4
2017-03-16Added _delay_4ms() thing from new smaller biscotti. Will need it for crescendo.Selene ToyKeeper1-0/+13
2017-03-16Added _delay_4ms() stuff, to save space on projects which need a few bytes ↵Selene ToyKeeper1-0/+13
more than they need millisecond delay precision. (may break other projects unless I add a different way to enable the code, beware)
2015-10-05Replaced how USE_FILE_DELAY works.Selene ToyKeeper1-7/+12
As a separate function, it seems to produce smaller builds.
2015-09-11Oops, delay_s() should delay for 1000 ms, not BOGOMIPS ms.Selene ToyKeeper1-1/+1
2015-09-11Refactored blf-a6 a bunch to export code to includes and make attiny ↵Selene ToyKeeper1-0/+51
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.