Added bluetooth and user I/O drivers

This commit is contained in:
Mark Qvist 2019-01-29 17:52:56 +01:00
parent f1a951e508
commit 8e836c629c
2 changed files with 4 additions and 3 deletions

View File

@ -602,7 +602,6 @@ void AFSK_adc_isr(Afsk *afsk, int8_t currentSample) {
} }
inline void timed_functions(void) { inline void timed_functions(void) {
update_led_status();
if (_clock % CLOCK_TICKS_PER_10_MS == 0) { if (_clock % CLOCK_TICKS_PER_10_MS == 0) {
sd_scheduler(); sd_scheduler();
} }
@ -625,11 +624,12 @@ ISR(TIMER3_CAPT_vect) {
ISR(ADC_vect) { ISR(ADC_vect) {
TIFR1 = _BV(ICF1); TIFR1 = _BV(ICF1);
if (CONFIG_FULL_DUPLEX || !hw_afsk_dac_isr) { if (!hw_afsk_dac_isr) {
AFSK_adc_isr(AFSK_modem, (ADCH - 128)); AFSK_adc_isr(AFSK_modem, (ADCH - 128));
timed_functions();
} }
timed_functions(); update_led_status();
++_clock; ++_clock;
} }

View File

@ -9,6 +9,7 @@
#include "util/FIFO.h" #include "util/FIFO.h"
#include "protocol/HDLC.h" #include "protocol/HDLC.h"
// TODO: Optimise RAM by moving this to progmem
#define SIN_LEN 512 #define SIN_LEN 512
static const uint8_t sine_table[] = static const uint8_t sine_table[] =
{ {