OpenCores
URL https://opencores.org/ocsvn/mips32r1/mips32r1/trunk

Subversion Repositories mips32r1

[/] [mips32r1/] [trunk/] [Software/] [demos/] [XD2_Timer/] [src/] [app/] [app.c] - Rev 2

Compare with Previous | Blame | View Log

#include "drivers/piezo.h"
#include "drivers/lcd.h"
 
 
char *str_int = "Interrupt\x7e";
char *str_main = "Main\x7e";
 
int main(void)
{
	static volatile char disp = 0;
 
	Piezo_play(C5);
	LCD_clear();
	LCD_setAutoIncr(0);
	LCD_setPos(4);
	LCD_printString(str_int);
	LCD_setPos(25);
	LCD_printString(str_main);
 
	while (1) {
		LCD_setPos(31);
		LCD_printByte(disp);
		disp++;
	}
 
	return 0;
}
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.