Files
drivers_framework/include/platform/hdf_platform.h
T
2021-03-11 18:45:38 +08:00

57 lines
1.1 KiB
C

/*
* Copyright (c) 2020-2021 Huawei Device Co., Ltd.
*
* HDF is dual licensed: you can use it either under the terms of
* the GPL, or the BSD license, at your option.
* See the LICENSE file in the root of this repository for complete details.
*/
/**
* @addtogroup COMMON
* @{
*
* @brief Provides common APIs of the platform driver.
*
* This module also provides <b>DevHandle</b>, which represents the common data structure of the platform driver.
*
* @since 1.0
*/
/**
* @file hdf_platform.h
*
* @brief Declares common APIs of the platform driver.
*
* @since 1.0
*/
#ifndef HDF_PLATFORM_H
#define HDF_PLATFORM_H
#include "hdf_base.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
/**
* @brief Defines the common device handle of the platform driver.
*
* The handle is associated with a specific platform device and is used as the
* first input parameter for all APIs of the platform driver.
*
* @since 1.0
*/
typedef void* DevHandle;
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* HDF_PLATFORM_H */
/** @} */