summaryrefslogtreecommitdiff
path: root/keyboards/custommk/ergostrafer/config.h
diff options
context:
space:
mode:
authorDavid Hoelscher <infinityis@users.noreply.github.com>2023-06-13 01:32:54 -0500
committerGitHub <noreply@github.com>2023-06-12 23:32:54 -0700
commitdabbc93df47815c4df42696de220684edd05f873 (patch)
tree473d48b07472b81e9933518c2b61dee362efc62d /keyboards/custommk/ergostrafer/config.h
parentca6921b1ba422e4276e45062a115bec854864a90 (diff)
[Keyboard] Add ErgoStrafer keyboard (#21195)
Diffstat (limited to 'keyboards/custommk/ergostrafer/config.h')
-rw-r--r--keyboards/custommk/ergostrafer/config.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/keyboards/custommk/ergostrafer/config.h b/keyboards/custommk/ergostrafer/config.h
new file mode 100644
index 0000000000..c5a0ec75b5
--- /dev/null
+++ b/keyboards/custommk/ergostrafer/config.h
@@ -0,0 +1,26 @@
+// Copyright 2023 customMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+// FRAM configuration
+#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN B7
+#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 4 // 48MHz / 4 = 12MHz; max supported by MB85R64 is 20MHz
+
+// SPI configuration
+#define SPI_DRIVER SPID1
+#define SPI_SCK_PIN B3
+#define SPI_SCK_PAL_MODE 5
+#define SPI_MOSI_PIN B5
+#define SPI_MOSI_PAL_MODE 5
+#define SPI_MISO_PIN B4
+#define SPI_MISO_PAL_MODE 5
+
+#define TAP_CODE_DELAY 10
+
+// Audio configuration
+#define AUDIO_PIN B8
+#define AUDIO_PWM_DRIVER PWMD4
+#define AUDIO_PWM_CHANNEL 3
+#define AUDIO_PWM_PAL_MODE 2
+#define AUDIO_STATE_TIMER GPTD5 \ No newline at end of file