blob: e8e07586096189b1a182a0fc0c59b0bd20f69d8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef RVL_SDK_AI_HARDWARE_H
#define RVL_SDK_AI_HARDWARE_H
#include "common.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* AI Hardware Registers
* https://www.gc-forever.com/yagcd/chap5.html#sec5.10
*/
volatile u32 AI_HW_REGS[8] AT_ADDRESS(0xCD006C00);
/**
* Hardware register indexes
*/
typedef enum {
AI_AICR, //!< 0xCC006C00
AI_AIVR, //!< 0xCC006C04
AI_AISCNT, //!< 0xCC006C08
AI_AIIT, //!< 0xCC006C0C
};
// AICR - AI Control Register
#define AI_AICR_SAMPLERATE (1 << 6)
#define AI_AICR_SCRESET (1 << 5)
#define AI_AICR_AIINTVLD (1 << 4)
#define AI_AICR_AIINT (1 << 3)
#define AI_AICR_AIINTMSK (1 << 2)
#define AI_AICR_AFR (1 << 1)
#define AI_AICR_PSTAT (1 << 0)
#ifdef __cplusplus
}
#endif
#endif
|