Add some more headers

This commit is contained in:
PikalaxALT 2021-08-05 08:25:46 -04:00
parent 774c778c4b
commit e0b40b1b49
3 changed files with 71 additions and 0 deletions

6
lib/include/cw.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef GUARD_CW_H
#define GUARD_CW_H
#include <cw/function_target.h>
#endif //GUARD_CW_H

View File

@ -0,0 +1,13 @@
#ifndef GUARD_CW_FUNCTION_TARGET_H
#define GUARD_CW_FUNCTION_TARGET_H
#define ARM_FUNC _Pragma("thumb off")
#define THUMB_FUNC _Pragma("thumb on")
#define ENUMS_ALWAYS_INT_ON _Pragma("enumsalwaysint on")
#define ENUMS_ALWAYS_INT_OFF _Pragma("enumsalwaysint off")
#define ENUMS_ALWAYS_INT_RESET _Pragma("enumsalwaysint reset")
#define ALIGN(num) __attribute__ ((aligned(num)))
#endif //GUARD_CW_FUNCTION_TARGET_H

52
lib/include/nitro/types.h Normal file
View File

@ -0,0 +1,52 @@
#ifndef NITRO_TYPES_H_
#define NITRO_TYPES_H_
typedef unsigned char u8;
typedef unsigned short int u16;
typedef unsigned long u32;
typedef signed char s8;
typedef signed short int s16;
typedef signed long s32;
typedef unsigned long long int u64;
typedef signed long long int s64;
typedef volatile u8 vu8;
typedef volatile u16 vu16;
typedef volatile u32 vu32;
typedef volatile u64 vu64;
typedef volatile s8 vs8;
typedef volatile s16 vs16;
typedef volatile s32 vs32;
typedef volatile s64 vs64;
typedef float f32;
typedef volatile f32 vf32;
typedef u8 REGType8;
typedef u16 REGType16;
typedef u32 REGType32;
typedef u64 REGType64;
typedef vu8 REGType8v;
typedef vu16 REGType16v;
typedef vu32 REGType32v;
typedef vu64 REGType64v;
typedef int BOOL;
#define TRUE 1
#define FALSE 0
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else // __cplusplus
#define NULL ((void *)0)
#endif // __cplusplus
#endif
#define SDK_FORCE_EXPORT __declspec(force_export)
#endif //NITRO_TYPES_H_