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

github.com/thirdpin/libopencm3_cpp_extensions.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThird Pin <redmine.thirdpin@gmail.com>2020-09-08 12:57:18 +0300
committerGitHub <noreply@github.com>2020-09-08 12:57:18 +0300
commit1229c03c875bf944b7a4949afab94e0b94dd350e (patch)
tree204e73a0beb5eb5d86370440a1d940bd98e1fb9a
parentfc2cf2572474fc90fdb2b0a4f6b731ff37f859ad (diff)
parent22841f9ab82418145c7bb8da8c17dcad2b411601 (diff)
Merge pull request #13 from thirdpin/feature/add_i2c3
[cm3cpp]: Add I2C3 to I2C constructor
-rw-r--r--cm3cpp/i2c.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cm3cpp/i2c.cpp b/cm3cpp/i2c.cpp
index ec145d7..9e74ddf 100644
--- a/cm3cpp/i2c.cpp
+++ b/cm3cpp/i2c.cpp
@@ -44,6 +44,9 @@ I2c::I2c(Config i2c_conf) :
case 2:
_i2c = I2C2;
break;
+ case 3:
+ _i2c = I2C3;
+ break;
default:
break;
}