5.28 __watchdog_reset Intrinsic Function
The IAR __watchdog_reset
intrinsic function inserts a wdr
(watchdog reset) instruction.
Suggested Replacement
There is no equivalent MPLAB XC8 built-in function, but a wdr
instruction can be inserted using in-line assembly.
Use asm("wdr");
to insert the wdr
instruction into
the generated code..
Caveats
None
Examples
Consider migrating IAR code such
as:
void main(void)
{
__watchdog_reset();
}
to MPLAB XC8
code similar
to:void main(void)
{
asm("wdr");
}
Further Information
See the In-line Assembly and ??? and section in the MPLAB XC8 C Compiler User's Guide for AVR MCUs for more information on in-line assembly.