From 5aeea3525acc54b899ff8f53b6ed795f87e2667c Mon Sep 17 00:00:00 2001 From: batt Date: Sat, 10 Oct 2009 12:58:55 +0000 Subject: [PATCH] Add strobe macros even in DAC callback. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3071 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/net/afsk.c | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.25.1