Remove rules.mk and add VIK configuration

This commit is contained in:
VeyPatch 2024-11-05 14:09:12 +01:00
parent 60cef34a36
commit 0cc4665552
4 changed files with 46 additions and 2 deletions

View File

@ -16,7 +16,7 @@ The Halcyon Kyria rev4 is the fourth Kyria revision and the first keyboard in ou
Make example for this keyboard (after setting up your build environment):
make splitkb/halcyon/kyria:default
make splitkb/halcyon/kyria/rev4:default
The keyboard can be flashed by copying the resulting `.uf2` file onto the `RPI-RP2` flash drive.

View File

@ -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>

View File

@ -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

View File

@ -1 +0,0 @@
DEFAULT_FOLDER = splitkb/halcyon/kyria/rev4