8.9.12 builtin_avr_wdr Built-in Function
Inserts a wdr
instruction, which resets the watchdog timer.
Prototype
void __builtin_avr_wdr(void);
Example
void operationMode(unsigned char channel)
{
unsigned char val, status=GO;
while(status) {
val = readData(channel);
__builtin_avr_wdr();
status = processData(val);
if(status == WAIT) {
__builtin_avr_sleep();
status = GO;
}
__builtin_avr_wdr();
}
}