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
52780526
Commit
52780526
authored
5 years ago
by
Daniel Friesel
Browse files
Options
Downloads
Patches
Plain Diff
softi2c: Add MSP430FR5994 support
parent
0f882940
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/driver/soft_i2c.cc
+7
-0
7 additions, 0 deletions
src/driver/soft_i2c.cc
with
7 additions
and
0 deletions
src/driver/soft_i2c.cc
+
7
−
0
View file @
52780526
...
...
@@ -69,6 +69,9 @@ signed char SoftI2C::setup()
#if MULTIPASS_ARCH_msp430fr5969lp
gpio
.
output
(
GPIO
::
p1_4
,
1
);
gpio
.
output
(
GPIO
::
p1_5
,
1
);
#elif MULTIPASS_ARCH_msp430fr5994lp
gpio
.
output
(
GPIO
::
p8_2
,
1
);
gpio
.
output
(
GPIO
::
p8_3
,
1
);
#else
#error "softi2c_pullup=gpio not supported on this architecture"
#endif
/* MULTIPASS_ARCH_* */
...
...
@@ -211,6 +214,8 @@ ON_TIMER_INTERRUPT_tail
#if SOFTI2C_PULLUP_EXTERNAL
#ifdef MULTIPASS_ARCH_msp430fr5969lp
SoftI2C
i2c
(
GPIO
::
p1_6
,
GPIO
::
p1_7
,
GPIO
::
p1_4
,
GPIO
::
p1_5
);
#elif MULTIPASS_ARCH_msp430fr5969lp
SoftI2C
i2c
(
GPIO
::
p5_0
,
GPIO
::
p5_1
,
GPIO
::
p8_2
,
GPIO
::
p8_3
);
#else
#error "softi2c_pullup = external not supported on this architecture"
#endif
/* MULTIPASS_ARCH_* */
...
...
@@ -223,6 +228,8 @@ SoftI2C i2c(GPIO::pc4, GPIO::pc5);
SoftI2C
i2c
(
GPIO
::
pc4
,
GPIO
::
pc5
);
#elif MULTIPASS_ARCH_msp430fr5969lp
SoftI2C
i2c
(
GPIO
::
p1_6
,
GPIO
::
p1_7
);
#elif MULTIPASS_ARCH_msp430fr5994lp
SoftI2C
i2c
(
GPIO
::
p5_0
,
GPIO
::
p5_1
);
#elif MULTIPASS_ARCH_posix
SoftI2C
i2c
(
GPIO
::
px00
,
GPIO
::
px01
);
#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