|
Nugget
Bare-metal libraries and examples for the original PlayStation
|
#include "common/hardware/dma.h"#include "common/hardware/hwregs.h"#include "common/hardware/spu.h"#include "common/syscalls/syscalls.h"#include <stdint.h>
Macros | |
| #define | SPU_DELAY (*(volatile uint32_t *)0xbf801014) |
| #define | SPU_UPLOAD_ADDR 0x1080u |
| #define | SPU_REVERB_SIZE 0x26c0u |
| #define | SPU_REVERB_PRESET kReverbRoomPreset |
| #define | SPU_REVERB_BASE (0x80000u - SPU_REVERB_SIZE) |
| #define | SPU_REVERB_BASE_REG (SPU_REVERB_BASE >> 3) |
| #define | BURST_TOTAL_BLOCKS 512 |
| #define | BURST_UPLOAD_BYTES (BURST_TOTAL_BLOCKS * 16) |
Functions | |
| int | main (void) |
| #define BURST_TOTAL_BLOCKS 512 |
| #define BURST_UPLOAD_BYTES (BURST_TOTAL_BLOCKS * 16) |
| #define SPU_REVERB_BASE (0x80000u - SPU_REVERB_SIZE) |
| #define SPU_REVERB_BASE_REG (SPU_REVERB_BASE >> 3) |
| #define SPU_REVERB_PRESET kReverbRoomPreset |
| #define SPU_REVERB_SIZE 0x26c0u |
| #define SPU_UPLOAD_ADDR 0x1080u |