aboutsummaryrefslogtreecommitdiff
path: root/tk-attiny.h
diff options
context:
space:
mode:
authorGabriel Hart2021-04-14 14:10:14 -0500
committerGabriel Hart2021-04-14 14:10:14 -0500
commit9dddc98863af8987c671d978d2ce8bc7e67c2e89 (patch)
treebbc9d3df42e9d8b366fefea45ad15700c001153e /tk-attiny.h
parentMerge TKs changes from 2021-01-25 (diff)
parentfixed missing ifdef for simple UI (diff)
downloadanduril-9dddc98863af8987c671d978d2ce8bc7e67c2e89.tar.gz
anduril-9dddc98863af8987c671d978d2ce8bc7e67c2e89.tar.bz2
anduril-9dddc98863af8987c671d978d2ce8bc7e67c2e89.zip
Merge from main branch
Diffstat (limited to 'tk-attiny.h')
-rw-r--r--tk-attiny.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tk-attiny.h b/tk-attiny.h
index 441f177..ae70afd 100644
--- a/tk-attiny.h
+++ b/tk-attiny.h
@@ -156,6 +156,7 @@
typedef enum
{
// Actual clock is 20 MHz, but assume that 5 MHz is the top speed and work from there
+ // TODO: measure PWM speed and power use at 1.25/2.5/5/10 MHz, to determine which speeds are optimal
clock_div_1 = (CLKCTRL_PDIV_4X_gc | CLKCTRL_PEN_bm), // 5 MHz
clock_div_2 = (CLKCTRL_PDIV_8X_gc | CLKCTRL_PEN_bm), // 2.5 MHz
clock_div_4 = (CLKCTRL_PDIV_16X_gc | CLKCTRL_PEN_bm), // 1.25 MHz