Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
f4grx
NuttX RTOS
Commits
0f175039
Commit
0f175039
authored
8 years ago
by
Michał Łyszczek
Browse files
Options
Downloads
Patches
Plain Diff
Fix compilation warnings for stm32 eth with certain configs
parent
582f3670
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/arm/src/stm32/stm32_eth.c
+11
-0
11 additions, 0 deletions
arch/arm/src/stm32/stm32_eth.c
with
11 additions
and
0 deletions
arch/arm/src/stm32/stm32_eth.c
+
11
−
0
View file @
0f175039
...
...
@@ -704,7 +704,11 @@ static void stm32_rxdescinit(FAR struct stm32_ethmac_s *priv);
#if defined(CONFIG_NETDEV_PHY_IOCTL) && defined(CONFIG_ARCH_PHY_INTERRUPT)
static
int
stm32_phyintenable
(
FAR
struct
stm32_ethmac_s
*
priv
);
#endif
#if defined(CONFIG_STM32_AUTONEG) ||\
defined(CONFIG_NETDEV_PHY_IOCTL) ||\
defined(CONFIG_ETH0_PHY_DM9161)
static
int
stm32_phyread
(
uint16_t
phydevaddr
,
uint16_t
phyregaddr
,
uint16_t
*
value
);
#endif
static
int
stm32_phywrite
(
uint16_t
phydevaddr
,
uint16_t
phyregaddr
,
uint16_t
value
);
#ifdef CONFIG_ETH0_PHY_DM9161
static
inline
int
stm32_dm9161
(
FAR
struct
stm32_ethmac_s
*
priv
);
...
...
@@ -3098,6 +3102,9 @@ static int stm32_phyintenable(struct stm32_ethmac_s *priv)
*
****************************************************************************/
#if defined(CONFIG_STM32_AUTONEG) ||\
defined(CONFIG_NETDEV_PHY_IOCTL) ||\
defined(CONFIG_ETH0_PHY_DM9161)
static
int
stm32_phyread
(
uint16_t
phydevaddr
,
uint16_t
phyregaddr
,
uint16_t
*
value
)
{
volatile
uint32_t
timeout
;
...
...
@@ -3134,6 +3141,7 @@ static int stm32_phyread(uint16_t phydevaddr, uint16_t phyregaddr, uint16_t *val
return
-
ETIMEDOUT
;
}
#endif
/****************************************************************************
* Function: stm32_phywrite
...
...
@@ -3278,7 +3286,10 @@ static inline int stm32_dm9161(FAR struct stm32_ethmac_s *priv)
static
int
stm32_phyinit
(
FAR
struct
stm32_ethmac_s
*
priv
)
{
#ifdef CONFIG_STM32_AUTOGEN
volatile
uint32_t
timeout
;
#endif
uint32_t
regval
;
uint16_t
phyval
;
int
ret
;
...
...
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