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:
parent
a0d2988846
commit
c6ec22c4c8
8 changed files with 61 additions and 5 deletions
|
@ -32,6 +32,11 @@ extern void spi_rx_dma_callback(void);
|
|||
*
|
||||
* if callback defined a poll is made to that process
|
||||
*/
|
||||
/* Avoid referencing bits, we don't call code which use them */
|
||||
#pragma save
|
||||
#if CC_CONF_OPTIMIZE_STACK_SIZE
|
||||
#pragma exclude bits
|
||||
#endif
|
||||
void
|
||||
dma_isr(void) __interrupt (DMA_VECTOR)
|
||||
{
|
||||
|
@ -65,4 +70,5 @@ dma_isr(void) __interrupt (DMA_VECTOR)
|
|||
#endif
|
||||
EA = 1;
|
||||
}
|
||||
#pragma restore
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue