Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Robey Pointer
reform
Commits
90a012c8
Commit
90a012c8
authored
Sep 07, 2021
by
Robey Pointer
Browse files
Merge branch 'master' into robey
parents
f0324df1
35e1ace1
Changes
1
Hide whitespace changes
Inline
Side-by-side
reform2-keyboard-fw/controller.c
View file @
90a012c8
...
...
@@ -184,7 +184,7 @@ void controller_turn_off_keyboard(void) {
do
{
wdt_reset
();
WDTCSR
=
(
1
<<
WDCE
)
|
(
1
<<
WDE
);
// Enable writes to watchdog
WDTCSR
=
(
1
<<
WDIE
)
|
(
1
<<
WDE
)
|
(
1
<<
WDP2
)
|
(
1
<<
WDP1
)
|
(
1
<<
WDP0
)
;
// Interrupt mode, 1s timeout
WDTCSR
=
(
1
<<
WDIE
)
|
(
1
<<
WDE
)
|
(
1
<<
WDP2
)
|
(
1
<<
WDP1
);
// Interrupt mode, 1s timeout
// Enter Power-save mode
set_sleep_mode
(
SLEEP_MODE_PWR_DOWN
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment