10f99eeccSopenharmony_ci/*
20f99eeccSopenharmony_ci * Copyright (c) 2020 Huawei Device Co., Ltd.
30f99eeccSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
40f99eeccSopenharmony_ci * you may not use this file except in compliance with the License.
50f99eeccSopenharmony_ci * You may obtain a copy of the License at
60f99eeccSopenharmony_ci *
70f99eeccSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
80f99eeccSopenharmony_ci *
90f99eeccSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
100f99eeccSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
110f99eeccSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
120f99eeccSopenharmony_ci * See the License for the specific language governing permissions and
130f99eeccSopenharmony_ci * limitations under the License.
140f99eeccSopenharmony_ci */
150f99eeccSopenharmony_ci
160f99eeccSopenharmony_ci/**
170f99eeccSopenharmony_ci * @addtogroup IotHardware
180f99eeccSopenharmony_ci * @{
190f99eeccSopenharmony_ci *
200f99eeccSopenharmony_ci * @brief Provides APIs for operating devices,
210f99eeccSopenharmony_ci * including flash, GPIO, I2C, PWM, UART, and watchdog APIs.
220f99eeccSopenharmony_ci *
230f99eeccSopenharmony_ci *
240f99eeccSopenharmony_ci *
250f99eeccSopenharmony_ci * @since 2.2
260f99eeccSopenharmony_ci * @version 2.2
270f99eeccSopenharmony_ci */
280f99eeccSopenharmony_ci
290f99eeccSopenharmony_ci/**
300f99eeccSopenharmony_ci * @file iot_errno.h
310f99eeccSopenharmony_ci *
320f99eeccSopenharmony_ci * @brief Defines error codes used by the IotHardware module.
330f99eeccSopenharmony_ci *
340f99eeccSopenharmony_ci * @since 2.2
350f99eeccSopenharmony_ci * @version 2.2
360f99eeccSopenharmony_ci */
370f99eeccSopenharmony_ci
380f99eeccSopenharmony_ci#ifndef IOT_ERRNO_H
390f99eeccSopenharmony_ci#define IOT_ERRNO_H
400f99eeccSopenharmony_ci
410f99eeccSopenharmony_ci/**
420f99eeccSopenharmony_ci * @brief Defines a module-level return value to indicate a successful operation.
430f99eeccSopenharmony_ci *
440f99eeccSopenharmony_ci */
450f99eeccSopenharmony_ci#define IOT_SUCCESS    0
460f99eeccSopenharmony_ci
470f99eeccSopenharmony_ci/**
480f99eeccSopenharmony_ci * @brief Defines a module-level return value to indicate an operation failure.
490f99eeccSopenharmony_ci *
500f99eeccSopenharmony_ci */
510f99eeccSopenharmony_ci#define IOT_FAILURE   (-1)
520f99eeccSopenharmony_ci
530f99eeccSopenharmony_ci#endif // IOT_ERRNO_H
540f99eeccSopenharmony_ci/** @} */
55