2017-08-08 09:40:09 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifndef ARM9
|
|
|
|
#ifndef ARM11
|
|
|
|
#error "Unknown processor"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2019-04-09 09:33:52 -03:00
|
|
|
#define BIT(x) (1 << (x))
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLER__
|
2019-04-11 18:16:20 -03:00
|
|
|
#include <stdbool.h>
|
2017-08-08 09:40:09 -03:00
|
|
|
#include <stdint.h>
|
2017-08-08 23:04:17 -03:00
|
|
|
#include <stddef.h>
|
2017-08-08 09:40:09 -03:00
|
|
|
|
2019-04-09 09:33:52 -03:00
|
|
|
#define asm_v asm __volatile__
|
2017-08-08 09:40:09 -03:00
|
|
|
|
|
|
|
typedef uint8_t u8;
|
|
|
|
typedef uint16_t u16;
|
|
|
|
typedef uint32_t u32;
|
|
|
|
typedef uint64_t u64;
|
|
|
|
|
|
|
|
typedef int64_t s8;
|
|
|
|
typedef int64_t s16;
|
|
|
|
typedef int64_t s32;
|
|
|
|
typedef int64_t 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;
|
2019-04-09 09:33:52 -03:00
|
|
|
#endif
|