no-OS
Loading...
Searching...
No Matches
no_os_error.h
Go to the documentation of this file.
1/***************************************************************************/
33
34#ifndef _NO_OS_ERROR_H_
35#define _NO_OS_ERROR_H_
36
37#include <errno.h>
38
39#ifndef __NO_OS_ELASTERROR
40#define __NO_OS_ELASTERROR 2000
41#endif
42
43#define NO_OS_EOVERRUN (__NO_OS_ELASTERROR + 1) /* Circular buffer overrun */
44
45
46#define NO_OS_IS_ERR_VALUE(x) ((x) < 0)
47#define NO_OS_IS_ERR(x) (NO_OS_IS_ERR_VALUE((unsigned long)x))
48#define NO_OS_PTR_ERR(x) ((long)x)
49#define NO_OS_ERR_CAST(x) ((void *) x)
50
51#endif // _NO_OS_ERROR_H_
Error macro definition for ARM Compiler.