Skip to content
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

Use keyboard_pre_init_kb(void) at keyboard level #19091

Merged
merged 1 commit into from
Nov 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion keyboards/bastardkb/dilemma/dilemma.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void matrix_init_kb(void) {
// Forward declare RP2040 SDK declaration.
void gpio_init(uint gpio);

void keyboard_pre_init_user(void) {
void keyboard_pre_init_kb(void) {
// Ensures that GP26 through GP29 are initialized as digital inputs (as
// opposed to analog inputs). These GPIOs are shared with A0 through A3,
// respectively. On RP2040-B2 and later, the digital inputs are disabled by
Expand All @@ -340,4 +340,6 @@ void keyboard_pre_init_user(void) {
gpio_init(GP27);
gpio_init(GP28);
gpio_init(GP29);

keyboard_pre_init_user();
}