Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

include/dkey.h

Go to the documentation of this file.
00001 
00006 /*
00007  *  The contents of this file are subject to the Mozilla Public License
00008  *  Version 1.0 (the "License"); you may not use this file except in
00009  *  compliance with the License. You may obtain a copy of the License
00010  *  at http://www.mozilla.org/MPL/
00011  *
00012  *  Software distributed under the License is distributed on an "AS IS"
00013  *  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00014  *  the License for the specific language governing rights and
00015  *  limitations under the License.
00016  *
00017  *  The Original Code is legOS code, released October 17, 1999.
00018  *
00019  *  The Initial Developer of the Original Code is Markus L. Noga.
00020  *  Portions created by Markus L. Noga are Copyright (C) 1999
00021  *  Markus L. Noga. All Rights Reserved.
00022  *
00023  *  Contributor(s): Markus L. Noga <markus@noga.de>
00024  */
00025 
00026 #ifndef __dkey_h__
00027 #define __dkey_h__
00028 
00029 #ifdef  __cplusplus
00030 extern "C" {
00031 #endif
00032 
00033 #include <config.h>
00034 #ifdef CONF_DKEY
00035 
00036 #include <tm.h>
00037 
00039 //
00040 // Definitions
00041 //
00043 
00044 #define KEY_ONOFF 0x01          
00045 #define KEY_RUN   0x02          
00046 #define KEY_VIEW  0x04          
00047 #define KEY_PRGM  0x08          
00048 
00049 #define KEY_ANY   0x0f          
00050 
00051 
00052 //
00053 // Variables
00054 //
00056 
00058 
00060 extern volatile unsigned char dkey_multi;
00061 
00063 
00065 extern volatile unsigned char dkey;
00066 
00068 //
00069 // Functions
00070 //
00072 
00073 
00075 //
00076 extern wakeup_t dkey_pressed(wakeup_t data);
00077 
00079 //
00080 extern wakeup_t dkey_released(wakeup_t data);
00081 
00083 
00085 extern int getchar();
00086 
00087 #endif // CONF_DKEY
00088 
00089 #ifdef  __cplusplus
00090 }
00091 #endif
00092 
00093 #endif // __dkey_h__

brickOS is released under the Mozilla Public License.
Original code copyright 1998-2002 by the authors.

Generated on Mon Feb 16 21:01:52 2004 for brickOS C by doxygen 1.3.5