aboutsummaryrefslogtreecommitdiff
path: root/tk-delay.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-10-21 06:44:40 -0600
committerSelene ToyKeeper2017-10-21 06:44:40 -0600
commitd0219fc267b3741e9ff84643a5f381d3c229f18a (patch)
tree10857054e31c21df3b2b083e1214bb76bb9f4294 /tk-delay.h
parentMade indicator LED turn on/off in lightning mode along with main LED. (diff)
downloadanduril-d0219fc267b3741e9ff84643a5f381d3c229f18a.tar.gz
anduril-d0219fc267b3741e9ff84643a5f381d3c229f18a.tar.bz2
anduril-d0219fc267b3741e9ff84643a5f381d3c229f18a.zip
Made DELAY_ZERO_TIME a per-MCU option; hopefully will sync to PWM better 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)
Diffstat (limited to 'tk-delay.h')
-rw-r--r--tk-delay.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tk-delay.h b/tk-delay.h
index 0619419..7b00ac0 100644
--- a/tk-delay.h
+++ b/tk-delay.h
@@ -43,7 +43,8 @@ void _delay_ms(uint16_t n)
#if defined(USE_FINE_DELAY) || defined(USE_DELAY_ZERO)
#define delay_zero _delay_zero
void _delay_zero() {
- _delay_loop_2(BOGOMIPS/3);
+ //_delay_loop_2((BOGOMIPS/3) & 0xff00);
+ _delay_loop_2(DELAY_ZERO_TIME);
}
#endif
#ifdef USE_DELAY_4MS