mirror of
https://github.com/C0ntroller/keyboard.git
synced 2024-11-22 06:24:49 +01:00
Move interuppt functions to RAM
This commit is contained in:
parent
345412c33b
commit
ab48f69b6c
@ -82,7 +82,7 @@ char findCurrentArrPin() {
|
||||
}
|
||||
|
||||
// Set the next self drive pin
|
||||
void nextSelfDrivePin() {
|
||||
FASTRUN void nextSelfDrivePin() {
|
||||
// Set the current pin to high
|
||||
digitalWriteFast(self_drive_pins[curr_self_drive_pin], HIGH);
|
||||
// Set the next pin
|
||||
@ -90,7 +90,7 @@ void nextSelfDrivePin() {
|
||||
}
|
||||
|
||||
// Interrupt for power supply check
|
||||
void powerStateChanged() {
|
||||
FASTRUN void powerStateChanged() {
|
||||
unsigned char state = digitalReadFast(POWER_SUPPLY_CHECK_PIN);
|
||||
// ! inverted
|
||||
if (state == LOW) {
|
||||
|
Loading…
Reference in New Issue
Block a user