00001 /*************************************************************************** 00002 * $Id: ior5e.h 209 2008-09-26 20:54:43Z merdmann $ 00003 * 00004 * Wed Dec 5 20:55:18 2007 00005 * Copyright 2007 Michael Erdmann 00006 * Email: michael.erdmann@snafu.de 00007 ****************************************************************************/ 00008 00009 /* 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00113 #include "dev.h" 00114 00115 #ifndef _IOR5E_H 00116 #define _IOR5E_H 00117 00121 void IOR_Update( void ); 00122 00127 void LED_On(unsigned nbr); 00131 void LED_Off(unsigned nbr); 00132 00134 void Set_LEDS(unsigned p); 00135 00137 #define RLY1 23 00138 #define RLY2 22 00139 #define RLY3 21 00140 #define RLY4 20 00141 #define RLY5 19 00142 #define RLY_NC3 18 00143 #define RLY_NC2 17 00144 #define RLY_NC1 16 00145 00147 #define LD5_A 15 00148 #define LD5_B 14 00149 #define LD6_A 13 00150 #define LD6_B 12 00151 #define LD7_A 11 00152 #define LD7_B 10 00153 #define LD8_A 9 00154 #define LD8_B 8 00155 #define LD1_A 7 00156 #define LD1_B 6 00157 #define LD2_A 5 00158 #define LD2_B 4 00159 #define LD3_A 3 00160 #define LD3_B 2 00161 #define LD4_A 1 00162 #define LD4_B 0 00163 00168 void Relay_On(unsigned nbr); 00173 void Relay_Off(unsigned nbr); 00174 00175 00176 #define LED_PWR LD1_A 00177 00179 #define I2C_RTC 0x68 00180 00186 void get_time( byte *h, byte *m, byte *s); 00187 00189 void get_date( byte *y, byte *m, byte *d); 00190 00192 typedef byte (*t_portb_handler)(byte); 00193 00194 extern t_portb_handler portb_interrupt; 00195 00197 extern __code t_dev output_handler; 00199 extern __code t_dev portb_handler; 00200 00214 void panic( int nbr ); 00215 00216 #endif /* _IOR5E_H */
1.4.6