This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: HAL_PLATFORM_RESET
- From: daniel dot neri at sigicom dot se (Daniel Néri)
- To: ecos-discuss at sources dot redhat dot com
- Date: 25 Oct 2002 10:05:52 +0000
- Subject: [ECOS] Re: HAL_PLATFORM_RESET
- Organization: Sigicom AB, Stockholm, Sweden, http://www.sigicom.se
- References: <3DB8541C.6090606@siliconmotorsports.com>
Tim Drury <tdrury@siliconmotorsports.com> writes:
> I'm still trying to get my board to return to a reset (or redboot)
> state after running a test instead of looping forever inside
> cyg_test_exit(). The macro to reset the board, HAL_PLATFORM_RESET,
> is not defined for my ARM eb40a. What would be the best way to
> define it?
Here's what I've been using (on a custom AT91R40807 board):
#define HAL_PLATFORM_RESET() \
CYG_MACRO_START \
HAL_WRITE_UINT32(AT91_WD+AT91_WD_CMR, 0x3700); \
HAL_WRITE_UINT32(AT91_WD+AT91_WD_OMR, 0x2343); \
CYG_MACRO_END
Regards,
--Daniel
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss