display and gem lgic seperate cpu cores, audio fixed, display scaling implemented, psram aktivatet for threads in core
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
idf_component_register(
|
||||
SRCS "peanut_gb.c"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES "esp_timer"
|
||||
)
|
||||
|
||||
# Optimize emulator core for maximum performance
|
||||
target_compile_options(${COMPONENT_LIB} PRIVATE -O3)
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @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"
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user