Go to the source code of this file.
Defines | |
#define | Is_ext_reset() ((MCUSR&(1<<EXTRF)) ? TRUE:FALSE) |
#define | Ack_ext_reset() (MCUSR= ~(1<<EXTRF)) |
#define | Is_POR_reset() ((MCUSR&(1<<(MCUSR= ~(1<<PORF)))) ? TRUE:FALSE) |
#define | Ack_POR_reset() (MCUSR= ~(1<<PORF)) |
#define | Is_BOD_reset() ((MCUSR&(1<<BORF)) ? TRUE:FALSE) |
#define | Ack_BOD_reset() (MCUSR= ~(1<<BORF)) |
#define | Is_wdt_reset() ((MCUSR&(1<<WDRF)) ? TRUE:FALSE) |
#define | Ack_wdt_reset() (MCUSR= ~(1<<WDRF)) |
#define | Wdt_ack_interrupt() (WDTCSR = (U8)(1<<WDIF)) |
#define | Is_wdt_interrupt() (WDTCSR&(1<<WDIF) ? TRUE:FALSE) |
#define | Is_not_wdt_interrupt() (WDTCSR&(1<<WDIF) ? FALSE:TRUE) |
#define | Is_wdt_early_warning() (WDTCKD&(1<<WDEWIF) ? TRUE:FALSE) |
#define | Is_not_wdt_early_warning() (WDTCKD&(1<<WDEWIF) ? FALSE:TRUE) |
#define | WDTO_16MS 0 |
#define | WDTO_32MS 1 |
#define | WDTO_64MS 2 |
#define | WDTO_125MS 3 |
#define | WDTO_250MS 4 |
#define | WDTO_500MS 5 |
#define | WDTO_1S 6 |
#define | WDTO_2S 7 |
#define | WDTO_4S 8 |
#define | WDTO_8S 9 |
#define | Soft_reset() {asm("jmp 0000");} |
Functions | |
void | wdtdrv_disable (void) |
This functions stops the hardware watchdog timer. | |
void | wdtdrv_enable (U8 timeout) |
This functions activates the hardware watchdog timer. | |
void | wdtdrv_interrupt_enable (U8 timeout) |
This functions activates the hardware watchdog timer Interrupt Mode only. | |
void | wdtdrv_interrupt_reset_enable (U8 timeout) |
This functions activates the hardware watchdog timer Interrupt & System Reset Mode. |
Definition in file wdt_drv.h.