mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-22 18:45:01 +02:00
More work on Teensy interrupts.
This commit is contained in:
@@ -73,7 +73,7 @@ const uint16_t DC_OFFSET = 2048U;
|
||||
extern "C" {
|
||||
void ADC_Handler()
|
||||
{
|
||||
io.interrupt();
|
||||
io.interrupt(0U);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ void CIO::initInt()
|
||||
void CIO::startInt()
|
||||
{
|
||||
if (ADC->ADC_ISR & ADC_ISR_EOC_Chan) // Ensure there was an End-of-Conversion and we read the ISR reg
|
||||
io.interrupt();
|
||||
io.interrupt(0U);
|
||||
|
||||
// Set up the ADC
|
||||
NVIC_EnableIRQ(ADC_IRQn); // Enable ADC interrupt vector
|
||||
@@ -157,7 +157,7 @@ void CIO::startInt()
|
||||
digitalWrite(PIN_LED, HIGH);
|
||||
}
|
||||
|
||||
void CIO::interrupt()
|
||||
void CIO::interrupt(uint8_t source)
|
||||
{
|
||||
if ((ADC->ADC_ISR & ADC_ISR_EOC_Chan) == ADC_ISR_EOC_Chan) { // Ensure there was an End-of-Conversion and we read the ISR reg
|
||||
uint8_t control = MARK_NONE;
|
||||
|
||||
Reference in New Issue
Block a user