This example demonstrates use of the i2c
driver (Inter-Integrated Circuit) in KasperskyOS.
In this example, the Bm8563
program uses the i2c
driver interface.
The client library of the i2c
driver is statically linked to the Bm8563
program. The i2c
driver implementation uses a BSP (Board Support Platform) subsystem for configuring clock frequencies (Clocks) and pins multiplexing (PinMux). Therefore, to ensure correct operation of the driver, you need to do the following:
Bm8563
program to the i2c_CLIENT_LIB
client library.Bm8563
program to the bsp_CLIENT_LIB
client library.Bm8563
program and the kl.drivers.I2C
driver.Bm8563
program and the kl.drivers.BSP
driver.The CMake
system, which is included with KasperskyOS Community Edition, is used to build and run the example.
Example files
The code of the example and build scripts are available at the following path:
/opt/KasperskyOS-Community-Edition-<version>/examples/i2c_bm8563_rtc
Building and running the example
This example is intended to run only on Radxa ROCK 3A.
See Building and running examples section.
Page top