mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-19 06:40:33 -04:00
Indentation mess cleanup
This commit is contained in:
parent
c7ff5cc5f1
commit
80459cbbd3
6 changed files with 1077 additions and 1077 deletions
|
@ -88,7 +88,7 @@ void hw_afsk_adcInit(int ch, Afsk *_modem)
|
||||||
|
|
||||||
ADCSRA = BV(ADEN) | // ADC Enable - Yes, we need to turn it on :)
|
ADCSRA = BV(ADEN) | // ADC Enable - Yes, we need to turn it on :)
|
||||||
BV(ADSC) | // ADC Start Converting - Tell it to start doing conversions
|
BV(ADSC) | // ADC Start Converting - Tell it to start doing conversions
|
||||||
BV(ADATE) | // Enable autotriggering - Enables the autotrigger on complete
|
BV(ADATE)| // Enable autotriggering - Enables the autotrigger on complete
|
||||||
BV(ADIE) | // ADC Interrupt enable - Enables an interrupt to be called
|
BV(ADIE) | // ADC Interrupt enable - Enables an interrupt to be called
|
||||||
BV(ADPS2); // Enable prescaler flag 2 (1-0-0 = division by 16 = 1MHz)
|
BV(ADPS2); // Enable prescaler flag 2 (1-0-0 = division by 16 = 1MHz)
|
||||||
// This sets the ADC to run at 1MHz. This is out of spec,
|
// This sets the ADC to run at 1MHz. This is out of spec,
|
||||||
|
@ -159,7 +159,7 @@ DECLARE_ISR(ADC_vect) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * "finally" is probably the wrong description here.
|
// (*) "finally" is probably the wrong description here.
|
||||||
// "All the f'ing time" is probably more accurate :)
|
// "All the f'ing time" is probably more accurate :)
|
||||||
// but it felt like it was a long way down here,
|
// but it felt like it was a long way down here,
|
||||||
// writing all the explanations. I think this is a
|
// writing all the explanations. I think this is a
|
||||||
|
|
|
@ -36,7 +36,7 @@ static uint8_t serialBuffer[MP1_MAX_DATA_SIZE]; // This is a buffer for incomin
|
||||||
static int sbyte; // For holding byte read from serial port
|
static int sbyte; // For holding byte read from serial port
|
||||||
static size_t serialLen = 0; // Counter for counting length of data from serial
|
static size_t serialLen = 0; // Counter for counting length of data from serial
|
||||||
static bool sertx = false; // Flag signifying whether it's time to send data
|
static bool sertx = false; // Flag signifying whether it's time to send data
|
||||||
// Received on the serial port.
|
// received on the serial port.
|
||||||
#define SER_BUFFER_FULL (serialLen < MP1_MAX_DATA_SIZE-1)
|
#define SER_BUFFER_FULL (serialLen < MP1_MAX_DATA_SIZE-1)
|
||||||
|
|
||||||
//////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#define VERS_BUILD 1756
|
#define VERS_BUILD 1758
|
||||||
#define VERS_HOST "shard"
|
#define VERS_HOST "shard"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue