diff --git a/0 b/0 deleted file mode 100755 index 6cddcbb..0000000 Binary files a/0 and /dev/null differ diff --git a/Makefile.cfg b/Makefile.cfg deleted file mode 100755 index c787a7c..0000000 --- a/Makefile.cfg +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/make -f -# PROJECT INFORMATION -NAME = sound -ICON = ./icon.bmp -LIB = gcc fx - -## DIRECTORIES -SRCDIR = ./src -INCDIR = ./include -OBJDIR = ./obj -LIBDIR = ./lib -SCPTDIR = ./scripts - -# TOOLCHAIN -## Directory maker -MD = mkdir -p -## File remover -RM = rm -f -## Assembler -AS = sh3eb-elf-as -## C compiler -CC = sh3eb-elf-gcc -CFLAGS = -m3 -mb -O0 -nostdlib -Wall -Wextra -Wno-main -pedantic -std=c11 -I $(INCDIR) -## Linker -LD = sh3eb-elf-gcc -LFLAGS = -nostdlib -T $(SCPTDIR)/addin.ld -L $(LIBDIR) $(addprefix -l,$(LIB)) -## Object copier -OBJCPY = sh3eb-elf-objcopy -## G1A Wrapper -WRAPR = g1a-wrapper -## Sender -SENDR = UsbConnector - -# SOURCES -SRC = crt0 Sound4Calc syscall - -# INCLUDES -INC = dispbios endian filebios fxlib keybios timer \ - stdlib syscall \ - Sound4Calc - -# END OF FILE diff --git a/src/Sound4Calc.c b/src/Sound4Calc.c index b427913..3bd3ac9 100755 --- a/src/Sound4Calc.c +++ b/src/Sound4Calc.c @@ -1,4 +1,3 @@ - #include "addresses.h" #include "Sound4Calc.h" @@ -16,7 +15,7 @@ int main(void) unsigned int key=0; int sleep = 200; - //unsigned int i=0,j=0; + //unsigned int i=0; setup(); @@ -39,18 +38,11 @@ int main(void) case KEY_RIGHT : sleep+=5; break; case KEY_LEFT : sleep-=5; break; case KEY_EXE : - i=0; - while(i<50000) - { - // ResetPin(); timer_start(TIMER_USER, sleep, Clock_Hz, ResetPin, 0); - SetPin(); - i++; - - } - timer_stop(TIMER_USER); + SetPin(); break; case KEY_EXIT : + timer_stop(TIMER_USER); return 1; } }