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
50
Issues
50
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
5ebb1e79
Commit
5ebb1e79
authored
Mar 24, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pp_servo: reduce size
parent
4480fabc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
pp-instance.h
include/ppsi/pp-instance.h
+9
-10
dump_mem_ppsi_wrpc.c
tools/dump_mem_ppsi_wrpc.c
+0
-3
No files found.
include/ppsi/pp-instance.h
View file @
5ebb1e79
...
...
@@ -119,8 +119,8 @@ struct pp_avg_fltr {
#define PP_SERVO_FLAG_VALID (1<<0)
#define PP_SERVO_FLAG_WAIT_HW (1<<1)
#define PP_SERVO_RESET_DATA_SIZE (sizeof(struct pp_servo)-offsetof(struct pp_servo,
reset_address
))
#define PP_SERVO_RESET_DATA(servo) memset(&servo->
reset_address
,0,PP_SERVO_RESET_DATA_SIZE);
#define PP_SERVO_RESET_DATA_SIZE (sizeof(struct pp_servo)-offsetof(struct pp_servo,
state
))
#define PP_SERVO_RESET_DATA(servo) memset(&servo->
state
,0,PP_SERVO_RESET_DATA_SIZE);
struct
pp_servo
{
/* ptp servo specific data */
...
...
@@ -132,25 +132,24 @@ struct pp_servo {
struct
pp_time
delayMS
;
/* Shared with extension servo */
struct
pp_time
meanDelay
;
/* Shared with extension servo */
struct
pp_time
offsetFromMaster
;
/* Shared with extension servo */
u
nsigned
long
flags
;
/* PP_SERVO_FLAG_INVALID, PP_SERVO_FLAG_VALID, ...*/
u
int8_t
flags
;
/* PP_SERVO_FLAG_INVALID, PP_SERVO_FLAG_VALID, ...*/
/*
* ----- All data after this line will be cleared during by a servo initialization
*/
int
reset_address
;
/* Data used only by extensions */
int
state
;
uint8_t
state
;
/* ptp servo specific data */
uint8_t
servo_locked
;
/* TRUE when servo is locked. This info can be used by HAL */
uint8_t
got_sync
;
/* True when T1/T2 are available */
const
char
*
servo_state_name
;
/* Updated by the servo itself */
/* Data shared with extension servo */
uint32_t
update_count
;
/* incremented each time the servo is running */
struct
pp_time
update_time
;
/* Last updated time of the servo */
struct
pp_time
t1
,
t2
,
t3
,
t4
,
t5
,
t6
;
/* ptp servo specific data */
int
servo_locked
;
/* TRUE when servo is locked. This info can be used by HAL */
int
got_sync
;
/* True when T1/T2 are available */
};
enum
{
/* The two sockets. They are called "net path" for historical reasons */
...
...
tools/dump_mem_ppsi_wrpc.c
View file @
5ebb1e79
...
...
@@ -135,11 +135,8 @@ struct dump_info dump_ppsi_info[] = {
DUMP_FIELD
(
pp_time
,
offsetFromMaster
),
/* Shared with extension servo */
DUMP_FIELD
(
pp_servo_flag
,
flags
),
DUMP_FIELD
(
int
,
reset_address
),
/* Data used only by extensions */
DUMP_FIELD
(
pp_servo_state
,
state
),
DUMP_FIELD_SIZE
(
char
,
servo_state_name
,
32
),
/* Data shared with extension servo */
DUMP_FIELD
(
UInteger32
,
update_count
),
...
...
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