git.droids-corp.org
/
beacon-tx-433.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add some comment to clarify constants in code
[beacon-tx-433.git]
/
main.c
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) {
TCCR0B = (1 << CS01); /* clk/8 = 1Mhz */
while (1) {
+ /* 4 Khz */
wait_period();
/* buzzer at 2 Khz after 10mns if not always on */
wait_period();
/* buzzer at 2 Khz after 10mns if not always on */
@@
-77,9
+78,10
@@
int main(void)
else
BUZZER_OFF();
else
BUZZER_OFF();
- /* radio
at 500 Hz
*/
+ /* radio
duty cycle is 500/4000
*/
if (time_period < 500) {
TX_ENABLE();
if (time_period < 500) {
TX_ENABLE();
+ /* at 500 Hz */
if (time_period & 4)
TX_ON();
else
if (time_period & 4)
TX_ON();
else