projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5d57564
)
Add strobe macros even in DAC callback.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 10 Oct 2009 12:58:55 +0000
(12:58 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 10 Oct 2009 12:58:55 +0000
(12:58 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3071
38d2e660
-2303-0410-9eaa-
f027e97ec537
bertos/net/afsk.c
patch
|
blob
|
history
diff --git
a/bertos/net/afsk.c
b/bertos/net/afsk.c
index 5efce302ab08a7be4677a8331c79e25da4eebbc5..3f96d4daa7ce97fd4563ba7b1e9b4816594a288d 100644
(file)
--- 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);
}