Add documentation.
[bertos.git] / bertos / net / afsk_test.c
index d835d628d8263f7ff4238eed091dd902b0496dcc..54e22fd05e4d1e562f1b597bc822e3a3e0ed48ac 100644 (file)
@@ -146,7 +146,7 @@ int afsk_testSetup(void)
        ASSERT(fwrite(snd_header, 1, sizeof(snd_header), fp_dac) == sizeof(snd_header));
 
        timer_init();
-       afsk_init(&afsk_fd);
+       afsk_init(&afsk_fd, 0 ,0);
        afsk_fd.fd.error = kfile_genericClose;
        ax25_init(&ax25, &afsk_fd.fd, message_hook);
        return 0;
@@ -171,8 +171,7 @@ int afsk_testRun(void)
        int c;
        while ((c = fgetc(fp_adc)) != EOF)
        {
-               afsk_adc_val = (int8_t)c;
-               afsk_adc_isr();
+               afsk_adc_isr(&afsk_fd, (int8_t)c);
 
                ax25_poll(&ax25);
        }
@@ -186,7 +185,7 @@ int afsk_testRun(void)
        ax25_send(&ax25, AX25_CALL("abcdef", 0), AX25_CALL("123456", 1), buf, sizeof(buf));
 
        while (afsk_tx_test)
-               afsk_dac_isr();
+               afsk_dac_isr(&afsk_fd);
 
 
        #define SND_DATASIZE_OFF 8
@@ -204,8 +203,7 @@ int afsk_testRun(void)
 
        while ((c = fgetc(fp_adc)) != EOF)
        {
-               afsk_adc_val = (int8_t)c;
-               afsk_adc_isr();
+               afsk_adc_isr(&afsk_fd, (int8_t)c);
 
                ax25_poll(&ax25);
        }