-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from rv0/fix_trig_roll
Allow rolling of the trigger outs + some refactoring
- Loading branch information
Showing
11 changed files
with
136 additions
and
146 deletions.
There are no files selected for viewing
This file contains 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 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,18 @@ | ||
// All function related to dinsync handling. | ||
|
||
void Set_Dinsync_Clock_High() { | ||
PORTD |= (1<<4); // Set the clock high. | ||
dinsync_clock_timeout = 4; // 4ms clock. | ||
} | ||
|
||
void Set_Dinsync_Clock_Low() { | ||
PORTD &= ~(1<<4); // Lower the clock signal. | ||
} | ||
|
||
void Set_Dinsync_Run_High() { | ||
PORTD |= (1<<5); // Set Run = 1. | ||
} | ||
|
||
void Set_Dinsync_Run_Low() { | ||
PORTD &= ~(1<<5); // Set Run = 0. | ||
} |
This file contains 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 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 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
Oops, something went wrong.