forked from vial-kb/vial-qmk
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove rules.mk and add VIK configuration
- Loading branch information
Showing
8 changed files
with
101 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2024 splitkb.com (support@splitkb.com) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
//// VIK | ||
|
||
// GPIO1 = GP27 | ||
// GPIO2 = GP26 | ||
// CS = GP13 | ||
|
||
#if HAL_USE_I2C == TRUE | ||
# define I2C_DRIVER I2C0 | ||
# define I2C1_SDA_PIN GP16 | ||
# define I2C1_SCL_PIN GP17 | ||
#endif | ||
|
||
#if HAL_USE_SPI == TRUE | ||
# define SPI_DRIVER SPID1 | ||
# define SPI_SCK_PIN GP14 | ||
# define SPI_MOSI_PIN GP15 | ||
# define SPI_MISO_PIN GP12 | ||
# define SPI_USE_WAIT TRUE | ||
# define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
#endif | ||
|
||
#include_next <halconf.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,18 @@ | ||
// Copyright 2024 splitkb.com (support@splitkb.com) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
#include_next <mcuconf.h> | ||
|
||
//// VIK | ||
|
||
#if HAL_USE_I2C == TRUE | ||
# undef RP_I2C_USE_I2C0 | ||
# define RP_I2C_USE_I2C0 TRUE | ||
#endif | ||
|
||
#if HAL_USE_SPI == TRUE | ||
# undef RP_SPI_USE_SPI1 | ||
# define RP_SPI_USE_SPI1 TRUE | ||
#endif |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2024 splitkb.com (support@splitkb.com) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
//// VIK | ||
|
||
// GPIO1 = GP27 | ||
// GPIO2 = GP26 | ||
// CS = GP13 | ||
|
||
#if HAL_USE_I2C == TRUE | ||
# define I2C_DRIVER I2C0 | ||
# define I2C1_SDA_PIN GP16 | ||
# define I2C1_SCL_PIN GP17 | ||
#endif | ||
|
||
#if HAL_USE_SPI == TRUE | ||
# define SPI_DRIVER SPID1 | ||
# define SPI_SCK_PIN GP14 | ||
# define SPI_MOSI_PIN GP15 | ||
# define SPI_MISO_PIN GP12 | ||
# define SPI_USE_WAIT TRUE | ||
# define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
#endif | ||
|
||
#include_next <halconf.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,18 @@ | ||
// Copyright 2024 splitkb.com (support@splitkb.com) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
#include_next <mcuconf.h> | ||
|
||
//// VIK | ||
|
||
#if HAL_USE_I2C == TRUE | ||
# undef RP_I2C_USE_I2C0 | ||
# define RP_I2C_USE_I2C0 TRUE | ||
#endif | ||
|
||
#if HAL_USE_SPI == TRUE | ||
# undef RP_SPI_USE_SPI1 | ||
# define RP_SPI_USE_SPI1 TRUE | ||
#endif |
This file was deleted.
Oops, something went wrong.