Removed dacPin sillyness
This commit is contained in:
parent
19cca9487a
commit
a6bad60233
|
@ -524,13 +524,12 @@ static void afsk_clearerr(KFile *fd) {
|
||||||
// Modem Initialization //
|
// Modem Initialization //
|
||||||
//////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////
|
||||||
|
|
||||||
void afsk_init(Afsk *afsk, int _adcPin, int _dacPin) {
|
void afsk_init(Afsk *afsk, int _adcPin) {
|
||||||
// Allocate memory for struct
|
// Allocate memory for struct
|
||||||
memset(afsk, 0, sizeof(*afsk));
|
memset(afsk, 0, sizeof(*afsk));
|
||||||
|
|
||||||
// Configure pins
|
// Configure pins
|
||||||
afsk->adcPin = _adcPin;
|
afsk->adcPin = _adcPin;
|
||||||
afsk->dacPin = _dacPin;
|
|
||||||
afsk->phaseInc = MARK_INC;
|
afsk->phaseInc = MARK_INC;
|
||||||
|
|
||||||
// Init FIFO buffers
|
// Init FIFO buffers
|
||||||
|
|
|
@ -48,7 +48,6 @@ typedef struct Afsk
|
||||||
|
|
||||||
// I/O hardware pins
|
// I/O hardware pins
|
||||||
int adcPin; // Pin for incoming signal
|
int adcPin; // Pin for incoming signal
|
||||||
int dacPin; // Pin for outgoing signal
|
|
||||||
|
|
||||||
// General values
|
// General values
|
||||||
Hdlc hdlc; // We need a link control structure
|
Hdlc hdlc; // We need a link control structure
|
||||||
|
@ -116,6 +115,6 @@ INLINE Afsk *AFSK_CAST(KFile *fd) {
|
||||||
// and initialization functions
|
// and initialization functions
|
||||||
void afsk_adc_isr(Afsk *af, int8_t sample);
|
void afsk_adc_isr(Afsk *af, int8_t sample);
|
||||||
uint8_t afsk_dac_isr(Afsk *af);
|
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
|
#endif
|
|
@ -68,7 +68,7 @@ static void init(void)
|
||||||
ser_setbaudrate(&ser, 57600);
|
ser_setbaudrate(&ser, 57600);
|
||||||
|
|
||||||
// Create a modem context
|
// Create a modem context
|
||||||
afsk_init(&afsk, ADC_CH, 0);
|
afsk_init(&afsk, ADC_CH);
|
||||||
// ... and a protocol context with the modem
|
// ... and a protocol context with the modem
|
||||||
mp1Init(&mp1, &afsk.fd, mp1Callback);
|
mp1Init(&mp1, &afsk.fd, mp1Callback);
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#define VERS_BUILD 377
|
#define VERS_BUILD 382
|
||||||
#define VERS_HOST "vixen"
|
#define VERS_HOST "vixen"
|
||||||
|
|
Loading…
Reference in New Issue