Remove the two separate ports, instead use two demo apps that use a conditional compilation to select the method of interrupt management to use.

This commit is contained in:
Richard Barry 2008-10-23 19:14:45 +00:00
parent eee1043e33
commit a91c6302e7
9 changed files with 9 additions and 1022 deletions

View file

@ -48,54 +48,7 @@
*/
#include "FreeRTOSConfig.h"
portSAVE_CONTEXT macro
/* Save the remaining registers. */
push r4
push r5
push r6
push r7
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
mov.w &_usCriticalNesting, r14
push r14
mov.w &_pxCurrentTCB, r12
mov.w r1, @r12
endm
/*-----------------------------------------------------------*/
portRESTORE_CONTEXT macro
mov.w &_pxCurrentTCB, r12
mov.w @r12, r1
pop r15
mov.w r15, &_usCriticalNesting
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop r7
pop r6
pop r5
pop r4
/* The last thing on the stack will be the status register.
Ensure the power down bits are clear ready for the next
time this power down register is popped from the stack. */
bic.w #0xf0,0(SP)
reti
endm
/*-----------------------------------------------------------*/
#include "portasm.h"
.CODE