This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug1001300] problÃme de commutation des taches


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 on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]