Mercurial > ecos
diff packages/hal/powerpc/ec555/current/include/plf_intr.h @ 1397:9c818dd5d9fa
Updates for EC555 targets - from Bob Koninckx
| author | gthomas |
|---|---|
| date | Mon, 24 Nov 2003 14:28:13 +0000 |
| parents | d2c90368aeef |
| children | 74dbf4c3f2e1 |
line wrap: on
line diff
--- a/packages/hal/powerpc/ec555/current/include/plf_intr.h +++ b/packages/hal/powerpc/ec555/current/include/plf_intr.h @@ -57,10 +57,20 @@ // //========================================================================== +#include <pkgconf/system.h> //---------------------------------------------------------------------------- // Reset. +#ifdef CYGPKG_IO_WATCHDOG +#define HAL_PLATFORM_RESET() \ + { \ + cyg_uint32 old_state; \ + HAL_DISABLE_INTERRUPTS(old_state); \ + while(1); \ + } +#else #define HAL_PLATFORM_RESET() CYG_EMPTY_STATEMENT +#endif #define HAL_PLATFORM_RESET_ENTRY 0x00000100
