Aaeon EMB-A70M Instrukcja Użytkownika Strona 64

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 92
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 63
Mini-ITX EMB-A70M
Appendix A Programming the Watchdog Timer A-5
************************************************************************************
//Procedure:AaeonWDTEnable
VOID
AaeonWDTEnable(){
WDTEnableDisable(
EnableLDN,EnableReg,EnableBit,1);
}
//Procedure:AaeonWDTConfig
VOID
AaeonWDTConfig(){
//DisableWDTcounting
WDTEnableDisable(
EnableLDN,EnableReg,EnableBit,0);
//ClearWatchdogTimeoutStatus
WDTClearTimeoutStatus();
//WDTrelativeparametersetting
WDTParameterSetting();
}
VOID
WDTEnableDisable(byteLDN,byteRegister,byteBitNum,byteValue){
SIOBitSet(LDN,Register,BitNum,Value);
}
VOID
WDTParameterSetting(){
//WatchdogTimercountersetting
SIOByteSet(TimerLDN,TimerReg,TimerVal);
//WDTcountingunitsetting
SIOBitSet(UnitLDN,UnitReg,UnitBit,UnitVal);
}
VOID
WDTClearTimeoutStatus(){
SIOBitSet(StatusLDN,StatusReg,StatusBit,1);
}
************************************************************************************
Przeglądanie stron 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 91 92

Komentarze do niniejszej Instrukcji

Brak uwag