Removed dacPin sillyness

This commit is contained in:
Mark Qvist 2014-04-06 20:29:39 +02:00
parent 19cca9487a
commit a6bad60233
4 changed files with 4 additions and 6 deletions

View File

@ -524,13 +524,12 @@ static void afsk_clearerr(KFile *fd) {
// Modem Initialization //
//////////////////////////////////////////////////////
void afsk_init(Afsk *afsk, int _adcPin, int _dacPin) {
void afsk_init(Afsk *afsk, int _adcPin) {
// Allocate memory for struct
memset(afsk, 0, sizeof(*afsk));
// Configure pins
afsk->adcPin = _adcPin;
afsk->dacPin = _dacPin;
afsk->phaseInc = MARK_INC;
// Init FIFO buffers

View File

@ -48,7 +48,6 @@ typedef struct Afsk
// I/O hardware pins
int adcPin; // Pin for incoming signal
int dacPin; // Pin for outgoing signal
// General values
Hdlc hdlc; // We need a link control structure
@ -116,6 +115,6 @@ INLINE Afsk *AFSK_CAST(KFile *fd) {
// and initialization functions
void afsk_adc_isr(Afsk *af, int8_t sample);
uint8_t afsk_dac_isr(Afsk *af);
void afsk_init(Afsk *af, int adc_ch, int dac_ch);
void afsk_init(Afsk *af, int adc_ch);
#endif

View File

@ -68,7 +68,7 @@ static void init(void)
ser_setbaudrate(&ser, 57600);
// Create a modem context
afsk_init(&afsk, ADC_CH, 0);
afsk_init(&afsk, ADC_CH);
// ... and a protocol context with the modem
mp1Init(&mp1, &afsk.fd, mp1Callback);

View File

@ -1,2 +1,2 @@
#define VERS_BUILD 377
#define VERS_BUILD 382
#define VERS_HOST "vixen"