Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
39
Issue boards
Milestones
Wiki
Code
Merge requests
5
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
Software for White Rabbit PTP Core
Commits
68baa53f
Commit
68baa53f
authored
12 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
various: add some 'static', save 100 bytes
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
1704a668
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dev/endpoint.c
+2
-2
2 additions, 2 deletions
dev/endpoint.c
dev/uart.c
+1
-1
1 addition, 1 deletion
dev/uart.c
include/endpoint.h
+0
-3
0 additions, 3 deletions
include/endpoint.h
wrc_main.c
+3
-3
3 additions, 3 deletions
wrc_main.c
with
6 additions
and
9 deletions
dev/endpoint.c
+
2
−
2
View file @
68baa53f
...
...
@@ -31,14 +31,14 @@ static int autoneg_enabled;
volatile
struct
EP_WB
*
EP
;
/* functions for accessing PCS (MDIO) registers */
uint16_t
pcs_read
(
int
location
)
static
uint16_t
pcs_read
(
int
location
)
{
EP
->
MDIO_CR
=
EP_MDIO_CR_ADDR_W
(
location
>>
2
);
while
((
EP
->
MDIO_ASR
&
EP_MDIO_ASR_READY
)
==
0
)
;
return
EP_MDIO_ASR_RDATA_R
(
EP
->
MDIO_ASR
)
&
0xffff
;
}
void
pcs_write
(
int
location
,
int
value
)
static
void
pcs_write
(
int
location
,
int
value
)
{
EP
->
MDIO_CR
=
EP_MDIO_CR_ADDR_W
(
location
>>
2
)
|
EP_MDIO_CR_DATA_W
(
value
)
...
...
This diff is collapsed.
Click to expand it.
dev/uart.c
+
1
−
1
View file @
68baa53f
...
...
@@ -44,7 +44,7 @@ int uart_write_string(const char *s)
int
puts
(
const
char
*
s
)
__attribute__
((
alias
(
"uart_write_string"
)));
int
uart_poll
()
static
int
uart_poll
()
{
return
uart
->
SR
&
UART_SR_RX_RDY
;
}
...
...
This diff is collapsed.
Click to expand it.
include/endpoint.h
+
0
−
3
View file @
68baa53f
...
...
@@ -29,7 +29,4 @@ int ep_cal_pattern_disable();
void
pfilter_init_default
();
uint16_t
pcs_read
(
int
location
);
void
pcs_write
(
int
location
,
int
value
);
#endif
This diff is collapsed.
Click to expand it.
wrc_main.c
+
3
−
3
View file @
68baa53f
...
...
@@ -40,7 +40,7 @@ int32_t sfp_deltaTx = 46407;
int32_t
sfp_deltaRx
=
167843
;
uint32_t
cal_phase_transition
=
2389
;
void
wrc_initialize
()
static
void
wrc_initialize
()
{
uint8_t
mac_addr
[
6
];
...
...
@@ -89,7 +89,7 @@ void wrc_initialize()
#define LINK_UP 3
#define LINK_DOWN 4
int
wrc_check_link
()
static
int
wrc_check_link
()
{
static
int
prev_link_state
=
-
1
;
int
link_state
=
ep_link_up
(
NULL
);
...
...
@@ -152,7 +152,7 @@ static void ui_update()
extern
uint32_t
_endram
;
#define ENDRAM_MAGIC 0xbadc0ffe
void
check_stack
(
void
)
static
void
check_stack
(
void
)
{
while
(
_endram
!=
ENDRAM_MAGIC
)
{
mprintf
(
"Stack overflow!
\n
"
);
...
...
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