view target-utils/buzplayer/main.c @ 619:f82551c77e58

libserial-newlnx: ASYNC_LOW_LATENCY patch reverted Reports from Das Signal indicate that loadtools performance on Debian is about the same as on Slackware, and that including or omitting the ASYNC_LOW_LATENCY patch from Serg makes no difference. Because the patch in question does not appear to be necessary, it is being reverted until and unless someone other than Serg reports an actual real-world system on which loadtools operation times are slowed compared to the Mother's Slackware reference and on which Slackware-like performance can be restored by setting the ASYNC_LOW_LATENCY flag.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 27 Feb 2020 01:09:48 +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();
	}
}