push
This commit is contained in:
parent
8ec6d4b8af
commit
cfb3fb08b0
42
Makefile.cfg
42
Makefile.cfg
|
@ -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
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue