mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-27 03:21:15 +00:00
adjustments for i2c
This commit is contained in:
parent
ba4a599f13
commit
399de15193
@ -132,14 +132,14 @@ ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3731)
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3731)
|
||||||
OPT_DEFS += -DIS31FL3731
|
OPT_DEFS += -DIS31FL3731 -DSTM32_I2C -DHAL_USE_I2C=TRUE
|
||||||
COMMON_VPATH += $(DRIVER_PATH)/issi
|
COMMON_VPATH += $(DRIVER_PATH)/issi
|
||||||
SRC += is31fl3731.c
|
SRC += is31fl3731.c
|
||||||
SRC += i2c_master.c
|
SRC += i2c_master.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3733)
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3733)
|
||||||
OPT_DEFS += -DIS31FL3733
|
OPT_DEFS += -DIS31FL3733 -DSTM32_I2C -DHAL_USE_I2C=TRUE
|
||||||
COMMON_VPATH += $(DRIVER_PATH)/issi
|
COMMON_VPATH += $(DRIVER_PATH)/issi
|
||||||
SRC += is31fl3733.c
|
SRC += is31fl3733.c
|
||||||
SRC += i2c_master.c
|
SRC += i2c_master.c
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
|
|
||||||
#define encoder_update(clockwise) encoder_update_user(uint8_t index, clockwise)
|
#define encoder_update(clockwise) encoder_update_user(uint8_t index, clockwise)
|
||||||
|
|
||||||
|
#ifdef KEYBOARD_planck_ez
|
||||||
|
#include "ez.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __AVR__
|
#ifdef __AVR__
|
||||||
#define LAYOUT_planck_mit( \
|
#define LAYOUT_planck_mit( \
|
||||||
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
|
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
|
||||||
@ -50,7 +54,7 @@
|
|||||||
#define LAYOUT_ortho_4x12 LAYOUT_planck_grid
|
#define LAYOUT_ortho_4x12 LAYOUT_planck_grid
|
||||||
#define KC_LAYOUT_ortho_4x12 KC_KEYMAP
|
#define KC_LAYOUT_ortho_4x12 KC_KEYMAP
|
||||||
|
|
||||||
#else
|
#elif KEYBOARD_planck_rev6
|
||||||
|
|
||||||
#define LAYOUT_planck_1x2uC( \
|
#define LAYOUT_planck_1x2uC( \
|
||||||
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
|
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
* @brief Enables the I2C subsystem.
|
* @brief Enables the I2C subsystem.
|
||||||
*/
|
*/
|
||||||
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
|
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
|
||||||
#define HAL_USE_I2C FALSE
|
#define HAL_USE_I2C TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -154,7 +154,11 @@
|
|||||||
/*
|
/*
|
||||||
* I2C driver system settings.
|
* I2C driver system settings.
|
||||||
*/
|
*/
|
||||||
#define STM32_I2C_USE_I2C1 FALSE
|
// #ifdef STM32_I2C
|
||||||
|
#define STM32_I2C_USE_I2C1 TRUE
|
||||||
|
// #else
|
||||||
|
// #define STM32_I2C_USE_I2C1 FALSE
|
||||||
|
// #endif
|
||||||
#define STM32_I2C_USE_I2C2 FALSE
|
#define STM32_I2C_USE_I2C2 FALSE
|
||||||
#define STM32_I2C_BUSY_TIMEOUT 50
|
#define STM32_I2C_BUSY_TIMEOUT 50
|
||||||
#define STM32_I2C_I2C1_IRQ_PRIORITY 10
|
#define STM32_I2C_I2C1_IRQ_PRIORITY 10
|
||||||
|
Loading…
Reference in New Issue
Block a user