init.h

00001 #ifndef INIT_H
00002 #define INIT_H
00003 
00004 #include <GNU_defs.h>
00005 #include <math.h>
00006 #include <stdio.h>
00007 #include <string.h>
00008 #include <stdlib.h>
00009 #include <stdarg.h>
00010 #include <ser.h>
00011 #include <Fifo.h>
00012 #include <realtime.h>
00013 #include <ioc.h>
00014 #include <pwm.h>
00015 #include <Relay.h>
00016 #include <key.h>
00017 #include <atod.h>
00018 #include <lcd.h>
00019 #include <ssi.h>
00020 #include <DS1305RTC.h>
00021 #include <LTC1290.h>
00022 #include <tlv5614.h>
00023 #include <clocks.h>
00024 #include <eeprom.h>
00025 
00026 
00027 /*init.h
00028 board specific defines,initializations, and tests
00029 */
00030 
00040 
00047 typedef struct PWMdatastruct
00048 {
00049 int duty;
00050 unsigned long frequency;
00051 }PWMdatastruct;
00052 
00053 extern PWMdatastruct PWMdata[PWMSYS];
00054 
00060 typedef struct Countdatastruct
00061 {
00062 int trigger;
00063 int flags;
00064 }Countdatastruct;
00065 
00066 extern Countdatastruct CountData[IOCNUMPORTS];
00067 
00072 typedef struct DtoAdatastruct
00073 {
00074 int output;
00075 }DtoAdatastruct;
00076 
00077 
00078 
00097 int __attribute__((far))init(void);
00098 
00103 int __attribute__((far))PWM_Ipac_Init(void);
00104 
00113 int __attribute__((far))PWM_Ipac(int ict,int duty,unsigned long frequency);
00114 
00115 
00129 int __attribute__((far))Counter_Ipac(int ict,u8 trigger, u16 load,count_callback callback,void *privatedata, u8 flags);
00130 
00131 
00137 int __attribute__((far))DtoA_pwm(int dac, int output);
00138 
00144 int __attribute__((far))DtoA_Set(int dac, int percent);
00145 
00150 int __attribute__((far)) rc(void);
00151 
00153 #endif
00154 

Generated on Fri Mar 3 17:25:45 2006 for EMAC-HCS12-SDK by  doxygen 1.4.6