-
-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
168 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
platforms/chibios/converters/elite_c_to_elite_pi/_pin_defs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright 2022 QMK | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
// Left side (front) | ||
#define D3 0U | ||
#define D2 1U | ||
// GND | ||
// GND | ||
#define D1 2U | ||
#define D0 3U | ||
#define D4 4U | ||
#define C6 5U | ||
#define D7 6U | ||
#define E6 7U | ||
#define B4 8U | ||
#define B5 9U | ||
|
||
// Right side (front) | ||
// RAW | ||
// GND | ||
// RESET | ||
// VCC | ||
#define F4 29U | ||
#define F5 28U | ||
#define F6 27U | ||
#define F7 26U | ||
#define B1 22U | ||
#define B3 20U | ||
#define B2 23U | ||
#define B6 21U | ||
|
||
// Bottom row | ||
#define B7 12U | ||
#define D5 13U | ||
#define C7 14U | ||
#define F1 15U | ||
#define F0 16U |
9 changes: 9 additions & 0 deletions
9
platforms/chibios/converters/elite_c_to_elite_pi/converter.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Elite-Pi MCU settings for converting AVR projects | ||
MCU := RP2040 | ||
BOARD := QMK_PM2040 | ||
BOOTLOADER := rp2040 | ||
|
||
# These are defaults based on what has been implemented for RP2040 boards | ||
SERIAL_DRIVER ?= vendor | ||
WS2812_DRIVER ?= vendor | ||
BACKLIGHT_DRIVER ?= software |
54 changes: 54 additions & 0 deletions
54
platforms/chibios/converters/elite_c_to_stemcell/_pin_defs.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Copyright 2022 Mega Mind (@megamind4089) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
// Pindefs for v2.0.0 | ||
// https://megamind4089.github.io/STeMCell/pinout/ | ||
|
||
// Left side (front) | ||
#ifdef STEMCELL_UART_SWAP | ||
# define D3 PAL_LINE(GPIOA, 3) | ||
# define D2 PAL_LINE(GPIOA, 2) | ||
#else | ||
# define D3 PAL_LINE(GPIOA, 2) | ||
# define D2 PAL_LINE(GPIOA, 3) | ||
#endif | ||
// GND | ||
// GND | ||
#ifdef STEMCELL_I2C_SWAP | ||
# define D1 PAL_LINE(GPIOB, 6) | ||
# define D0 PAL_LINE(GPIOB, 7) | ||
#else | ||
# define D1 PAL_LINE(GPIOB, 7) | ||
# define D0 PAL_LINE(GPIOB, 6) | ||
#endif | ||
|
||
#define D4 PAL_LINE(GPIOA, 15) | ||
#define C6 PAL_LINE(GPIOB, 3) | ||
#define D7 PAL_LINE(GPIOB, 4) | ||
#define E6 PAL_LINE(GPIOB, 5) | ||
#define B4 PAL_LINE(GPIOB, 8) | ||
#define B5 PAL_LINE(GPIOB, 9) | ||
|
||
// Right side (front) | ||
// RAW | ||
// GND | ||
// RESET | ||
// VCC | ||
#define F4 PAL_LINE(GPIOB, 10) | ||
#define F5 PAL_LINE(GPIOB, 2) | ||
#define F6 PAL_LINE(GPIOB, 1) | ||
#define F7 PAL_LINE(GPIOB, 0) | ||
|
||
#define B1 PAL_LINE(GPIOA, 5) | ||
#define B3 PAL_LINE(GPIOA, 6) | ||
#define B2 PAL_LINE(GPIOA, 7) | ||
#define B6 PAL_LINE(GPIOA, 4) | ||
|
||
// Bottom row | ||
#define B7 PAL_LINE(GPIOC, 13) | ||
#define D5 PAL_LINE(GPIOC, 14) | ||
#define C7 PAL_LINE(GPIOC, 15) | ||
#define F1 PAL_LINE(GPIOA, 0) | ||
#define F0 PAL_LINE(GPIOA, 1) |
18 changes: 18 additions & 0 deletions
18
platforms/chibios/converters/elite_c_to_stemcell/converter.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2022 Mega Mind (@megamind4089) | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
MCU := STM32F411 | ||
BOARD := STEMCELL | ||
BOOTLOADER := tinyuf2 | ||
|
||
SERIAL_DRIVER ?= usart | ||
WS2812_DRIVER ?= bitbang | ||
|
||
ifeq ($(strip $(STMC_US)), yes) | ||
OPT_DEFS += -DSTEMCELL_UART_SWAP | ||
endif | ||
|
||
ifeq ($(strip $(STMC_IS)), yes) | ||
OPT_DEFS += -DSTEMCELL_I2C_SWAP | ||
endif | ||
|