mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-21 19:09:25 +00:00
Move options to config.h
This commit is contained in:
parent
0cc4665552
commit
4032fba93c
@ -14,4 +14,23 @@
|
||||
#define SERIAL_PIO_USE_PIO1 // Use PIO1 as PIO0 is used for WS2812 driver
|
||||
|
||||
// VBUS detection
|
||||
#define USB_VBUS_PIN GP1
|
||||
#define USB_VBUS_PIN GP1
|
||||
|
||||
//// 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
|
||||
#endif
|
@ -3,25 +3,9 @@
|
||||
|
||||
#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
|
||||
# define SPI_USE_WAIT TRUE
|
||||
# define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
|
||||
#endif
|
||||
|
||||
#include_next <halconf.h>
|
Loading…
Reference in New Issue
Block a user