Proper AVR preemptive interrupt handling (#10501)

Co-Authored-By: ejtagle <ejtagle@hotmail.com>
This commit is contained in:
Scott Lahteine
2018-04-23 20:47:31 -05:00
committed by GitHub
parent 0764981aa1
commit 51004e003d
5 changed files with 47 additions and 38 deletions

View File

@@ -54,6 +54,7 @@ extern Stepper stepper;
#define ENABLE_STEPPER_DRIVER_INTERRUPT() SBI(TIMSK1, OCIE1A)
#define DISABLE_STEPPER_DRIVER_INTERRUPT() CBI(TIMSK1, OCIE1A)
#define STEPPER_ISR_ENABLED() TEST(TIMSK1, OCIE1A)
// intRes = intIn1 * intIn2 >> 16
// uses: