Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qthing
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
Container Registry
Model registry
Operate
Environments
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
Jens Nolte
qthing
Commits
16f292a3
Commit
16f292a3
authored
4 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Fix lan8720 phy would sometimes not initialize
parent
c475f52e
No related branches found
No related tags found
1 merge request
!16
Merge dev branch into master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qthing/network/ethernet_lan8720.cpp
+2
-2
2 additions, 2 deletions
qthing/network/ethernet_lan8720.cpp
with
2 additions
and
2 deletions
qthing/network/ethernet_lan8720.cpp
+
2
−
2
View file @
16f292a3
...
...
@@ -51,8 +51,8 @@ void qthing::enable_ethernet_lan8720() {
gpio_pad_select_gpio
(
PIN_PHY_POWER
);
gpio_set_direction
(
PIN_PHY_POWER
,
GPIO_MODE_OUTPUT
);
gpio_set_level
(
PIN_PHY_POWER
,
1
);
// Allow the power up/down to take effect
, min 300us
vTaskDelay
(
1
);
// Allow the power up/down to take effect
by waiting two ticks (one tick should suffice for gpio changes but showed to be problematic)
vTaskDelay
(
2
);
try
{
// Not required here, happens in qthing::initialize_network();
...
...
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