Demo.c

gehe zur Dokumentation dieser Datei
00001 /*******************************************************************************
00002 *
00003 * File Name:   Demo.c
00004 * Project  :   Demo
00005 *
00006 * Description: This file contains Demo main routine
00007 *
00008 * Ver.     Date         Author           Comments
00009 * -------  ----------   --------------   ------------------------------
00010 * 1.00     14.08.2003   Jan Grewe                build
00011 * 2.20     19.12.2005   m.a.r.v.i.n  PCDemo, RechteckDemo funktionieren nicht mehr mit aktueller Lib
00012 * 2.70rc3  06.04.2007   m.a.r.v.i.n  PCDemo, RechteckDemo und IRDemo angepaßt an AsuroLib
00013 *
00014 * Copyright (c) 2003 DLR Robotics & Mechatronics
00015 *****************************************************************************/
00016 /***************************************************************************
00017  *                                                                         *
00018  *   This program is free software; you can redistribute it and/or modify  *
00019  *   it under the terms of the GNU General Public License as published by  *
00020  *   the Free Software Foundation; either version 2 of the License, or     *
00021  *   any later version.                                                    *
00022  ***************************************************************************/
00023 #include "asuro.h"
00024 #include "LineDemo.h"
00025 #include "RechteckDemo.h"
00026 #include "PCDemo.h"
00027 #include "IRDemo.h"
00028 
00029 void Demo (void)
00030 {
00031   unsigned char sw;
00032   Init();
00033   SerPrint("DemoMode\r\n");
00034   for (;;)
00035   {
00036     sw = PollSwitch();
00037     if (sw == 0x01) LineDemo();
00038     if (sw == 0x02) RechteckDemo();
00039     if (sw == 0x04) PCDemo();
00040     if (sw == 0x08) IRDemo();
00041   }
00042 }

Erzeugt am Mon Apr 9 13:28:39 2007 für ASURO Library von  doxygen 1.5.1-p1