git.droids-corp.org
/
beacon-tx-433.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a18f73b
)
add some comment to clarify constants in code
author
Olivier Matz
<zer0@droids-corp.org>
Thu, 23 May 2013 17:40:39 +0000
(19:40 +0200)
committer
Olivier Matz
<zer0@droids-corp.org>
Thu, 23 May 2013 17:40:39 +0000
(19:40 +0200)
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
7aa50c8
..
820cdc1
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-65,6
+65,7
@@
int main(void)
TCCR0B = (1 << CS01); /* clk/8 = 1Mhz */
while (1) {
+ /* 4 Khz */
wait_period();
/* buzzer at 2 Khz after 10mns if not always on */
@@
-77,9
+78,10
@@
int main(void)
else
BUZZER_OFF();
- /* radio
at 500 Hz
*/
+ /* radio
duty cycle is 500/4000
*/
if (time_period < 500) {
TX_ENABLE();
+ /* at 500 Hz */
if (time_period & 4)
TX_ON();
else