mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
More work on Teensy interrupts.
This commit is contained in:
parent
823b68d5ed
commit
e97c1dc746
4 changed files with 50 additions and 35 deletions
|
|
@ -68,7 +68,7 @@ extern "C" {
|
|||
void TIM2_IRQHandler() {
|
||||
if (TIM_GetITStatus(TIM2, TIM_IT_Update) != RESET) {
|
||||
TIM_ClearITPendingBit(TIM2, TIM_IT_Update);
|
||||
io.interrupt();
|
||||
io.interrupt(0U);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -163,7 +163,7 @@ void CIO::initInt()
|
|||
void CIO::startInt()
|
||||
{
|
||||
if ((ADC_GetFlagStatus(ADC1, ADC_FLAG_EOC) != RESET))
|
||||
io.interrupt();
|
||||
io.interrupt(0U);
|
||||
|
||||
// ADC1 PA0 analog input
|
||||
// ADC2 PA1 analog input
|
||||
|
|
@ -283,7 +283,7 @@ void CIO::startInt()
|
|||
GPIO_SetBits(PORT_LED, PIN_LED);
|
||||
}
|
||||
|
||||
void CIO::interrupt()
|
||||
void CIO::interrupt(uint8_t source)
|
||||
{
|
||||
uint8_t control = MARK_NONE;
|
||||
uint16_t sample = DC_OFFSET;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue