summaryrefslogtreecommitdiff
path: root/keyboards/handwired/symmetric70_proto/proton_c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/symmetric70_proto/proton_c')
-rw-r--r--keyboards/handwired/symmetric70_proto/proton_c/config.h165
-rw-r--r--keyboards/handwired/symmetric70_proto/proton_c/fast/config.h44
-rw-r--r--keyboards/handwired/symmetric70_proto/proton_c/fast/readme.md1
-rw-r--r--keyboards/handwired/symmetric70_proto/proton_c/fast/rules.mk6
-rw-r--r--keyboards/handwired/symmetric70_proto/proton_c/normal/config.h36
-rw-r--r--keyboards/handwired/symmetric70_proto/proton_c/normal/readme.md1
-rw-r--r--keyboards/handwired/symmetric70_proto/proton_c/normal/rules.mk6
-rw-r--r--keyboards/handwired/symmetric70_proto/proton_c/proton_c.c12
-rw-r--r--keyboards/handwired/symmetric70_proto/proton_c/readme.md26
-rw-r--r--keyboards/handwired/symmetric70_proto/proton_c/rules.mk23
10 files changed, 320 insertions, 0 deletions
diff --git a/keyboards/handwired/symmetric70_proto/proton_c/config.h b/keyboards/handwired/symmetric70_proto/proton_c/config.h
new file mode 100644
index 0000000000..84586854f4
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/proton_c/config.h
@@ -0,0 +1,165 @@
+/*
+Copyright 2021 mtei
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0xFEED
+#define PRODUCT_ID 0x2BE5
+#define DEVICE_VER 0x0001
+#define MANUFACTURER mtei
+#define PRODUCT Symmetric70 prototype proton-c
+
+/* key matrix size */
+#define MATRIX_ROWS 5
+#define MATRIX_COLS 16
+
+/* Proton-C **************************
+ ====
+ +-------====------+
+ DEBUG | A9/TX/SCL2 5V | (VUSB)
+ | A10/RX/SDA2 GND |
+ | GND FLASH |
+ | GND 3.3V | (VCC)
+ C15 | B7/SDA1 A2 | C0
+ C14 | B6/SCL1 A1 | C1
+ C13 | B5 A0 | C2
+ C12 | B4 SCL1/B8 | C3
+ C11 | B3 SCLK/B13 | C4
+ C10 | B2 MISO/B14 | C5
+ C9 | B1 MOSI/B15 | C6
+ C8 | B0 SDA1/B9 | C7
+ +---+ +---+
+ +---+ +---+
+ R0 | A4 B10 |
+ R1 | A5 B11 |
+ R2 | A6 B12 |
+ R3 | A7 A14 |
+ R4 | A8 A13 |
+ | A15 RST |
+ +-----------------+
+***************************************/
+
+#define UNUSED_PINS
+
+/* COL2ROW, ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/*
+ * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
+ */
+//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
+
+//#define BACKLIGHT_PIN B7
+//#define BACKLIGHT_LEVELS 3
+//#define BACKLIGHT_BREATHING
+
+//#define RGB_DI_PIN E2
+//#ifdef RGB_DI_PIN
+//# define RGBLED_NUM 16
+//# define RGBLIGHT_HUE_STEP 8
+//# define RGBLIGHT_SAT_STEP 8
+//# define RGBLIGHT_VAL_STEP 8
+//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
+//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
+/*== all animations enable ==*/
+//# define RGBLIGHT_ANIMATIONS
+/*== or choose animations ==*/
+//# define RGBLIGHT_EFFECT_BREATHING
+//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
+//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
+//# define RGBLIGHT_EFFECT_SNAKE
+//# define RGBLIGHT_EFFECT_KNIGHT
+//# define RGBLIGHT_EFFECT_CHRISTMAS
+//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
+//# define RGBLIGHT_EFFECT_RGB_TEST
+//# define RGBLIGHT_EFFECT_ALTERNATING
+/*== customize breathing effect ==*/
+/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
+//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
+/*==== use exp() and sin() ====*/
+//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
+//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
+//#endif
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
+#define DEBOUNCE 5
+
+/* define if matrix has ghost (lacks anti-ghosting diodes) */
+//#define MATRIX_HAS_GHOST
+
+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
+#define LOCKING_SUPPORT_ENABLE
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
+
+/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
+ * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
+ */
+//#define GRAVE_ESC_CTRL_OVERRIDE
+
+/*
+ * Force NKRO
+ *
+ * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
+ * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
+ * makefile for this to work.)
+ *
+ * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
+ * until the next keyboard reset.
+ *
+ * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
+ * fully operational during normal computer usage.
+ *
+ * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
+ * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
+ * bootmagic, NKRO mode will always be enabled until it is toggled again during a
+ * power-up.
+ *
+ */
+//#define FORCE_NKRO
+
+/*
+ * Feature disable options
+ * These options are also useful to firmware size reduction.
+ */
+
+/* disable debug print */
+//#define NO_DEBUG
+
+/* disable print */
+//#define NO_PRINT
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+//#define NO_ACTION_ONESHOT
+
+/* disable these deprecated features by default */
+#define NO_ACTION_MACRO
+#define NO_ACTION_FUNCTION
+
+/* Bootmagic Lite key configuration */
+//#define BOOTMAGIC_LITE_ROW 0
+//#define BOOTMAGIC_LITE_COLUMN 0
+
+#ifdef DEBUG_CONFIG
+# define MATRIX_DEBUG_PIN A9
+# include "../debug_config.h"
+#endif
diff --git a/keyboards/handwired/symmetric70_proto/proton_c/fast/config.h b/keyboards/handwired/symmetric70_proto/proton_c/fast/config.h
new file mode 100644
index 0000000000..48c3ec1c09
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/proton_c/fast/config.h
@@ -0,0 +1,44 @@
+/*
+Copyright 2021 mtei
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+#pragma once
+
+#define MATRIX_OUT_PORTS (Port_A, MCU_GPIO, A0)
+#define MATRIX_OUT_PINS \
+ (0, Port_A, 4), \
+ (1, Port_A, 5), \
+ (2, Port_A, 6), \
+ (3, Port_A, 7), \
+ (4, Port_A, 8)
+#define MATRIX_IN_PORTS \
+ (Port_A, MCU_GPIO, A0), (Port_B, MCU_GPIO, B0)
+#define MATRIX_IN_PINS \
+ (0, Port_A, 2), \
+ (1, Port_A, 1), \
+ (2, Port_A, 0), \
+ (3, Port_B, 8), \
+ (4, Port_B, 13), \
+ (5, Port_B, 14), \
+ (6, Port_B, 15), \
+ (7, Port_B, 9), \
+ (8, Port_B, 0), \
+ (9, Port_B, 1), \
+ (10, Port_B, 2), \
+ (11, Port_B, 3), \
+ (12, Port_B, 4), \
+ (13, Port_B, 5), \
+ (14, Port_B, 6), \
+ (15, Port_B, 7)
diff --git a/keyboards/handwired/symmetric70_proto/proton_c/fast/readme.md b/keyboards/handwired/symmetric70_proto/proton_c/fast/readme.md
new file mode 100644
index 0000000000..9d1a8d8ebf
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/proton_c/fast/readme.md
@@ -0,0 +1 @@
+[Look here](../readme.md)
diff --git a/keyboards/handwired/symmetric70_proto/proton_c/fast/rules.mk b/keyboards/handwired/symmetric70_proto/proton_c/fast/rules.mk
new file mode 100644
index 0000000000..de489fcabd
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/proton_c/fast/rules.mk
@@ -0,0 +1,6 @@
+CUSTOM_MATRIX = yes
+SRC += matrix_common.c
+SRC += matrix_fast/matrix.c
+
+KEYBOARD_LOCAL_FEATURES_MK := $(dir $(lastword $(MAKEFILE_LIST)))../../local_features.mk
+include $(KEYBOARD_LOCAL_FEATURES_MK)
diff --git a/keyboards/handwired/symmetric70_proto/proton_c/normal/config.h b/keyboards/handwired/symmetric70_proto/proton_c/normal/config.h
new file mode 100644
index 0000000000..942e54c799
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/proton_c/normal/config.h
@@ -0,0 +1,36 @@
+/*
+Copyright 2021 mtei
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+#pragma once
+
+/*
+ * Keyboard Matrix Assignments
+ *
+ * Change this to how you wired your keyboard
+ * COLS: AVR pins used for columns, left to right
+ * ROWS: AVR pins used for rows, top to bottom
+ * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
+ * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
+ *
+ */
+#define MATRIX_ROW_PINS { A4, A5, A6, A7, A8 }
+#define MATRIX_COL_PINS { A2, A1, A0, B8, B13, B14, B15, B9, B0, B1, B2, B3, B4, B5, B6, B7 }
+
+#ifdef MATRIX_IO_DELAY_ADAPTIVE_FAST
+# define MATRIX_IO_DELAY_PORTS A0, B0
+// fedcba9876543210 fedcba9876543210
+# define MATRIX_IO_DELAY_MASKS 0b0000000000000111, 0b1110001111111111
+#endif
diff --git a/keyboards/handwired/symmetric70_proto/proton_c/normal/readme.md b/keyboards/handwired/symmetric70_proto/proton_c/normal/readme.md
new file mode 100644
index 0000000000..9d1a8d8ebf
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/proton_c/normal/readme.md
@@ -0,0 +1 @@
+[Look here](../readme.md)
diff --git a/keyboards/handwired/symmetric70_proto/proton_c/normal/rules.mk b/keyboards/handwired/symmetric70_proto/proton_c/normal/rules.mk
new file mode 100644
index 0000000000..0b2b707ef8
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/proton_c/normal/rules.mk
@@ -0,0 +1,6 @@
+CUSTOM_MATRIX = yes
+SRC += matrix_common.c
+SRC += matrix_debug/matrix.c
+
+KEYBOARD_LOCAL_FEATURES_MK := $(dir $(lastword $(MAKEFILE_LIST)))../../local_features.mk
+include $(KEYBOARD_LOCAL_FEATURES_MK)
diff --git a/keyboards/handwired/symmetric70_proto/proton_c/proton_c.c b/keyboards/handwired/symmetric70_proto/proton_c/proton_c.c
new file mode 100644
index 0000000000..3fe5bc297c
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/proton_c/proton_c.c
@@ -0,0 +1,12 @@
+#include "quantum.h"
+
+#ifndef MATRIX_IO_DELAY_DEFAULT
+/* In tmk_core/common/wait.h, the implementation for PROTOCOL_CHIBIOS
+ * calls 'chThdSleepMicroseconds(1)' when 'wait_us(0)'.
+ * However, 'wait_us(0)' should do nothing. */
+void matrix_output_unselect_delay(void) {
+# if !defined(MATRIX_IO_DELAY) || MATRIX_IO_DELAY > 0
+ matrix_io_delay();
+# endif
+}
+#endif
diff --git a/keyboards/handwired/symmetric70_proto/proton_c/readme.md b/keyboards/handwired/symmetric70_proto/proton_c/readme.md
new file mode 100644
index 0000000000..fc10a2e634
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/proton_c/readme.md
@@ -0,0 +1,26 @@
+# Proton C version of symmetric70_proto
+
+![symmetric70_proto](https://i.imgur.com/SCtlXOS.jpg)
+
+A compact 70keys keyboard (prototype) designed by mtei
+
+* Keyboard Maintainer: [mtei](https://github.com/mtei)
+* Hardware Supported: Proton C (STM32F303CCT6)
+* Hardware Availability: This is just prototype
+
+Make example for this keyboard (after setting up your build environment):
+
+ make handwired/symmetric70_proto/proton_c/normal:default
+ make handwired/symmetric70_proto/proton_c/fast:default
+
+Flashing example for this keyboard:
+
+ make handwired/symmetric70_proto/proton_c/normal:default:flash
+ make handwired/symmetric70_proto/proton_c/fast:default:flash
+
+Testing options: (see more options: [local_features.mk](../local_features.mk), [matrix_debug](../matrix_debug/readme.md) and [matrix_fast](../matrix_fast/readme.md) )
+
+ make MTEST=mdelay0 handwired/symmetric70_proto/proton_c/normal:default:flash
+ make MTEST=mdelay0 handwired/symmetric70_proto/proton_c/fast:default:flash
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/handwired/symmetric70_proto/proton_c/rules.mk b/keyboards/handwired/symmetric70_proto/proton_c/rules.mk
new file mode 100644
index 0000000000..e8b0948461
--- /dev/null
+++ b/keyboards/handwired/symmetric70_proto/proton_c/rules.mk
@@ -0,0 +1,23 @@
+# MCU name
+MCU = STM32F303
+BOARD = QMK_PROTON_C
+
+# Bootloader selection
+BOOTLOADER = stm32-dfu
+
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
+MOUSEKEY_ENABLE = no # Mouse keys
+EXTRAKEY_ENABLE = no # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # Commands for debug and configuration
+# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+NKRO_ENABLE = no # USB Nkey Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+BLUETOOTH_ENABLE = no # Enable Bluetooth
+AUDIO_ENABLE = no # Audio output