yb_arm/osp/inc/ospHeartbeat.h
lishuang.xie f25cbc7f98 update feature#1250 Support hearbeat function
1. SPU and ARM both update
2. 8 APE and 3 RFM(no pet_rfm_spu0) support hearbeat
3. ARM support new function get_heartbeat_status() to get the cores status
4. test:
   4.1 spu(case34)+arm(case5): Pass
   4.2 spu(case44)+arm(case5): Pass --> spu(case44)should use previous version
   4.3 spu(case21)+arm(case21):Pass
   4.4 spu(case14)+arm(case3): Pass
2023-11-01 11:38:08 +08:00

17 lines
383 B
C

#ifndef __OSP_HEARTBEAT__
#define __OSP_HEARTBEAT__
typedef struct __OspHeartBeatInfo_t
{
uint32_t u32CheckFlag; /* 0: check; 1: no check */
uint32_t u32LastCounter; /* 上次心跳计数 */
uint32_t u32LossCounter; /* 失信计数 */
}OspHeartbeatInfo_t;
int8_t OspHeartbeatPro(void);
uint32_t get_heartbeat_status(void);
#endif /* __OSP_HEARTBEAT__ */