mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-22 03:19:24 +00:00
Move options to config.h
This commit is contained in:
parent
0cc4665552
commit
4032fba93c
@ -15,3 +15,22 @@
|
||||
|
||||
// VBUS detection
|
||||
#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