mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-24 05:55:01 +03:00
daf712b034
AI_CONTROL_REG AI_DACRATE_REG AI_BITRATE_REG
13 lines
328 B
C
13 lines
328 B
C
#ifndef _HARDWARE_H_
|
|
#define _HARDWARE_H_
|
|
|
|
#define HW_REG(reg, type) *(volatile type *)(uintptr_t)((reg) | 0xa0000000)
|
|
|
|
#define AI_STATUS_REG 0x0450000C
|
|
#define AI_LEN_REG 0x04500004
|
|
#define AI_CONTROL_REG 0x04500008
|
|
#define AI_STATUS_AI_FULL (1 << 31)
|
|
#define AI_DACRATE_REG 0x04500010
|
|
#define AI_BITRATE_REG 0x04500014
|
|
|
|
#endif |