Files
OpenTXW81X/sdk/include/typesdef.h
T
2025-08-27 09:51:58 +01:00

72 lines
983 B
C

#ifndef _HUGEIC_TYPES_H_
#define _HUGEIC_TYPES_H_
#include "sys_config.h"
#include "errno.h"
#ifndef __IO
#define __IO volatile
#endif
#ifndef __I
#define __I volatile const
#endif
#ifndef __O
#define __O volatile
#endif
#ifndef RET_OK
#define RET_OK 0
#endif
#ifndef RET_ERR
#define RET_ERR -1
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef ALIGN
#define ALIGN(s,a) (((s)+(a)-1) & ~((a)-1))
#endif
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#endif
#ifndef STRUCT_PACKED
#define STRUCT_PACKED __attribute__ ((__packed__))
#endif
#ifdef __MBED__
#include "osal/mbed/typesdef.h"
#endif
#ifdef CSKY_OS
#include "osal/csky/typesdef.h"
#endif
#ifdef OHOS
#include "osal/ohos/typesdef.h"
#endif
typedef struct {
uint8 *addr;
uint32 size;
} scatter_data;
#include "tx_platform.h"
#include "version.h"
#ifdef CONFIG_SLEEP
#define __SYS_INIT
#else
#define __SYS_INIT __init
#endif
#endif