projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor afsk IRQ macros in order to handle multiple modems.
[bertos.git]
/
bertos
/
net
/
afsk.h
diff --git
a/bertos/net/afsk.h
b/bertos/net/afsk.h
index 2f1a2e08cecf56b99790b2e57aef45f843b71043..4ab20c5053391c2777c967316e7782033fb14618 100644
(file)
--- a/
bertos/net/afsk.h
+++ b/
bertos/net/afsk.h
@@
-63,6
+63,9
@@
typedef struct Afsk
{
KFile fd;
{
KFile fd;
+ int adc_ch;
+ int dac_ch;
+
/** Current sample of bit for output data. */
uint8_t sample_count;
/** Current sample of bit for output data. */
uint8_t sample_count;
@@
-131,7
+134,7
@@
INLINE Afsk *AFSK_CAST(KFile *fd)
void afsk_adc_isr(Afsk *af, int8_t curr_sample);
void afsk_dac_isr(Afsk *af);
void afsk_adc_isr(Afsk *af, int8_t curr_sample);
void afsk_dac_isr(Afsk *af);
-void afsk_init(Afsk *af);
+void afsk_init(Afsk *af
, int adc_ch, int dac_ch
);
/**
/**