Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
bfcf570d
Commit
bfcf570d
authored
Oct 7, 2018
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Try ISR_ALIASOF for Endstop Interrupts
parent
c0d9058e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Marlin/src/HAL/HAL_AVR/endstop_interrupts.h
+3
-4
3 additions, 4 deletions
Marlin/src/HAL/HAL_AVR/endstop_interrupts.h
with
3 additions
and
4 deletions
Marlin/src/HAL/HAL_AVR/endstop_interrupts.h
+
3
−
4
View file @
bfcf570d
...
@@ -85,22 +85,21 @@ void pciSetup(const int8_t pin) {
...
@@ -85,22 +85,21 @@ void pciSetup(const int8_t pin) {
SBI
(
PCICR
,
digitalPinToPCICRbit
(
pin
));
// enable interrupt for the group
SBI
(
PCICR
,
digitalPinToPCICRbit
(
pin
));
// enable interrupt for the group
}
}
// Handlers for pin change interrupts
// Handlers for pin change interrupts
#ifdef PCINT0_vect
#ifdef PCINT0_vect
ISR
(
PCINT0_vect
)
{
endstop_ISR
();
}
ISR
(
PCINT0_vect
)
{
endstop_ISR
();
}
#endif
#endif
#ifdef PCINT1_vect
#ifdef PCINT1_vect
ISR
(
PCINT1_vect
)
{
endstop_ISR
();
}
ISR
(
PCINT1_vect
,
ISR_ALIASOF
(
PCINT0_vect
));
#endif
#endif
#ifdef PCINT2_vect
#ifdef PCINT2_vect
ISR
(
PCINT2_vect
)
{
endstop_ISR
();
}
ISR
(
PCINT2_vect
,
ISR_ALIASOF
(
PCINT0_vect
));
#endif
#endif
#ifdef PCINT3_vect
#ifdef PCINT3_vect
ISR
(
PCINT3_vect
)
{
endstop_ISR
();
}
ISR
(
PCINT3_vect
,
ISR_ALIASOF
(
PCINT0_vect
));
#endif
#endif
void
setup_endstop_interrupts
(
void
)
{
void
setup_endstop_interrupts
(
void
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment