• Benoit Rat's avatar
    wr: Adding hook for WR state · 78b2d08c
    Benoit Rat authored
    When changing the state of the WR servo we can call a hook (function
    pointer) to a function defined by a user in the upper layer (wrpc-sw).
    The purpose of the hook is to add new functionalities when we reach a
    specific state (Alarms, IRIGB, etc...) without needing to change the
    code of PPSI.
    
    [This is a rework of the original patch by Benoit. Mainly, I added
    the extra integer argument to the hook (so I call it twice: both
    entering and leaving the servo), and I removed the function to
    set the hook from wrpc: the main function can set the pointer directly]
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    78b2d08c
Name
Last commit
Last update
..
Makefile Loading commit data...
common-fun.c Loading commit data...
fsm-table.c Loading commit data...
hooks.c Loading commit data...
state-wr-calibrated.c Loading commit data...
state-wr-calibration.c Loading commit data...
state-wr-link-on.c Loading commit data...
state-wr-locked.c Loading commit data...
state-wr-m-lock.c Loading commit data...
state-wr-present.c Loading commit data...
state-wr-resp-calib-req.c Loading commit data...
state-wr-s-lock.c Loading commit data...
wr-api.h Loading commit data...
wr-constants.h Loading commit data...
wr-msg.c Loading commit data...
wr-servo.c Loading commit data...