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
a97e16dd
Commit
a97e16dd
authored
Mar 24, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrh.h: slightly reduce size
parent
5ebb1e79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
wrh.h
include/hw-specific/wrh.h
+6
-8
No files found.
include/hw-specific/wrh.h
View file @
a97e16dd
...
...
@@ -95,8 +95,8 @@ typedef enum {
}
wrh_servo_state_t
;
#define WRH_SERVO_RESET_DATA_SIZE (sizeof(wrh_servo_t)-offsetof(wrh_servo_t,
reset_addres
s))
#define WRH_SERVO_RESET_DATA(servo) memset(&servo->
reset_addres
s,0,WRH_SERVO_RESET_DATA_SIZE);
#define WRH_SERVO_RESET_DATA_SIZE (sizeof(wrh_servo_t)-offsetof(wrh_servo_t,
clock_period_p
s))
#define WRH_SERVO_RESET_DATA(servo) memset(&servo->
clock_period_p
s,0,WRH_SERVO_RESET_DATA_SIZE);
typedef
struct
wrh_servo_t
{
...
...
@@ -109,11 +109,14 @@ typedef struct wrh_servo_t {
int32_t
cur_setpoint_ps
;
/* ----- All data after this line will cleared during a servo reset */
int
reset_address
;
/* These fields are used by servo code, after setting at init time */
int32_t
clock_period_ps
;
Boolean
tracking_enabled
;
Boolean
readyForSync
;
/* Ready for synchronization */
Boolean
doRestart
;
/* PLL is unlocked: A restart of the calibration is needed */
/* Following fields are for monitoring/diagnostics (use w/ shmem) */
int64_t
delayMM_ps
;
int64_t
delayMS_ps
;
...
...
@@ -123,10 +126,6 @@ typedef struct wrh_servo_t {
/* These fields are used by servo code, across iterations */
int64_t
prev_delayMS_ps
;
int
missed_iters
;
Boolean
tracking_enabled
;
Boolean
readyForSync
;
/* Ready for synchronization */
Boolean
doRestart
;
/* PLL is unlocked: A restart of the calibration is needed */
}
wrh_servo_t
;
static
inline
wrh_servo_t
*
WRH_SRV
(
struct
pp_instance
*
ppi
)
...
...
@@ -146,4 +145,3 @@ extern int wrh_servo_got_presp(struct pp_instance *ppi);
#endif
/* __ASSEMBLY__ */
#endif
/* __WRH_H__ */
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