Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
27
sdk/include/dev/crc/hg_crc.h
Normal file
27
sdk/include/dev/crc/hg_crc.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef _HG_CRC_H_
|
||||
#define _HG_CRC_H_
|
||||
#include "hal/crc.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct hg_crc {
|
||||
struct crc_dev dev;
|
||||
void *hw;
|
||||
os_mutex_t hold;
|
||||
os_mutex_t lock;
|
||||
os_semaphore_t done;
|
||||
uint32 irq_num;
|
||||
uint32 flags;
|
||||
uint16 cookie;
|
||||
};
|
||||
|
||||
int32 hg_crc_attach(uint32 dev_id, struct hg_crc *crc_c);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _HG_CRC_H_ */
|
||||
|
||||
Reference in New Issue
Block a user