|
Nugget
Bare-metal libraries and examples for the original PlayStation
|
#include <stdint.h>#include "common/hardware/counters.h"#include "common/hardware/dma.h"#include "common/hardware/hwregs.h"#include "common/hardware/spu.h"#include "common/syscalls/syscalls.h"
Macros | |
| #define | SPU_DELAY (*(volatile uint32_t *)0xbf801014) |
| #define | WORK_SIZE 0x2000u |
| #define | WORK_BASE (0x80000u - WORK_SIZE) |
| #define | CTRL_ON 0xc000u |
| #define | CTRL_REVERB 0x0080u |
| #define | OUT_LEFT 0x4000u |
| #define | OUT_RIGHT 0x2000u |
Functions | |
| int | main (void) |
| #define CTRL_ON 0xc000u |
| #define CTRL_REVERB 0x0080u |
| #define OUT_LEFT 0x4000u |
| #define OUT_RIGHT 0x2000u |
| #define SPU_DELAY (*(volatile uint32_t *)0xbf801014) |
| #define WORK_BASE (0x80000u - WORK_SIZE) |
| #define WORK_SIZE 0x2000u |
| int main | ( | void | ) |