example/arm/Makefile: remove implicit "circular dependency"

This commit is contained in:
Zack Buhman 2024-02-29 17:27:06 +08:00
parent 3338b611c1
commit 150a415433
2 changed files with 14 additions and 1 deletions

View File

@ -20,3 +20,14 @@ include base.mk
main.elf: LDSCRIPT = main.lds
main.elf: start.o main.o audio.pcm.o
.SUFFIXES:
.INTERMEDIATE:
.SECONDARY:
.PHONY: all clean
%: RCS/%,v
%: RCS/%
%: %,v
%: s.%
%: SCCS/s.%

View File

@ -2,7 +2,7 @@
extern void * _sine_start __asm("_binary_audio_pcm_start");
extern volatile uint32_t * dram __asm("dram");
extern volatile uint32_t dram[0x200000] __asm("dram");
extern "C"
void main()
@ -46,6 +46,8 @@ void main()
aica.common.TIMA(0);
aica.channel[0].KYONEX(1);
dram[0] = 0x11223344;
while (1) {
if (aica.common.TIMA() >= 1) {
aica.common.TIMA(0);