Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
87
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
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
Projects
White Rabbit Switch - Software
Commits
21cfbe43
Commit
21cfbe43
authored
13 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
userspace/libswitchhw: fixed warnings
parent
4ede2a74
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
userspace/libswitchhw/fpga_io.c
+5
-6
5 additions, 6 deletions
userspace/libswitchhw/fpga_io.c
userspace/libswitchhw/fpgaboot.c
+1
-1
1 addition, 1 deletion
userspace/libswitchhw/fpgaboot.c
userspace/libswitchhw/xpoint.c
+0
-2
0 additions, 2 deletions
userspace/libswitchhw/xpoint.c
with
6 additions
and
9 deletions
userspace/libswitchhw/fpga_io.c
+
5
−
6
View file @
21cfbe43
...
...
@@ -39,12 +39,6 @@ int shw_fpga_mmap_init()
}
int
shw_main_fpga_init
()
{
shw_pio_configure
(
PIN_main_fpga_nrst
);
shw_main_fpga_reset
();
}
void
shw_main_fpga_reset
()
{
shw_pio_set0
(
PIN_main_fpga_nrst
);
...
...
@@ -53,3 +47,8 @@ void shw_main_fpga_reset()
usleep
(
10000
);
}
int
shw_main_fpga_init
()
{
shw_pio_configure
(
PIN_main_fpga_nrst
);
shw_main_fpga_reset
();
}
This diff is collapsed.
Click to expand it.
userspace/libswitchhw/fpgaboot.c
+
1
−
1
View file @
21cfbe43
...
...
@@ -243,7 +243,7 @@ static int uncompress_and_boot_fpga(int fpga_id, struct fpga_image_entry *ent)
int
shw_boot_fpga
(
int
fpga_id
)
{
char
*
fw_name
;
char
*
fpga_name
;
const
char
*
fpga_name
;
int
rev_id
;
uint32_t
fw_hash
;
struct
fpga_image_entry
ent
;
...
...
This diff is collapsed.
Click to expand it.
userspace/libswitchhw/xpoint.c
+
0
−
2
View file @
21cfbe43
...
...
@@ -186,12 +186,10 @@ static void adn4600_write_reg(uint8_t reg, uint8_t value)
if
(
mi2c_put_byte
(
value
))
goto
txerr
;
mi2c_stop
();
return
0
;
txerr:
TRACE
(
TRACE_FATAL
,
"No I2C ack from ADN4600!"
);
mi2c_stop
();
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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