add some comment to clarify constants in code
authorOlivier Matz <zer0@droids-corp.org>
Thu, 23 May 2013 17:40:39 +0000 (19:40 +0200)
committerOlivier 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

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