projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use log module.
[bertos.git]
/
bertos
/
net
/
afsk.c
diff --git
a/bertos/net/afsk.c
b/bertos/net/afsk.c
index f8f29f9da395df7b525ab1cd8327e3d514a12ba9..e492efef29273aea2da68fc7e4f6b15b8eeee045 100644
(file)
--- a/
bertos/net/afsk.c
+++ b/
bertos/net/afsk.c
@@
-46,6
+46,10
@@
#include <cfg/module.h>
#include <cfg/module.h>
+#define LOG_LEVEL AFSK_LOG_LEVEL
+#define LOG_FORMAT AFSK_LOG_FORMAT
+#include <cfg/log.h>
+
#include <cpu/power.h>
#include <struct/fifobuf.h>
#include <cpu/power.h>
#include <struct/fifobuf.h>
@@
-508,7
+512,7
@@
void afsk_init(Afsk *af, int adc_ch, int dac_ch)
AFSK_ADC_INIT(adc_ch, af);
AFSK_DAC_INIT(dac_ch, af);
AFSK_STROBE_INIT();
AFSK_ADC_INIT(adc_ch, af);
AFSK_DAC_INIT(dac_ch, af);
AFSK_STROBE_INIT();
-
kprintf
("MARK_INC %d, SPACE_INC %d\n", MARK_INC, SPACE_INC);
+
LOG_INFO
("MARK_INC %d, SPACE_INC %d\n", MARK_INC, SPACE_INC);
DB(af->fd._type = KFT_AFSK);
af->fd.write = afsk_write;
DB(af->fd._type = KFT_AFSK);
af->fd.write = afsk_write;