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
9877c448
Commit
9877c448
authored
4 years ago
by
Daniel Friesel
Browse files
Options
Downloads
Patches
Plain Diff
add softi2c pullup to Kconfig
parent
73e2f44f
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
Makefile
+9
-0
9 additions, 0 deletions
Makefile
src/driver/Kconfig
+25
-0
25 additions, 0 deletions
src/driver/Kconfig
with
34 additions
and
0 deletions
Makefile
+
9
−
0
View file @
9877c448
...
...
@@ -258,14 +258,23 @@ ifdef CONFIG_timer_freq
COMMON_FLAGS
+=
-DF_TIMER=
${
CONFIG_timer_freq
}
endif
ifdef
CONFIG_driver_softi2c_pullup-dynamic_internal
softi2c_pullup
=
internal
endif
ifeq
(${softi2c_pullup}, internal)
COMMON_FLAGS
+=
-DSOFTI2C_PULLUP_INTERNAL
endif
ifdef
CONFIG_driver_softi2c_pullup_dynamic_external
softi2c_pullup
=
external
endif
ifeq
(${softi2c_pullup}, external)
COMMON_FLAGS
+=
-DSOFTI2C_PULLUP_EXTERNAL
endif
ifdef
CONFIG_driver_softi2c_pullup_external
softi2c_pullup
=
gpio
endif
ifeq
(${softi2c_pullup}, gpio)
COMMON_FLAGS
+=
-DSOFTI2C_PULLUP_FIXED_GPIO
endif
...
...
This diff is collapsed.
Click to expand it.
src/driver/Kconfig
+
25
−
0
View file @
9877c448
...
...
@@ -79,3 +79,28 @@ bool "Software I2C"
select meta_driver_i2c
endmenu
choice driver_softi2c_pullup
bool "SoftI2C Pull-Up Configuration"
depends on driver_softi2c
config driver_softi2c_pullup_none
bool "No Pull-Up Handling"
config driver_softi2c_pullup_dynamic_internal
bool "Internal Dynamic Pull-Up"
help
Internal Pull-Up, disabled when transmitting LOW
config driver_softi2c_pullup_dynamic_external
bool "GPIO Dynamic Pull-Up"
help
Pull-Up resistors connected to GPIO, disabled when transmitting LOW
config driver_softi2c_pullup_external
bool "GPIO Static Pull-Up"
help
Pull-Up resistors connected to GPIO, always on
endchoice
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