diff options
author | QMK Bot <hello@qmk.fm> | 2022-10-02 20:24:56 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-10-02 20:24:56 +0000 |
commit | bdffe9efe8c7182fd3de3e2027becc173f8b79c2 (patch) | |
tree | d8954d93900e2f4a379da7a83ed70d5fb2d01bb5 /keyboards/tzarc/ghoul/rev1/rp2040/config.h | |
parent | 6f13a76530165bb1ad723ab0270c9eb908ca3a8c (diff) | |
parent | 9ecd6eb9b9ddf487ced76bf0b5114674cf61432b (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/tzarc/ghoul/rev1/rp2040/config.h')
-rw-r--r-- | keyboards/tzarc/ghoul/rev1/rp2040/config.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/keyboards/tzarc/ghoul/rev1/rp2040/config.h b/keyboards/tzarc/ghoul/rev1/rp2040/config.h new file mode 100644 index 0000000000..c428b26606 --- /dev/null +++ b/keyboards/tzarc/ghoul/rev1/rp2040/config.h @@ -0,0 +1,39 @@ +// Copyright 2018-2022 Nick Brassel (@tzarc) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once + +#include "config_common.h" + +// Matrix configuration +#define SPI_MATRIX_CHIP_SELECT_PIN GP21 +#define SPI_MATRIX_DIVISOR 16 + +// Encoder +#define ENCODER_PUSHBUTTON_PIN GP7 + +// SPI Configuration +#define SPI_DRIVER SPID0 +#define SPI_SCK_PIN GP22 +#define SPI_MOSI_PIN GP23 +#define SPI_MISO_PIN GP20 + +// EEPROM configuration +#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 8 +#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN GP3 +#define EXTERNAL_FLASH_SPI_CLOCK_DIVISOR 8 +#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN GP2 + +// RGB configuration +#define RGB_DI_PIN GP13 +#define RGB_ENABLE_PIN GP6 + +// ADC Configuration +#define ADC_RESOLUTION ? ? ? // ADC_CFGR1_RES_12BIT // TBD when RP2040 has analog support +#define ADC_SATURATION ? ? ? // ((1 << 12) - 1) // TBD when RP2040 has analog support +#define ADC_CURRENT_PIN GP26 +#define ADC_VOLTAGE_PIN GP27 + +// Display Configuration +#define OLED_CS_PIN GP16 +#define OLED_DC_PIN GP17 +#define OLED_RST_PIN GP18 |