переименовала обработчики прерываний все к одному виду
This commit is contained in:
1 parent
d7010fba6e
commit
9e7aed4aa7
5 files changed
+14
-14
No files matched your search
@@ -145,8 +145,8 @@ void SoftwareSerial::handle_interrupt() // .ram_text
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void softSerial_handler_wrapper(void) __attribute__((noinline, section(".ram_text")));
|
||||
extern "C" void softSerial_handler_wrapper(void)
|
||||
extern "C" void softSerial_interrupt_handler(void) __attribute__((noinline, section(".ram_text")));
|
||||
extern "C" void softSerial_interrupt_handler(void)
|
||||
{
|
||||
SoftwareSerial::handle_interrupt();
|
||||
}
|
||||
@@ -197,7 +197,7 @@ void SoftwareSerial::setRX(uint8_t rx)
|
||||
_int_maskLine = digitalPinToGpioIntLine(_receivePin);
|
||||
|
||||
// attach interrupt to rx pin if available
|
||||
attachInterrupt(digitalPinToInterrupt(_receivePin), softSerial_handler_wrapper, _inverse_logic ? RISING : FALLING);
|
||||
attachInterrupt(digitalPinToInterrupt(_receivePin), softSerial_interrupt_handler, _inverse_logic ? RISING : FALLING);
|
||||
// turn on pull up for rx if logic is not inverse
|
||||
if (!_inverse_logic)
|
||||
{
|
||||
|
||||
@@ -309,7 +309,7 @@ void TwoWire::onRequest( void (*function)(void) )
|
||||
}
|
||||
|
||||
// С function for trap handler
|
||||
extern "C" void wire_handler_wrapper(void)
|
||||
extern "C" void wire_interrupt_handler(void)
|
||||
{
|
||||
twi_interruptHandler();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user