19 lines
400 B
C
19 lines
400 B
C
/**
|
|
* @file peanut_gb.c
|
|
* @brief Peanut-GB wrapper with audio stubs
|
|
*/
|
|
#include <stdint.h>
|
|
#define ENABLE_LCD 1
|
|
#define ENABLE_SOUND 1
|
|
|
|
// Audio stubs (required by Peanut-GB when ENABLE_SOUND=1)
|
|
static uint8_t audio_read(const uint16_t addr) {
|
|
return 0xFF;
|
|
}
|
|
|
|
static void audio_write(const uint16_t addr, const uint8_t val) {
|
|
// Handled by gb_init_sound callback
|
|
}
|
|
|
|
#include "peanut_gb.h"
|