2 * Copyright Droids Corporation, Microb Technology, Eirbot (2005)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * Revision : $Id: test_int_show.c,v 1.3.4.2 2007-05-23 17:18:12 zer0 Exp $
27 #include <aversive/wait.h>
30 #include <diagnostic.h>
35 char buf[20] = "toto";
46 // increments the delay, and prepares the string to print
50 sprintf(buf, "\n%i", delay++);
55 if (buf[buf_index] == 0)
58 uart_send(0, buf[buf_index++]);
64 int test_int_show(void)
70 fdevopen(uart0_dev_send,NULL);
73 printf("\nhello, we will now test the int_show function\n");
74 printf("the counter shoud increment while you see the voltage decreasing on the pin\n");
75 printf("this is due to increasing processor charge\n");
79 // should be replaced by the scheduler
80 uart_register_tx_event(0, (void *) interrupt);