projects
/
bbctrl-firmware
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f0a151
)
Fixed PWM clock setting
author
Joseph Coffland
<joseph@cauldrondevelopment.com>
Fri, 29 Sep 2017 06:38:55 +0000
(23:38 -0700)
committer
Joseph Coffland
<joseph@cauldrondevelopment.com>
Fri, 29 Sep 2017 06:38:55 +0000
(23:38 -0700)
src/pwr/main.c
patch
|
blob
|
history
diff --git
a/src/pwr/main.c
b/src/pwr/main.c
index 58ba6d52b773b5e37072444626c4af9c3cee6d95..3ce73762fc52a4683ec2e429f480d45a64891056 100644
(file)
--- a/
src/pwr/main.c
+++ b/
src/pwr/main.c
@@
-256,8
+256,8
@@
int main() {
// Delayed start
_delay_ms(100);
- // Enable timer with clk/
64
- TCCR0B = (
CS02 << 0) | (CS01 << 1) | (CS00 << 1
);
+ // Enable timer with clk/
8
+ TCCR0B = (
0 << CS02) | (1 << CS01) | (0 << CS00
);
_delay_ms(200);