##// END OF EJS Templates
automatic reconnexion of the spacewire link...
automatic reconnexion of the spacewire link automatic restart of the housekeeping generation rmap destination key harcoded in VHDL is 2

File last commit:

r0:452a68f7426f default
r17:3a73d9962d4a default
Show More
LPP_grspw.c
11 lines | 357 B | text/x-c | CLexer
#include <..\header\LPP_grspw.h>
#include <stdio.h>
#define REG_WRITE(addr, val) (*(volatile unsigned int *)(addr) = (unsigned int)(val))
#define REG_READ(addr) (*(volatile unsigned int *)(addr))
/* Return Current Link State */
unsigned int grspw_link_state(grspwregs_t *regs)
{
return ((regs->status & GRSPW_STAT_LS) >> GRSPW_STAT_LS_BIT);
}