Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/targets/f7/furi_hal/furi_hal_i2c_config.h')
-rw-r--r--firmware/targets/f7/furi_hal/furi_hal_i2c_config.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/firmware/targets/f7/furi_hal/furi_hal_i2c_config.h b/firmware/targets/f7/furi_hal/furi_hal_i2c_config.h
new file mode 100644
index 00000000..03c0f1ca
--- /dev/null
+++ b/firmware/targets/f7/furi_hal/furi_hal_i2c_config.h
@@ -0,0 +1,31 @@
+#pragma once
+
+#include <furi_hal_i2c_types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** Internal(power) i2c bus, I2C1, under reset when not used */
+extern FuriHalI2cBus furi_hal_i2c_bus_power;
+
+/** External i2c bus, I2C3, under reset when not used */
+extern FuriHalI2cBus furi_hal_i2c_bus_external;
+
+/** Handle for internal(power) i2c bus
+ * Bus: furi_hal_i2c_bus_external
+ * Pins: PA9(SCL) / PA10(SDA), float on release
+ * Params: 400khz
+ */
+extern FuriHalI2cBusHandle furi_hal_i2c_handle_power;
+
+/** Handle for external i2c bus
+ * Bus: furi_hal_i2c_bus_external
+ * Pins: PC0(SCL) / PC1(SDA), float on release
+ * Params: 100khz
+ */
+extern FuriHalI2cBusHandle furi_hal_i2c_handle_external;
+
+#ifdef __cplusplus
+}
+#endif \ No newline at end of file