view target-utils/buzplayer/main.c @ 607:d5abcbbf7432

scripts/gtm900[bp]-ffs-clean: remove some more wrong files An earlier version of GTM900-B firmware has been found in the wild that still has MFW&BMI layers included (producing files under /mmi), as well as enlarged /pcm/L[DMR]N files. These files are wrong for FreeCalypso fw and thus need to be cleaned out.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 11 Feb 2020 21:27:40 +0000
parents 49d2684805b1
children 9092ff68e37d
line wrap: on
line source

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

extern char _end[];

struct melentry *melody_buf_start, *melody_buf_tailptr;

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();
	}
}