mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-15 14:13:27 +00:00
aa2903b283
Co-authored-by: dev <dev@devbox-2204.lan> Co-authored-by: ShandonCodes <shandon@shandon.codes>
16 lines
401 B
C
16 lines
401 B
C
// Copyright 2023 ShandonCodes (@ShandonCodes)
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
#pragma once
|
|
|
|
#define I2C_DRIVER I2CD1
|
|
#define I2C1_SCL_PIN B6
|
|
#define I2C1_SDA_PIN B7
|
|
#define I2C1_SCL_PAL_MODE 1
|
|
#define I2C1_SDA_PAL_MODE 1
|
|
#define I2C1_TIMINGR_PRESC 0x00U
|
|
#define I2C1_TIMINGR_SCLDEL 0x03U
|
|
#define I2C1_TIMINGR_SDADEL 0x01U
|
|
#define I2C1_TIMINGR_SCLH 0x03U
|
|
#define I2C1_TIMINGR_SCLL 0x09U
|
|
|