Re: Cortex-M3 HAL interrupt-priority code bug

2010-11-25 Thread Nagaraj K
It makes sense now. Thanks, Nagaraj

Re: Cortex-M3 HAL interrupt-priority code bug

2010-11-25 Thread Nick Garnett
Nick Garnett writes: > "Christophe Coutand" writes: > > > My understanding is: > > > > CYGNUM_HAL_CORTEXM_PRIORITY_MAX is defined equal to > > 1<<(8-CYGNUM_HAL_CORTEXM_PRIORITY_LEVEL_BITS) > > > > What the eCos implementation really does is to reserved level 0 for > > DEBUG and SVC traps. If

Re: Cortex-M3 HAL interrupt-priority code bug

2010-11-25 Thread Nick Garnett
"Christophe Coutand" writes: > My understanding is: > > CYGNUM_HAL_CORTEXM_PRIORITY_MAX is defined equal to > 1<<(8-CYGNUM_HAL_CORTEXM_PRIORITY_LEVEL_BITS) > > What the eCos implementation really does is to reserved level 0 for > DEBUG and SVC traps. If you call hal_interrupt_set_level with lev

RE: Cortex-M3 HAL interrupt-priority code bug

2010-11-25 Thread Christophe Coutand
M3 HAL interrupt-priority code bug Nagaraj K writes: > I see that this function wrongly implements the priority level in > Cortex-M3 processor. According to the Cortex-M3 data sheet, we need to > write the priority level to the top N bits of the register where N is > the number of p

Re: Cortex-M3 HAL interrupt-priority code bug

2010-11-25 Thread Nick Garnett
Nagaraj K writes: > I see that this function wrongly implements the priority level in > Cortex-M3 processor. According to the Cortex-M3 data sheet, we need to > write the priority level to the top N bits of the register where N is > the number of priority level bits implemented in this particular

Cortex-M3 HAL interrupt-priority code bug

2010-11-25 Thread Nagaraj K
Hi, I was browsing through the Cortex-M3 HAL port and everything looks OK except for the function hal_interrupt_set_level() in hal\cortexm\arch\current\src\hal_misc.c Here is the original function. __externC void hal_interrupt_set_level( cyg_uint32 vector, cyg_uint32 level ) { cyg_uint32 l