Skip to content

Commit a25492a

Browse files
committed
hw/bsp/pinetime: Setup I2C
Enable the I2C port 1 for the Pinetime. Maximum speed of 400 KHz is set since connected I2C slave devices are >= 400 KHz.
1 parent b04011a commit a25492a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hw/bsp/pinetime/syscfg.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ syscfg.vals:
4747
MCU_TARGET: nRF52832
4848

4949
# 32.768 kHz crystal oscillator
50-
MCU_LFCLK_SOURCE: LFXO
50+
MCU_LFCLK_SOURCE: LFXO
5151

5252
# Enable DC/DC regulator
5353
MCU_DCDC_ENABLED: 1
@@ -61,7 +61,9 @@ syscfg.vals:
6161
SPI_0_MASTER_PIN_MOSI: 3 # P0.03: SPI-MOSI, LCD_SDI
6262
SPI_0_MASTER_PIN_MISO: 4 # P0.04: SPI-MISO
6363

64-
# I2C port 1 connected to CST816S touch controller, BMA421 accelerometer, HRS3300 heart rate sensor
64+
# I2C port 1 connected to CST816S touch controller, BMA421 accelerometer, HRS3300 heart rate sensor
65+
I2C_1: 1
66+
I2C_1_FREQ_KHZ: 400 # BMA421=1000 HRS3300=800 CST816S=400
6567
I2C_1_PIN_SCL: 7 # P0.07: BMA421-SCL, HRS3300-SCL, TP-SCLOUT
6668
I2C_1_PIN_SDA: 6 # P0.06: BMA421-SDA, HRS3300-SDA, TP-SDAI/O
6769

0 commit comments

Comments
 (0)