core, structural cleanup, fixes and improvements for type issues #2

This commit is contained in:
kub 2021-01-01 12:43:49 +01:00
parent 5ab80df952
commit f821bb7011
64 changed files with 140 additions and 150 deletions

View file

@ -22,9 +22,9 @@
#include "../common/arm_utils.h"
#include "../common/menu_pico.h"
#include "../common/emu.h"
#include "../../pico/pico_int.h"
#include "../../pico/sound/ym2612.h"
#include "../../pico/sound/mix.h"
#include <pico/pico_int.h>
#include <pico/sound/ym2612.h>
#include <pico/sound/mix.h>
#include "code940/940shared.h"
#include "plat.h"
#include "940ctl.h"

View file

@ -2,7 +2,7 @@
// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas
#include "940shared.h"
#include "../../common/helix/pub/mp3dec.h"
#include <platform/common/helix/pub/mp3dec.h>
static _940_data_t *shared_data = (_940_data_t *) 0x00100000;
static _940_ctl_t *shared_ctl = (_940_ctl_t *) 0x00200000;

View file

@ -1,4 +1,4 @@
#include "../../../pico/sound/ym2612.h"
#include <pico/sound/ym2612.h>
// max 16 jobs, lower num means higher prio
enum _940_job_t {

View file

@ -14,7 +14,7 @@ CROSS ?= arm-linux-gnueabi-
# settings
#up = 1
CFLAGS += -O2 -Wall -mno-thumb-interwork -fstrict-aliasing -ffast-math
CFLAGS += -O3 -Wall -mno-thumb-interwork -fstrict-aliasing -fno-stack-protector -fno-common -ffast-math
CFLAGS += -I../../common/helix/pub -I../../.. -I. -D__GP2X__ -DARM
CFLAGS += -mcpu=arm940t -mtune=arm940t -mabi=apcs-gnu -mfloat-abi=soft -mfpu=fpa
LDFLAGS = -static -e code940 -Ttext 0x0 -L$(lgcc_path) -lgcc
@ -66,9 +66,6 @@ code940.elf : $(OBJS940) $(LIBHELIX)
@echo ">>>" $@
$(GCC) $(CFLAGS) -Os -DEXTERNAL_YM2612 -c $< -o $@
mix.o : ../../../pico/sound/mix.s
@echo ">>>" $@
$(GCC) $(CFLAGS) -DEXTERNAL_YM2612 -c $< -o $@
misc_arm.o : ../../../pico/misc_arm.s
@echo ">>>" $@
$(GCC) $(CFLAGS) -DEXTERNAL_YM2612 -c $< -o $@

View file

@ -13,7 +13,7 @@
//#include "emu.h"
//#include "menu.h"
#include "../asmutils.h"
#include "../../helix/pub/mp3dec.h"
#include <platform/common/helix/pub/mp3dec.h>
/* we will need some gp2x internals here */
extern volatile unsigned short *gp2x_memregs; /* from minimal library rlyeh */