Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
multipass
Commits
8692f49b
Commit
8692f49b
authored
6 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
e3f0c655
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/driver/soft_i2c.h
+2
-2
2 additions, 2 deletions
include/driver/soft_i2c.h
src/driver/soft_i2c.cc
+2
-4
2 additions, 4 deletions
src/driver/soft_i2c.cc
with
4 additions
and
6 deletions
include/driver/soft_i2c.h
+
2
−
2
View file @
8692f49b
...
...
@@ -6,7 +6,7 @@ class SoftI2C {
SoftI2C
(
const
SoftI2C
&
copy
);
unsigned
char
sda
,
scl
;
#if SOFTI2C_PULLUP_EXTERNAL
|| SOFTI2C_PULLUP_FIXED_GPIO
#if SOFTI2C_PULLUP_EXTERNAL
unsigned
char
sda_pull
,
scl_pull
;
#endif
...
...
@@ -16,7 +16,7 @@ class SoftI2C {
unsigned
char
rx
(
bool
send_ack
);
public:
#if SOFTI2C_PULLUP_EXTERNAL
|| SOFTI2C_PULLUP_FIXED_GPIO
#if SOFTI2C_PULLUP_EXTERNAL
SoftI2C
(
unsigned
char
sda
,
unsigned
char
scl
,
unsigned
char
sda_pull
,
unsigned
char
scl_pull
)
:
sda
(
sda
),
scl
(
scl
),
sda_pull
(
sda_pull
),
scl_pull
(
scl_pull
)
{}
...
...
This diff is collapsed.
Click to expand it.
src/driver/soft_i2c.cc
+
2
−
4
View file @
8692f49b
...
...
@@ -46,10 +46,8 @@ signed char SoftI2C::setup()
#endif
#ifdef SOFTI2C_PULLUP_FIXED_GPIO
#if MULTIPASS_ARCH_msp430fr5969lp
gpio
.
output
(
GPIO
::
p1_4
);
gpio
.
output
(
GPIO
::
p1_5
);
gpio
.
write
(
GPIO
::
p1_4
,
1
);
gpio
.
write
(
GPIO
::
p1_5
,
1
);
gpio
.
output
(
GPIO
::
p1_4
,
1
);
gpio
.
output
(
GPIO
::
p1_5
,
1
);
#else
#error "softi2c_pullup=gpio not supported on this architecture"
#endif
/* MULTIPASS_ARCH_* */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment