diff options
author | Joel Challis <git@zvecr.com> | 2020-03-06 01:39:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 01:39:54 +0000 |
commit | b368db9e027015ba393e87cee416d8d5b2b56a8c (patch) | |
tree | 413707612cca0b75339c9d2a7962e6b5b3bf4046 /keyboards/fortitude60/rev1 | |
parent | 76189d9a282cc32bf2ff88a84a6374ebb8908433 (diff) | |
download | qmk_firmware-b368db9e027015ba393e87cee416d8d5b2b56a8c.tar.gz qmk_firmware-b368db9e027015ba393e87cee416d8d5b2b56a8c.zip |
Refactor fortitude60 to use split_common (#8113)
Diffstat (limited to 'keyboards/fortitude60/rev1')
-rw-r--r-- | keyboards/fortitude60/rev1/config.h | 12 | ||||
-rw-r--r-- | keyboards/fortitude60/rev1/rev1.c | 21 | ||||
-rw-r--r-- | keyboards/fortitude60/rev1/rev1.h | 13 | ||||
-rw-r--r-- | keyboards/fortitude60/rev1/rules.mk | 3 |
4 files changed, 12 insertions, 37 deletions
diff --git a/keyboards/fortitude60/rev1/config.h b/keyboards/fortitude60/rev1/config.h index 98f610461c..aa5a6f3b0f 100644 --- a/keyboards/fortitude60/rev1/config.h +++ b/keyboards/fortitude60/rev1/config.h @@ -15,8 +15,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef REV1_CONFIG_H -#define REV1_CONFIG_H +#pragma once + +#include "config_common.h" /* USB Device descriptor parameter */ #define VENDOR_ID 0xCB10 @@ -38,6 +39,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. /* COL2ROW or 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 D2 + /* define if matrix has ghost */ //#define MATRIX_HAS_GHOST @@ -79,5 +85,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. //#define NO_ACTION_ONESHOT //#define NO_ACTION_MACRO //#define NO_ACTION_FUNCTION - -#endif diff --git a/keyboards/fortitude60/rev1/rev1.c b/keyboards/fortitude60/rev1/rev1.c index 5f4cd32f69..520a869e57 100644 --- a/keyboards/fortitude60/rev1/rev1.c +++ b/keyboards/fortitude60/rev1/rev1.c @@ -1,22 +1 @@ #include "rev1.h" - -#ifdef SSD1306OLED -void led_set_kb(uint8_t usb_led) { - // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here - led_set_user(usb_led); -} -#endif - -void matrix_init_kb(void) { - - // // green led on - // DDRD |= (1<<5); - // PORTD &= ~(1<<5); - - // // orange led on - // DDRB |= (1<<0); - // PORTB &= ~(1<<0); - - matrix_init_user(); -}; - diff --git a/keyboards/fortitude60/rev1/rev1.h b/keyboards/fortitude60/rev1/rev1.h index bb133b3d89..ed62b2683e 100644 --- a/keyboards/fortitude60/rev1/rev1.h +++ b/keyboards/fortitude60/rev1/rev1.h @@ -1,18 +1,9 @@ -#ifndef REV1_H -#define REV1_H +#pragma once #include "fortitude60.h" #include "quantum.h" -#ifdef USE_I2C -#include <stddef.h> -#ifdef __AVR__ - #include <avr/io.h> - #include <avr/interrupt.h> -#endif -#endif - // Standard Keymap // (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left) #define LAYOUT( \ @@ -34,5 +25,3 @@ { R35, R34, R33, R32, R31, R30 }, \ { RT0, RT1, RT2, RT3, RT4, RT5 } \ } - -#endif diff --git a/keyboards/fortitude60/rev1/rules.mk b/keyboards/fortitude60/rev1/rules.mk index e69de29bb2..fff00a1b51 100644 --- a/keyboards/fortitude60/rev1/rules.mk +++ b/keyboards/fortitude60/rev1/rules.mk @@ -0,0 +1,3 @@ +# Revision Specific Build Options +# change yes to no to disable +# |