diff options
| author | Selene ToyKeeper | 2020-03-18 03:29:21 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-03-18 03:29:21 -0600 |
| commit | 654fab1fa72a2d3a014632779106e57c150296ee (patch) | |
| tree | 1712d6ecdfd9370573524149817adf893346f0ce /tk-attiny.h | |
| parent | removed more references to THERM_HARD_TURBO_DROP (diff) | |
| parent | merged fsm branch, mostly to get new ADC code (thermal regulation and voltage... (diff) | |
| download | anduril-654fab1fa72a2d3a014632779106e57c150296ee.tar.gz anduril-654fab1fa72a2d3a014632779106e57c150296ee.tar.bz2 anduril-654fab1fa72a2d3a014632779106e57c150296ee.zip | |
merged Noctigon K1 branch, which changes a few things...
- added support for 10-bit PWM
- 10-bit ADC voltage divider calibration values instead of 8-bit
- added ability to use different DIDR channels on different hardware
- made dynamic underclocking configurable per build target
- expanded RGB aux LED support
- increased resolution of RGB voltage readout (6 colors instead of 3)
- made party strobe ontime configurable per build target
- added support for an enable/disable pin for a regulator chip
Diffstat (limited to 'tk-attiny.h')
| -rw-r--r-- | tk-attiny.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tk-attiny.h b/tk-attiny.h index 597af4d..76c9c9b 100644 --- a/tk-attiny.h +++ b/tk-attiny.h @@ -34,6 +34,7 @@ #define ADMUX_VCC 0b00001100 #define DELAY_ZERO_TIME 252 #define SWITCH_PORT PINB // PINA or PINB or PINC + #define VOLTAGE_ADC_DIDR DIDR0 // this MCU only has one DIDR #elif (ATTINY == 25) // TODO: Use 6.4 MHz instead of 8 MHz? #define F_CPU 8000000UL @@ -44,6 +45,7 @@ #define ADMUX_THERM 0b10001111 #define DELAY_ZERO_TIME 1020 #define SWITCH_PORT PINB // PINA or PINB or PINC + #define VOLTAGE_ADC_DIDR DIDR0 // this MCU only has one DIDR #elif (ATTINY == 85) // TODO: Use 6.4 MHz instead of 8 MHz? #define F_CPU 8000000UL @@ -56,6 +58,7 @@ #define ADMUX_THERM 0b10001111 #define DELAY_ZERO_TIME 1020 #define SWITCH_PORT PINB // PINA or PINB or PINC + #define VOLTAGE_ADC_DIDR DIDR0 // this MCU only has one DIDR #elif (ATTINY == 1634) #define F_CPU 8000000UL #define V_REF REFS1 @@ -66,6 +69,7 @@ #define ADMUX_THERM 0b10001110 #define DELAY_ZERO_TIME 1020 //#define SWITCH_PORT PINA // set this in hwdef + //#define VOLTAGE_ADC_DIDR DIDR0 // set this in hwdef #else #error Hey, you need to define ATTINY. #endif |
