mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-02-21 09:35:31 -05:00
Update MPS430X ports so the sleep mode bits are cleared on exit from the tick interrupt.
Update heap_4.c.
This commit is contained in:
parent
59c9044de1
commit
054b018d0e
5 changed files with 29 additions and 32 deletions
|
|
@ -213,6 +213,7 @@ interrupt void vTickISREntry( void )
|
|||
{
|
||||
extern void vPortTickISR( void );
|
||||
|
||||
__bic_SR_register_on_exit( SCG1 + SCG0 + OSCOFF + CPUOFF );
|
||||
#if configUSE_PREEMPTION == 1
|
||||
extern void vPortPreemptiveTickISR( void );
|
||||
vPortPreemptiveTickISR();
|
||||
|
|
|
|||
|
|
@ -88,12 +88,6 @@ portRESTORE_CONTEXT .macro
|
|||
pop_x r15
|
||||
mov.w r15, &usCriticalNesting
|
||||
popm_x #12, r15
|
||||
|
||||
;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 )
|
||||
|
||||
pop.w sr
|
||||
ret_x
|
||||
.endm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue