-
Notifications
You must be signed in to change notification settings - Fork 72
V1.13 Firmware updates #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1908e9d
V1.13.1 - Updates
ClutchplateDude a0b89df
Bug fix
ClutchplateDude 518e897
Removed hemi config from stepper motor config
ClutchplateDude ecf99e0
V1.13.2 - Updates
ClutchplateDude e3eb15c
Fixes for config and meade commands
ClutchplateDude d800032
V1.13.3 - Updates
ClutchplateDude c850500
V1.13.3 - Updates
ClutchplateDude 351f560
V1.13.4 - Updates
ClutchplateDude 2b79480
Merge branch 'develop' into old-stepper-lib-in-12
ClutchplateDude fb2e579
V1.13.5 - Updates
ClutchplateDude b7294d2
V1.13.6 - Updates
ClutchplateDude ba0a8d6
Updates
ClutchplateDude 8281eb9
Whitespace/formatting fixes
ClutchplateDude 523b126
V1.13.0 - Release Updates
ClutchplateDude fe816e7
PR Updates
ClutchplateDude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#include "../Configuration.hpp" | ||
#include "Utility.hpp" | ||
#include "InterruptCallback.hpp" | ||
|
||
////////////////////////////////////// | ||
// This is an hardware-independent abstraction layer over | ||
// whatever timer is used for the hardware being run | ||
////////////////////////////////////// | ||
|
||
#ifndef NEW_STEPPER_LIB | ||
|
||
#if defined ESP32 | ||
// We don't support ESP32 boards in interrupt mode | ||
#elif defined __AVR_ATmega2560__ // Arduino Mega | ||
#define USE_TIMER_1 true | ||
#define USE_TIMER_2 true | ||
#define USE_TIMER_3 false | ||
#define USE_TIMER_4 false | ||
#define USE_TIMER_5 false | ||
PUSH_NO_WARNINGS | ||
#include "libs/TimerInterrupt/TimerInterrupt.h" | ||
POP_NO_WARNINGS | ||
#else | ||
#error Unrecognized board selected. Either implement interrupt code or define the board here. | ||
#endif | ||
|
||
#if defined(ESP32) | ||
|
||
#elif defined __AVR_ATmega2560__ | ||
|
||
bool InterruptCallback::setInterval(float intervalMs, interrupt_callback_p callback, void *payload) | ||
{ | ||
// We have requested to use Timer2 (see above) | ||
ITimer2.init(); | ||
|
||
// This timer supports the callback with payload | ||
return ITimer2.attachInterruptInterval<void *>(intervalMs, callback, payload, 0UL); | ||
} | ||
|
||
void InterruptCallback::stop() | ||
{ | ||
ITimer2.stopTimer(); | ||
} | ||
|
||
void InterruptCallback::start() | ||
{ | ||
ITimer2.restartTimer(); | ||
} | ||
|
||
#endif | ||
#endif |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.