Revert "Added ESP32 IR receive support (IRsend not implemented yet)."

This commit is contained in:
Rafi Khan
2017-04-05 10:27:46 -06:00
committed by GitHub
parent e0c2649b9f
commit 4cdac5fcc8
10 changed files with 8 additions and 74 deletions

View File

@@ -54,8 +54,6 @@ void IRsend::space (unsigned int time)
//
void IRsend::enableIROut (int khz)
{
// FIXME: implement ESP32 support, see IR_TIMER_USE_ESP32 in boarddefs.h
#ifndef ESP32
// Disable the Timer2 Interrupt (which is used for receiving IR)
TIMER_DISABLE_INTR; //Timer2 Overflow Interrupt
@@ -68,7 +66,6 @@ void IRsend::enableIROut (int khz)
// CS2 = 000: no prescaling
// The top value for the timer. The modulation frequency will be SYSCLOCK / 2 / OCR2A.
TIMER_CONFIG_KHZ(khz);
#endif
}
//+=============================================================================