This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Cortex M3 idle sleep
Simon Kallweit <simon.kallweit@intefo.ch> writes:
> Nick Garnett wrote:
> > Simon Kallweit <simon.kallweit@intefo.ch> writes:
> >
> >
> >> Nick Garnett wrote:
> >>
> >>> The "#if 0" is an oversight on my part. When debugging via JTAG I was
> >>> having difficulties breaking in to an idle system. Stopping it using
> >>> WFI solved this. The #else part is also a consequence of this, so that
> >>> code should really be:
> >>>
> >>>
> >> Well that's actually the reason for me to propose a
> >> CYGHWR_HAL_CORTEXM_IDLE_SLEEP configuration option. During debugging,
> >> wfi is rather troublesome, so I thought it might be a good idea to
> >> make it configurable. Or is this too much cruft?
> >>
> >
> > I think it might be too much cruft.
> >
> > I don't know how other people work but I tend to like
> > enabling/disabling debug stuff by editing the source rather than
> > messing with the configuration. The latter is often more complicated
> > and it takes a lot longer to recompile everything. CVS usually reminds
> > me to undo the change before checking in -- except in this case where
> > there was no original to diff against, and I forgot about this edit.
> >
>
> Well you're probably right. So let's just clean things up then :)
Yep. I'll do this right now.
--
Nick Garnett eCos Kernel Architect
eCosCentric Limited http://www.eCosCentric.com The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No: 4422071
Besuchen Sie uns vom 3.-5.03.09 auf der Embedded World 2009, Stand 11-300
Visit us at Embedded World 2009, NÃrnberg, Germany, 3-5 Mar, Stand 11-300
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss