#ifndef IDIBUS_IMPL_CUSTOM_H_ #define IDIBUS_IMPL_CUSTOM_H_ //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #include #include #include #include "IDIBUS_IMPL.h" #include "../moduleFiles/SPI.h" #define TimerStop TCCR2B = 0 #define ResetTimer TCNT2 = 0 #define TimerTime OCR2A #define TimerStartTick TCCR2B = (1 << CS21) // 0.5 мкс (предделитель 8) //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- enum IDIBUS_MODULE_DEVICES_LIST // ???????????????????????????????????????? { IDIBUS_GEN_DEV = 0x00, IDIBUS_DEVICES_NUMBER }; enum GenOperations { GEN_Wait = 0x00, GEN_Send }; enum GenOperations CurrentState; //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- IDIBUS_DEVICE IDIBUS_DEVICES[IDIBUS_DEVICES_NUMBER]; #define GEN_CHN_COUNT 1 IDIBUS_CHANNEL IDIBUS_GEN_CHNLS[GEN_CHN_COUNT]; //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- void IDIBUS_GEN_ChannelHandler(struct IDIBUS_CHANNEL_STR* CH, IDIBUS_FARG_TYPE *farg); void STMReset(); //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #endif /* IDIBUS_IMPL_CUSTOM_H_ */