diff options
| author | Selene ToyKeeper | 2021-04-01 18:29:17 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2021-04-01 18:29:17 -0600 |
| commit | d40369595fef086cb070425930b882705f1ac20b (patch) | |
| tree | 6128393272513195760881e11a20af4c7e94bec3 /tk-attiny.h | |
| parent | Added attiny1616 info to the README, and made bin/build.sh support more flexi... (diff) | |
| download | anduril-d40369595fef086cb070425930b882705f1ac20b.tar.gz anduril-d40369595fef086cb070425930b882705f1ac20b.tar.bz2 anduril-d40369595fef086cb070425930b882705f1ac20b.zip | |
touched up a bit of formatting and a note for later optimization
Diffstat (limited to '')
| -rw-r--r-- | tk-attiny.h | 1 |
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 |
