Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
07ea72f7
Commit
07ea72f7
authored
Feb 27, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: typos in comments
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
6063b8da
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
17 additions
and
17 deletions
+17
-17
spec.h
arch-spec/spec.h
+2
-2
ppsi.h
include/ppsi/ppsi.h
+1
-1
hooks.c
proto-ext-whiterabbit/hooks.c
+1
-1
wr-constants.h
proto-ext-whiterabbit/wr-constants.h
+1
-1
wr-msg.c
proto-ext-whiterabbit/wr-msg.c
+2
-2
bmc.c
proto-standard/bmc.c
+1
-1
msg.c
proto-standard/msg.c
+3
-3
open-close.c
proto-standard/open-close.c
+1
-1
servo.c
proto-standard/servo.c
+1
-1
state-listening.c
proto-standard/state-listening.c
+1
-1
state-master.c
proto-standard/state-master.c
+1
-1
state-slave.c
proto-standard/state-slave.c
+1
-1
stamp-funcs.c
tools/mtp/stamp-funcs.c
+1
-1
No files found.
arch-spec/spec.h
View file @
07ea72f7
...
...
@@ -54,7 +54,7 @@ typedef struct {
int
is_locked
;
int
lock_priority
;
// timestamp linearization param
a
ters
// timestamp linearization param
e
ters
uint32_t
phase_setpoint
;
// DMPLL phase setpoint (picoseconds)
...
...
@@ -88,7 +88,7 @@ static inline void delay(int x)
while
(
x
--
)
asm
volatile
(
"nop"
);
}
/* other network
l
stuff, bah.... */
/* other network stuff, bah.... */
struct
spec_ethhdr
{
unsigned
char
h_dest
[
6
];
...
...
include/ppsi/ppsi.h
View file @
07ea72f7
...
...
@@ -300,7 +300,7 @@ static inline struct pp_servo *SRV(struct pp_instance *ppi)
/*
* Each extension should fill this structure that is used to augment
* the standard state
d
and avoid code duplications. Please remember
* the standard state
s
and avoid code duplications. Please remember
* that proto-standard functions are picked as a fall-back when non
* extension-specific code is provided. The set of hooks here is designed
* based on what White Rabbit does. If you add more please remember to
...
...
proto-ext-whiterabbit/hooks.c
View file @
07ea72f7
...
...
@@ -136,7 +136,7 @@ static int wr_handle_followup(struct pp_instance *ppi,
precise_orig_timestamp
->
phase
=
0
;
wr_servo_got_sync
(
ppi
,
precise_orig_timestamp
,
&
ppi
->
sync_receive_time
);
/* TODO Check: generates
u
nstability (Tx timestamp invalid) */
/* TODO Check: generates
i
nstability (Tx timestamp invalid) */
/* return msg_issue_delay_req(ppi); */
return
1
;
/* the caller returns too */
...
...
proto-ext-whiterabbit/wr-constants.h
View file @
07ea72f7
...
...
@@ -118,7 +118,7 @@ enum {
* since our application FSM is flat */
WRS_PRESENT
=
16
,
WRS_S_LOCK
,
WRS_M_LOCK
,
WRS_LOCKED
,
WRS_CALIBRATION
,
WRS_CALIBRATED
,
WRS_RESP_CALIB_REQ
,
WRS_WR_LINK_ON
,
/* Each WR main state (except IDLE) has an associated time
t
out
/* Each WR main state (except IDLE) has an associated timeout
* we use state names to manage timeouts as well */
WR_TIMER_ARRAY_SIZE
,
/* number of states which has timeouts */
WRS_IDLE
,
...
...
proto-ext-whiterabbit/wr-msg.c
View file @
07ea72f7
...
...
@@ -9,7 +9,7 @@
#include "../proto-standard/common-fun.h"
/*
* WR way to handle little/big endianess
* WR way to handle little/big endian
n
ess
* FIXME: check whether htons would be ok
*/
/* put 16 bit word in big endianess (from little endianess) */
...
...
@@ -27,7 +27,7 @@ static inline void put_be32(void *ptr, UInteger32 x)
*
(
unsigned
char
*
)(
ptr
++
)
=
(
x
)
&
0xff
;
}
/* gets 32 bit word from big endian
ess (to little endia
ness) */
/* gets 32 bit word from big endian
ness (to little endian
ness) */
static
inline
UInteger32
get_be32
(
void
*
ptr
)
{
UInteger32
res
=
0x0
;
...
...
proto-standard/bmc.c
View file @
07ea72f7
...
...
@@ -110,7 +110,7 @@ void copy_d0( struct pp_instance *ppi, MsgHeader *hdr, MsgAnnounce *ann)
/*
* Data set comparison be
wt
een two foreign masters (9.3.4 fig 27)
* Data set comparison be
tw
een two foreign masters (9.3.4 fig 27)
* return similar to memcmp()
*/
Integer8
bmc_dataset_cmp
(
struct
pp_instance
*
ppi
,
...
...
proto-standard/msg.c
View file @
07ea72f7
...
...
@@ -619,7 +619,7 @@ int msg_issue_sync(struct pp_instance *ppi)
MSG_SEND_AND_RET
(
SYNC
,
EVT
,
0
);
}
/* Pack and send on general multicast ip adress a FollowUp message */
/* Pack and send on general multicast ip ad
d
ress a FollowUp message */
int
msg_issue_followup
(
struct
pp_instance
*
ppi
,
TimeInternal
*
time
)
{
Timestamp
prec_orig_tstamp
;
...
...
@@ -643,7 +643,7 @@ int msg_issue_delay_req(struct pp_instance *ppi)
MSG_SEND_AND_RET
(
DELAY_REQ
,
EVT
,
0
);
}
/* Pack and send on event multicast ip adress a PDelayReq message */
/* Pack and send on event multicast ip ad
d
ress a PDelayReq message */
int
msg_issue_pdelay_req
(
struct
pp_instance
*
ppi
)
{
Timestamp
orig_tstamp
;
...
...
@@ -656,7 +656,7 @@ int msg_issue_pdelay_req(struct pp_instance *ppi)
MSG_SEND_AND_RET
(
PDELAY_REQ
,
EVT
,
1
);
}
/* Pack and send on event multicast ip adress a PDelayResp message */
/* Pack and send on event multicast ip ad
d
ress a PDelayResp message */
int
msg_issue_pdelay_resp
(
struct
pp_instance
*
ppi
,
TimeInternal
*
time
,
MsgHeader
*
hdr
)
{
...
...
proto-standard/open-close.c
View file @
07ea72f7
...
...
@@ -7,7 +7,7 @@
/*
* This file deals with opening and closing an instance. The channel
* must already have been created. In practice
s
, this initializes the
* must already have been created. In practice, this initializes the
* state machine to the first state.
*/
...
...
proto-standard/servo.c
View file @
07ea72f7
...
...
@@ -65,7 +65,7 @@ void pp_update_delay(struct pp_instance *ppi, TimeInternal *correction_field)
add_TimeInternal
(
&
DSCUR
(
ppi
)
->
meanPathDelay
,
&
SRV
(
ppi
)
->
delay_sm
,
&
SRV
(
ppi
)
->
delay_ms
);
/* Sub
s
tract correction_field */
/* Subtract correction_field */
sub_TimeInternal
(
&
DSCUR
(
ppi
)
->
meanPathDelay
,
&
DSCUR
(
ppi
)
->
meanPathDelay
,
correction_field
);
...
...
proto-standard/state-listening.c
View file @
07ea72f7
...
...
@@ -38,7 +38,7 @@ int pp_listening(struct pp_instance *ppi, unsigned char *pkt, int plen)
break
;
default:
/* disreg
u
ard, nothing to do */
/* disregard, nothing to do */
break
;
}
...
...
proto-standard/state-master.c
View file @
07ea72f7
...
...
@@ -193,7 +193,7 @@ int pp_master(struct pp_instance *ppi, unsigned char *pkt, int plen)
break
;
default:
/* disreg
u
ard, nothing to do */
/* disregard, nothing to do */
break
;
}
...
...
proto-standard/state-slave.c
View file @
07ea72f7
...
...
@@ -231,7 +231,7 @@ int pp_slave(struct pp_instance *ppi, unsigned char *pkt, int plen)
break
;
default:
/* disreg
u
ard, nothing to do */
/* disregard, nothing to do */
break
;
}
...
...
tools/mtp/stamp-funcs.c
View file @
07ea72f7
/*
* This file is a "library" file which offers functions with the same
* Interface as send() and recv() but that handle stamping as well.
* The timestamp informa
z
ion is saved to global variables, so no
* The timestamp informa
t
ion is saved to global variables, so no
* concurrency is allowed and so on. In short: it's as crappy as
* possible, but not crappier.
*
...
...
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