view target-utils/buzplayer/main.c @ 1010:1d144553a5d0

CHANGES: fc-host-tools-r21 about to be released
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 12 Dec 2023 07:45:56 +0000
parents 9092ff68e37d
children
line wrap: on
line source

#include "types.h"
#include "melody.h"

extern char _end[];

struct melentry *melody_buf_start, *melody_buf_tailptr;
int melody_mode;

main()
{
	uart_select_init();
	printf("FreeCalypso buzzer player running\n");
	print_boot_rom_info();
	*(volatile u16 *)0xfffe4806 = 0xFFF3;	/* enable ARMIO clock */
	timer_init();
	melody_buf_start = (struct melentry *) _end;
	melody_buf_tailptr = melody_buf_start;
	for (;;) {
		putchar('=');
		if (command_entry())
			command_dispatch();
	}
}