|
|
|
@ -40,13 +40,17 @@ void set_eic_handler(uint8_t channel, uint8_t eic_handler) {
|
|
|
|
|
void shared_eic_handler(uint8_t channel) {
|
|
|
|
|
uint8_t handler = eic_channel_handler[channel];
|
|
|
|
|
switch (handler) {
|
|
|
|
|
#if CIRCUITPY_PULSEIO
|
|
|
|
|
case EIC_HANDLER_PULSEIN:
|
|
|
|
|
pulsein_interrupt_handler(channel);
|
|
|
|
|
break;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if CIRCUITPY_ROTARYIO
|
|
|
|
|
case EIC_HANDLER_INCREMENTAL_ENCODER:
|
|
|
|
|
incrementalencoder_interrupt_handler(channel);
|
|
|
|
|
break;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|