This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug1001300] problÃme de commutation des taches
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: unassigned at bugs dot ecos dot sourceware dot org
- Date: Sun, 7 Aug 2011 05:16:34 +0100
- Subject: [Bug1001300] problÃme de commutation des taches
- Auto-submitted: auto-generated
- References: <bug-1001300-777@http.bugs.ecos.sourceware.org/>
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001300
--- Comment #8 from Christophe Coutand <ecos@hotmail.co.uk> 2011-08-07 05:16:32 BST ---
In the plf_intr.h of the soclib package, you can overwrite the clock definition
provided from the hal_intr.h.
You must select the correct interrupt for the RTC clock:
#define CYGNUM_HAL_INTERRUPT_RTC YOUR_SOCLIB_TIMER_IRQ_NUM
and define the 3 macos used by eCos to access the clock:
externC CYG_WORD32 cyg_hal_clock_period;
#define CYGHWR_HAL_CLOCK_PERIOD_DEFINED
#define HAL_CLOCK_INITIALIZE( _period_ ) \
CYG_MACRO_START \
/* Place code here * /
cyg_hal_clock_period = _period_; \
CYG_MACRO_END
#define HAL_CLOCK_RESET( _vector_, _period_ ) \
/* Place code here * /
CYG_MACRO_END
#define HAL_CLOCK_READ( _pvalue_ ) \
CYG_MACRO_START \
/* Place code here * /
CYG_MACRO_END
#define CYGHWR_HAL_CLOCK_CONTROL_DEFINED
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.