Move options to config.h

This commit is contained in:
VeyPatch 2024-11-08 12:51:31 +01:00
parent 0cc4665552
commit 4032fba93c
2 changed files with 22 additions and 19 deletions

View File

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

View File

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