mirror of
https://github.com/C0ntroller/keyboard.git
synced 2024-11-22 14:34:48 +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
|
// Set the next self drive pin
|
||||||
void nextSelfDrivePin() {
|
FASTRUN void nextSelfDrivePin() {
|
||||||
// Set the current pin to high
|
// Set the current pin to high
|
||||||
digitalWriteFast(self_drive_pins[curr_self_drive_pin], HIGH);
|
digitalWriteFast(self_drive_pins[curr_self_drive_pin], HIGH);
|
||||||
// Set the next pin
|
// Set the next pin
|
||||||
@ -90,7 +90,7 @@ void nextSelfDrivePin() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Interrupt for power supply check
|
// Interrupt for power supply check
|
||||||
void powerStateChanged() {
|
FASTRUN void powerStateChanged() {
|
||||||
unsigned char state = digitalReadFast(POWER_SUPPLY_CHECK_PIN);
|
unsigned char state = digitalReadFast(POWER_SUPPLY_CHECK_PIN);
|
||||||
// ! inverted
|
// ! inverted
|
||||||
if (state == LOW) {
|
if (state == LOW) {
|
||||||
|
Loading…
Reference in New Issue
Block a user