From: batt Date: Sat, 10 Oct 2009 12:58:55 +0000 (+0000) Subject: Add strobe macros even in DAC callback. X-Git-Tag: 2.3.0~12 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5aeea3525acc54b899ff8f53b6ed795f87e2667c;p=bertos.git Add strobe macros even in DAC callback. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3071 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/net/afsk.c b/bertos/net/afsk.c index 5efce302..3f96d4da 100644 --- a/bertos/net/afsk.c +++ b/bertos/net/afsk.c @@ -346,6 +346,8 @@ static void afsk_txStart(Afsk *af) */ uint8_t afsk_dac_isr(Afsk *af) { + AFSK_STROBE_ON(); + /* Check if we are at a start of a sample cycle */ if (af->sample_count == 0) { @@ -356,6 +358,7 @@ uint8_t afsk_dac_isr(Afsk *af) { AFSK_DAC_IRQ_STOP(af->dac_ch); af->sending = false; + AFSK_STROBE_OFF(); return 0; } else @@ -395,6 +398,7 @@ uint8_t afsk_dac_isr(Afsk *af) { AFSK_DAC_IRQ_STOP(af->dac_ch); af->sending = false; + AFSK_STROBE_OFF(); return 0; } else @@ -453,6 +457,7 @@ uint8_t afsk_dac_isr(Afsk *af) af->phase_acc %= SIN_LEN; af->sample_count--; + AFSK_STROBE_OFF(); return sin_sample(af->phase_acc); }