• 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
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-sim Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
configs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
scripts Loading commit data...
time-bare Loading commit data...
time-sim Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...