Aaeon PICO-CV01 Instrukcja Użytkownika Strona 81

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 103
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 80
PICO-ITX Board PICO-CV01
Appendix A Programming the Watchdog Timer A-5
WDTSetBit(TimerReg, PSWidthBit, PSWidthVal);
// Watchdog WDTRST# Enable
WDTSetBit(DevReg, WDTRstBit, WDTRstVal);
}
VOID WDTClearTimeoutStatus(){
WDTSetBit(TimerReg, StatusBit, 1);
}
*******************************************************************************
*******************************************************************************
VOID WDTWriteByte(byte Register, byte Value){
IOWriteByte(WDTAddr+Register, Value);
}
byte WDTReadByte(byte Register){
return IOReadByte(WDTAddr+Register);
}
VOID WDTSetBit(byte Register, byte Bit, byte Val){
byte TmpValue;
TmpValue = WDTReadByte(Register);
TmpValue &= ~(1 << Bit);
TmpValue |= Val << Bit;
WDTWriteByte(Register, TmpValue);
}
*******************************************************************************
Przeglądanie stron 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 102 103

Komentarze do niniejszej Instrukcji

Brak uwag