32 lines
613 B
C
32 lines
613 B
C
/**
|
|
* @file Type.h
|
|
* @author Rick Chan (chenyang@auotai.com)
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2020-03-27
|
|
*
|
|
* @copyright Copyright (c) 2020
|
|
*
|
|
*/
|
|
#ifndef TYPE_H
|
|
#define TYPE_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
|
|
#define UNUSED(x) ((void)(x))
|
|
|
|
typedef enum ERR
|
|
{
|
|
EC_BUSY = -8, // Resource is busy.
|
|
EC_ERESOURCES = -7, // No Resources.
|
|
EC_EOF = -6, // End.
|
|
EC_ENSUPPORT = -5, // Not supported.
|
|
EC_ENOPEN = -4, // Not opened.
|
|
EC_ETIMEOUT = -3, // Timeout.
|
|
EC_EPAM = -2, // Wrong parameter.
|
|
EC_ERROR = -1, // Generic error.
|
|
EC_OK = 0 // No error.
|
|
}EU_ERR;
|
|
|
|
#endif // TYPE_H
|