diff --git a/old/test/Test.pak/launch.sh b/old/test/Test.pak/launch.sh deleted file mode 100755 index 604cabe..0000000 --- a/old/test/Test.pak/launch.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -cd $(dirname "$0") - -./test.elf &> "$SDCARD_PATH/log.txt" diff --git a/old/test/main.c b/old/test/main.c deleted file mode 100644 index 7b064f9..0000000 --- a/old/test/main.c +++ /dev/null @@ -1,86 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "defines.h" -#include "utils.h" -#include "api.h" - -/////////////////////////////////////// - -#include - -static uint64_t GFX_getTicks(void) { - uint64_t ret; - struct timeval tv; - - gettimeofday(&tv, NULL); - - ret = (uint64_t)tv.tv_sec * 1000000; - ret += (uint64_t)tv.tv_usec; - - return ret; -} - -int main (int argc, char *argv[]) { - SDL_Surface* screen = GFX_init(); - PAD_reset(); - - int quit = 0; - while (!quit) { - // unsigned long frame_start = SDL_GetTicks(); - uint64_t frame_start_us = GFX_getTicks(); - - PAD_poll(); - if (PAD_anyPressed()) break; - - // TODO: diagnosing framepacing issues - static int frame = 0; - int x = frame * 8; - - void* dst; - - dst = screen->pixels; - memset(dst, (frame%2)?0x00:0xff, (SCREEN_HEIGHT * SCREEN_PITCH)); - // memset(dst, 0, (16 * SCREEN_PITCH)); - // for (int y=0; y<16; y++) { - // memset(dst+(8 * 60 * SCREEN_BPP), 0xff, SCREEN_BPP); - // dst += SCREEN_PITCH; - // } - // - // dst = screen->pixels; - // dst += (x * SCREEN_BPP); - // - // for (int y=0; y<16; y++) { - // memset(dst, 0xff, 8 * SCREEN_BPP); - // dst += SCREEN_PITCH; - // } - - frame += 1; - if (frame>=60) frame -= 60; - - GFX_flip(screen); - - // SDL_Delay(500); - - // slow down to 60fps - // unsigned long frame_duration = SDL_GetTicks() - frame_start; - uint64_t frame_duration_us = GFX_getTicks() - frame_start_us; - -// #define TARGET_FRAME_DURATION 17 -#define TARGET_FRAME_DURATION_US 16666 - // if (frame_duration ./log.txt \ No newline at end of file diff --git a/src/prober/makefile b/src/prober/makefile deleted file mode 100644 index f0a42ae..0000000 --- a/src/prober/makefile +++ /dev/null @@ -1,15 +0,0 @@ -ifeq (,$(CROSS_COMPILE)) -$(error missing CROSS_COMPILE for this toolchain) -endif - -TARGET = Probe.pak/prober.elf - -CC = $(CROSS_COMPILE)gcc -CFLAGS = -marm -mtune=cortex-a9 -mfpu=neon-vfpv4 -mfloat-abi=hard -march=armv7-a -fomit-frame-pointer -CFLAGS += -I. -# LDFLAGS = -ldl -lSDL -lSDL_image -lSDL_ttf - -all: - $(CC) prober.c -o $(TARGET) $(CFLAGS) $(LDFLAGS) -clean: - rm -f $(TARGET) \ No newline at end of file diff --git a/src/prober/prober.c b/src/prober/prober.c deleted file mode 100644 index dced2e8..0000000 --- a/src/prober/prober.c +++ /dev/null @@ -1,16 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include - -/////////////////////////////////////// - -#include - - -int main (int argc, char *argv[]) { - system("./exec.sh"); -} \ No newline at end of file