[Mod] 优化Makefile

This commit is contained in:
gaoyang3513
2025-03-22 11:57:55 +08:00
parent 9b65834b12
commit 7a31d1e133
10 changed files with 1248 additions and 48 deletions

View File

@ -0,0 +1,28 @@
/*******************************************************************************
* HangZhou Hikvision Digital Technology Co., Ltd. All Right Reserved.
* Author :
* Version : V1.0.0 2024.11.15
* Description :
* Note : anonymity@hikvision.com.cn Modified 2024.11.15
******************************************************************************/
#ifndef INCLUDE_WIDGET_OSAL_OSDEV_H_
#define INCLUDE_WIDGET_OSAL_OSDEV_H_
typedef struct osdev {
int id;
const char *name;
void *obj;
} OSAL_osdev;
typedef struct osdrv {
int (*probe)(struct osdev *);
int (*remove)(struct osdev *);
void *obj;
} OSAL_osdrv;
int OSAL_osdevRegister(OSAL_osdev *osdev);
void OSAL_osdevUnregister(OSAL_osdev *osdev);
void *OSAL_osdevGetDrvdata(const OSAL_osdev *osdev);
void OSAL_osdevSetDrvdata(OSAL_osdev *osdev, void *data);
#endif /* INCLUDE_WIDGET_OSAL_OSDEV_H_ */