|
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"
Classes | |
| struct | Trial |
Macros | |
| #define | SPU_DELAY (*(volatile uint32_t *)0xbf801014) |
| #define | SPU_RAM_CTRL (*(volatile uint16_t *)0xbf801dac) |
| #define | ENDX_LOW (*(volatile uint16_t *)0xbf801d9c) |
| #define | VOICE 1 |
| #define | VOICE_BIT (1u << VOICE) |
| #define | SAMPLE_ADDR 0x2000u |
| #define | MARKER_ADDR 0x3000u |
| #define | SAMPLE_LSAX (SAMPLE_ADDR >> 3) |
| #define | BLOCK8_LSAX ((SAMPLE_ADDR + 8 * 16) >> 3) |
| #define | MARKER_LSAX (MARKER_ADDR >> 3) |
| #define | IMAGE_SIZE (MARKER_ADDR + 64 - SAMPLE_ADDR) |
| #define | TICKS 96u |
| #define | POLL_LIMIT 2000000u |
| #define | NONE 0xffffu |
Enumerations | |
| enum | { WRITE_NONE , WRITE_AFTER_KON , WRITE_AFTER_ATTACK , WRITE_FETCHES } |
Functions | |
| int | main (void) |
| #define BLOCK8_LSAX ((SAMPLE_ADDR + 8 * 16) >> 3) |
| #define ENDX_LOW (*(volatile uint16_t *)0xbf801d9c) |
| #define IMAGE_SIZE (MARKER_ADDR + 64 - SAMPLE_ADDR) |
| #define MARKER_ADDR 0x3000u |
| #define MARKER_LSAX (MARKER_ADDR >> 3) |
| #define NONE 0xffffu |
| #define POLL_LIMIT 2000000u |
| #define SAMPLE_ADDR 0x2000u |
| #define SAMPLE_LSAX (SAMPLE_ADDR >> 3) |
| #define SPU_DELAY (*(volatile uint32_t *)0xbf801014) |
| #define SPU_RAM_CTRL (*(volatile uint16_t *)0xbf801dac) |
| #define TICKS 96u |
| #define VOICE 1 |
| #define VOICE_BIT (1u << VOICE) |
| int main | ( | void | ) |