Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
21cfbe43
Commit
21cfbe43
authored
May 17, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/libswitchhw: fixed warnings
parent
4ede2a74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
fpga_io.c
userspace/libswitchhw/fpga_io.c
+5
-6
fpgaboot.c
userspace/libswitchhw/fpgaboot.c
+1
-1
xpoint.c
userspace/libswitchhw/xpoint.c
+0
-2
No files found.
userspace/libswitchhw/fpga_io.c
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
();
}
userspace/libswitchhw/fpgaboot.c
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
;
c
onst
c
har
*
fpga_name
;
int
rev_id
;
uint32_t
fw_hash
;
struct
fpga_image_entry
ent
;
...
...
userspace/libswitchhw/xpoint.c
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment