cc2530: Added a method to maximise stack depth

This was oringinally contributed/reported/discussed/patched by
Philippe Retornaz (EPFL) but it's implemented
in a more configurable fashion here.
This commit is contained in:
George Oikonomou 2012-09-05 16:00:23 +01:00
parent a0d2988846
commit c6ec22c4c8
8 changed files with 61 additions and 5 deletions

View file

@ -96,6 +96,11 @@ rtimer_arch_schedule(rtimer_clock_t t)
T1CCTL1 |= T1CCTL_IM;
}
/*---------------------------------------------------------------------------*/
/* avoid referencing bits, we don't call code which use them */
#pragma save
#if CC_CONF_OPTIMIZE_STACK_SIZE
#pragma exclude bits
#endif
void
rtimer_isr(void) __interrupt(T1_VECTOR)
{
@ -111,3 +116,4 @@ rtimer_isr(void) __interrupt(T1_VECTOR)
ENERGEST_OFF(ENERGEST_TYPE_IRQ);
T1IE = 1; /* Acknowledge Timer 1 Interrupts */
}
#pragma restore