diff options
| author | Selene ToyKeeper | 2015-09-11 16:47:51 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2015-09-11 16:47:51 -0600 |
| commit | 3e059f81420fa9f8a471f3c728430d1b70a4c51d (patch) | |
| tree | d3e8d9de6dd5781e02d138fb856928d9b8a44f2f | |
| parent | Refactored blf-a6 a bunch to export code to includes and make attiny portabil... (diff) | |
| download | anduril-3e059f81420fa9f8a471f3c728430d1b70a4c51d.tar.gz anduril-3e059f81420fa9f8a471f3c728430d1b70a4c51d.tar.bz2 anduril-3e059f81420fa9f8a471f3c728430d1b70a4c51d.zip | |
Oops, delay_s() should delay for 1000 ms, not BOGOMIPS ms.
Diffstat (limited to '')
| -rw-r--r-- | tk-attiny.h | 5 | ||||
| -rw-r--r-- | tk-delay.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tk-attiny.h b/tk-attiny.h index 003e915..9415a97 100644 --- a/tk-attiny.h +++ b/tk-attiny.h @@ -32,6 +32,7 @@ #define V_REF REFS0 #define BOGOMIPS 950 #elif (ATTINY == 25) + // TODO: Use 6.4 MHz instead of 8 MHz? #define F_CPU 8000000UL #define EEPSIZE 128 #define V_REF REFS1 @@ -45,7 +46,7 @@ #ifdef FET_7135_LAYOUT /* * ---- - * -|1 8|- VCC + * Reset -|1 8|- VCC * OTC -|2 7|- Voltage ADC * Star 3 -|3 6|- PWM (FET) * GND -|4 5|- PWM (1x7135) @@ -74,7 +75,7 @@ #ifdef FERRERO_ROCHER_LAYOUT /* * ---- - * -|1 8|- VCC + * Reset -|1 8|- VCC * E-switch -|2 7|- Voltage ADC * Red LED -|3 6|- PWM * GND -|4 5|- Green LED @@ -40,7 +40,7 @@ void _delay_ms(uint16_t n) #ifdef USE_DELAY_S void _delay_s() // because it saves a bit of ROM space to do it this way { - _delay_ms(BOGOMIPS); + _delay_ms(1000); } #endif #else |
