change everything to use a common types file

This commit is contained in:
Elijah Thomas
2023-12-24 09:59:13 -05:00
parent d8362c1004
commit e32db6f07a
213 changed files with 3516 additions and 3277 deletions
+4 -4
View File
@@ -1,15 +1,15 @@
#ifndef RVL_SDK_OS_MEMORY_H
#define RVL_SDK_OS_MEMORY_H
#include "rvl/types.h"
#include <common.h>
#ifdef __cplusplus
extern "C" {
#endif
#define OS_MEM_MB_TO_B(mb) ((mb)*1024 * 1024)
#define OS_MEM_MB_TO_B(mb) ((mb) * 1024 * 1024)
#define OS_MEM_B_TO_MB(mb) ((mb) / 1024 / 1024)
#define OS_MEM_IS_MEM1(addr) (((u32)(addr)&0x30000000) == 0)
#define OS_MEM_IS_MEM2(addr) (((u32)(addr)&0x30000000) == 0x10000000)
#define OS_MEM_IS_MEM1(addr) (((u32)(addr) & 0x30000000) == 0)
#define OS_MEM_IS_MEM2(addr) (((u32)(addr) & 0x30000000) == 0x10000000)
u32 OSGetPhysicalMem1Size(void);
u32 OSGetPhysicalMem2Size(void);