From: Olivier Matz Date: Thu, 23 May 2013 17:40:39 +0000 (+0200) Subject: add some comment to clarify constants in code X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=75f96dba8d659afecb6d8e9967d41c0dcb7301ac;p=beacon-tx-433.git add some comment to clarify constants in code Signed-off-by: Olivier Matz --- diff --git a/main.c b/main.c index 7aa50c8..820cdc1 100644 --- 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