pw5f/projekt_wyklad_6_freertos/Debug/projekt_wyklad_6_freertos.lss

7574 lines
286 KiB
Plaintext
Raw Normal View History

projekt_wyklad_6_freertos.elf: file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00002b28 00080000 00080000 00010000 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .relocate 00000434 20000000 00082b28 00020000 2**3
CONTENTS, ALLOC, LOAD, DATA
2 .bss 0000a1b8 20000434 00082f5c 00020434 2**2
ALLOC
3 .stack 00000404 2000a5ec 0008d114 00020434 2**0
ALLOC
4 .heap 00000200 2000a9f0 0008d518 00020434 2**0
ALLOC
5 .ARM.attributes 00000029 00000000 00000000 00020434 2**0
CONTENTS, READONLY
6 .comment 00000059 00000000 00000000 0002045d 2**0
CONTENTS, READONLY
7 .debug_info 000098b6 00000000 00000000 000204b6 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_abbrev 000013bc 00000000 00000000 00029d6c 2**0
CONTENTS, READONLY, DEBUGGING
9 .debug_loc 00002a80 00000000 00000000 0002b128 2**0
CONTENTS, READONLY, DEBUGGING
10 .debug_aranges 00000538 00000000 00000000 0002dba8 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_ranges 000004a8 00000000 00000000 0002e0e0 2**0
CONTENTS, READONLY, DEBUGGING
12 .debug_macro 00012502 00000000 00000000 0002e588 2**0
CONTENTS, READONLY, DEBUGGING
13 .debug_line 00004493 00000000 00000000 00040a8a 2**0
CONTENTS, READONLY, DEBUGGING
14 .debug_str 0005add2 00000000 00000000 00044f1d 2**0
CONTENTS, READONLY, DEBUGGING
15 .debug_frame 00001630 00000000 00000000 0009fcf0 2**2
CONTENTS, READONLY, DEBUGGING
Disassembly of section .text:
00080000 <exception_table>:
80000: f0 a9 00 20 61 01 08 00 e9 01 08 00 e9 01 08 00 ... a...........
80010: e9 01 08 00 e9 01 08 00 e9 01 08 00 00 00 00 00 ................
...
8002c: b1 06 08 00 e9 01 08 00 00 00 00 00 91 08 08 00 ................
8003c: d9 08 08 00 e9 01 08 00 e9 01 08 00 e9 01 08 00 ................
8004c: e9 01 08 00 e9 01 08 00 e9 01 08 00 e9 01 08 00 ................
8005c: e9 01 08 00 e9 01 08 00 e9 01 08 00 00 00 00 00 ................
8006c: e9 01 08 00 e9 01 08 00 e9 01 08 00 e9 01 08 00 ................
...
80084: e9 01 08 00 e9 01 08 00 e9 01 08 00 e9 01 08 00 ................
80094: e9 01 08 00 e9 01 08 00 e9 01 08 00 e9 01 08 00 ................
800a4: 00 00 00 00 e9 01 08 00 e9 01 08 00 e9 01 08 00 ................
800b4: e9 01 08 00 e9 01 08 00 e9 01 08 00 e9 01 08 00 ................
800c4: e9 01 08 00 e9 01 08 00 e9 01 08 00 e9 01 08 00 ................
800d4: e9 01 08 00 e9 01 08 00 e9 01 08 00 e9 01 08 00 ................
800e4: e9 01 08 00 e9 01 08 00 e9 01 08 00 e9 01 08 00 ................
000800f4 <__do_global_dtors_aux>:
800f4: b510 push {r4, lr}
800f6: 4c05 ldr r4, [pc, #20] ; (8010c <__do_global_dtors_aux+0x18>)
800f8: 7823 ldrb r3, [r4, #0]
800fa: b933 cbnz r3, 8010a <__do_global_dtors_aux+0x16>
800fc: 4b04 ldr r3, [pc, #16] ; (80110 <__do_global_dtors_aux+0x1c>)
800fe: b113 cbz r3, 80106 <__do_global_dtors_aux+0x12>
80100: 4804 ldr r0, [pc, #16] ; (80114 <__do_global_dtors_aux+0x20>)
80102: f3af 8000 nop.w
80106: 2301 movs r3, #1
80108: 7023 strb r3, [r4, #0]
8010a: bd10 pop {r4, pc}
8010c: 20000434 .word 0x20000434
80110: 00000000 .word 0x00000000
80114: 00082b28 .word 0x00082b28
00080118 <frame_dummy>:
80118: 4b0c ldr r3, [pc, #48] ; (8014c <frame_dummy+0x34>)
8011a: b143 cbz r3, 8012e <frame_dummy+0x16>
8011c: 480c ldr r0, [pc, #48] ; (80150 <frame_dummy+0x38>)
8011e: b510 push {r4, lr}
80120: 490c ldr r1, [pc, #48] ; (80154 <frame_dummy+0x3c>)
80122: f3af 8000 nop.w
80126: 480c ldr r0, [pc, #48] ; (80158 <frame_dummy+0x40>)
80128: 6803 ldr r3, [r0, #0]
8012a: b923 cbnz r3, 80136 <frame_dummy+0x1e>
8012c: bd10 pop {r4, pc}
8012e: 480a ldr r0, [pc, #40] ; (80158 <frame_dummy+0x40>)
80130: 6803 ldr r3, [r0, #0]
80132: b933 cbnz r3, 80142 <frame_dummy+0x2a>
80134: 4770 bx lr
80136: 4b09 ldr r3, [pc, #36] ; (8015c <frame_dummy+0x44>)
80138: 2b00 cmp r3, #0
8013a: d0f7 beq.n 8012c <frame_dummy+0x14>
8013c: e8bd 4010 ldmia.w sp!, {r4, lr}
80140: 4718 bx r3
80142: 4b06 ldr r3, [pc, #24] ; (8015c <frame_dummy+0x44>)
80144: 2b00 cmp r3, #0
80146: d0f5 beq.n 80134 <frame_dummy+0x1c>
80148: 4718 bx r3
8014a: bf00 nop
8014c: 00000000 .word 0x00000000
80150: 00082b28 .word 0x00082b28
80154: 20000438 .word 0x20000438
80158: 00082b28 .word 0x00082b28
8015c: 00000000 .word 0x00000000
00080160 <Reset_Handler>:
/**
* \brief This is the code that gets called on processor reset.
* To initialize the device, and call the main() routine.
*/
void Reset_Handler(void)
{
80160: b580 push {r7, lr}
80162: b082 sub sp, #8
80164: af00 add r7, sp, #0
uint32_t *pSrc, *pDest;
/* Initialize the relocate segment */
pSrc = &_etext;
80166: 4b17 ldr r3, [pc, #92] ; (801c4 <Reset_Handler+0x64>)
80168: 607b str r3, [r7, #4]
pDest = &_srelocate;
8016a: 4b17 ldr r3, [pc, #92] ; (801c8 <Reset_Handler+0x68>)
8016c: 603b str r3, [r7, #0]
if (pSrc != pDest) {
8016e: 687a ldr r2, [r7, #4]
80170: 683b ldr r3, [r7, #0]
80172: 429a cmp r2, r3
80174: d00c beq.n 80190 <Reset_Handler+0x30>
for (; pDest < &_erelocate;) {
80176: e007 b.n 80188 <Reset_Handler+0x28>
*pDest++ = *pSrc++;
80178: 683b ldr r3, [r7, #0]
8017a: 1d1a adds r2, r3, #4
8017c: 603a str r2, [r7, #0]
8017e: 687a ldr r2, [r7, #4]
80180: 1d11 adds r1, r2, #4
80182: 6079 str r1, [r7, #4]
80184: 6812 ldr r2, [r2, #0]
80186: 601a str r2, [r3, #0]
for (; pDest < &_erelocate;) {
80188: 683b ldr r3, [r7, #0]
8018a: 4a10 ldr r2, [pc, #64] ; (801cc <Reset_Handler+0x6c>)
8018c: 4293 cmp r3, r2
8018e: d3f3 bcc.n 80178 <Reset_Handler+0x18>
}
}
/* Clear the zero segment */
for (pDest = &_szero; pDest < &_ezero;) {
80190: 4b0f ldr r3, [pc, #60] ; (801d0 <Reset_Handler+0x70>)
80192: 603b str r3, [r7, #0]
80194: e004 b.n 801a0 <Reset_Handler+0x40>
*pDest++ = 0;
80196: 683b ldr r3, [r7, #0]
80198: 1d1a adds r2, r3, #4
8019a: 603a str r2, [r7, #0]
8019c: 2200 movs r2, #0
8019e: 601a str r2, [r3, #0]
for (pDest = &_szero; pDest < &_ezero;) {
801a0: 683b ldr r3, [r7, #0]
801a2: 4a0c ldr r2, [pc, #48] ; (801d4 <Reset_Handler+0x74>)
801a4: 4293 cmp r3, r2
801a6: d3f6 bcc.n 80196 <Reset_Handler+0x36>
}
/* Set the vector table base address */
pSrc = (uint32_t *) & _sfixed;
801a8: 4b0b ldr r3, [pc, #44] ; (801d8 <Reset_Handler+0x78>)
801aa: 607b str r3, [r7, #4]
SCB->VTOR = ((uint32_t) pSrc & SCB_VTOR_TBLOFF_Msk);
801ac: 4a0b ldr r2, [pc, #44] ; (801dc <Reset_Handler+0x7c>)
801ae: 687b ldr r3, [r7, #4]
801b0: f023 4360 bic.w r3, r3, #3758096384 ; 0xe0000000
801b4: f023 037f bic.w r3, r3, #127 ; 0x7f
801b8: 6093 str r3, [r2, #8]
/* Initialize the C library */
__libc_init_array();
801ba: 4b09 ldr r3, [pc, #36] ; (801e0 <Reset_Handler+0x80>)
801bc: 4798 blx r3
/* Branch to main function */
main();
801be: 4b09 ldr r3, [pc, #36] ; (801e4 <Reset_Handler+0x84>)
801c0: 4798 blx r3
/* Infinite loop */
while (1);
801c2: e7fe b.n 801c2 <Reset_Handler+0x62>
801c4: 00082b28 .word 0x00082b28
801c8: 20000000 .word 0x20000000
801cc: 20000434 .word 0x20000434
801d0: 20000434 .word 0x20000434
801d4: 2000a5ec .word 0x2000a5ec
801d8: 00080000 .word 0x00080000
801dc: e000ed00 .word 0xe000ed00
801e0: 000827d9 .word 0x000827d9
801e4: 00080555 .word 0x00080555
000801e8 <Dummy_Handler>:
/**
* \brief Default interrupt handler for unused IRQs.
*/
void Dummy_Handler(void)
{
801e8: b480 push {r7}
801ea: af00 add r7, sp, #0
while (1) {
801ec: e7fe b.n 801ec <Dummy_Handler+0x4>
...
000801f0 <pvPortMalloc>:
static size_t xNextFreeByte = ( size_t ) 0;
/*-----------------------------------------------------------*/
void *pvPortMalloc( size_t xWantedSize )
{
801f0: b580 push {r7, lr}
801f2: b084 sub sp, #16
801f4: af00 add r7, sp, #0
801f6: 6078 str r0, [r7, #4]
void *pvReturn = NULL;
801f8: 2300 movs r3, #0
801fa: 60fb str r3, [r7, #12]
static uint8_t *pucAlignedHeap = NULL;
/* Ensure that blocks are always aligned to the required number of bytes. */
#if( portBYTE_ALIGNMENT != 1 )
{
if( xWantedSize & portBYTE_ALIGNMENT_MASK )
801fc: 687b ldr r3, [r7, #4]
801fe: f003 0307 and.w r3, r3, #7
80202: 2b00 cmp r3, #0
80204: d004 beq.n 80210 <pvPortMalloc+0x20>
{
/* Byte alignment required. */
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
80206: 687b ldr r3, [r7, #4]
80208: f023 0307 bic.w r3, r3, #7
8020c: 3308 adds r3, #8
8020e: 607b str r3, [r7, #4]
}
}
#endif
vTaskSuspendAll();
80210: 4b19 ldr r3, [pc, #100] ; (80278 <pvPortMalloc+0x88>)
80212: 4798 blx r3
{
if( pucAlignedHeap == NULL )
80214: 4b19 ldr r3, [pc, #100] ; (8027c <pvPortMalloc+0x8c>)
80216: 681b ldr r3, [r3, #0]
80218: 2b00 cmp r3, #0
8021a: d105 bne.n 80228 <pvPortMalloc+0x38>
{
/* Ensure the heap starts on a correctly aligned boundary. */
pucAlignedHeap = ( uint8_t * ) ( ( ( portPOINTER_SIZE_TYPE ) &ucHeap[ portBYTE_ALIGNMENT ] ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) );
8021c: 4b18 ldr r3, [pc, #96] ; (80280 <pvPortMalloc+0x90>)
8021e: f023 0307 bic.w r3, r3, #7
80222: 461a mov r2, r3
80224: 4b15 ldr r3, [pc, #84] ; (8027c <pvPortMalloc+0x8c>)
80226: 601a str r2, [r3, #0]
}
/* Check there is enough room left for the allocation. */
if( ( ( xNextFreeByte + xWantedSize ) < configADJUSTED_HEAP_SIZE ) &&
80228: 4b16 ldr r3, [pc, #88] ; (80284 <pvPortMalloc+0x94>)
8022a: 681a ldr r2, [r3, #0]
8022c: 687b ldr r3, [r7, #4]
8022e: 4413 add r3, r2
80230: f649 72f7 movw r2, #40951 ; 0x9ff7
80234: 4293 cmp r3, r2
80236: d813 bhi.n 80260 <pvPortMalloc+0x70>
( ( xNextFreeByte + xWantedSize ) > xNextFreeByte ) )/* Check for overflow. */
80238: 4b12 ldr r3, [pc, #72] ; (80284 <pvPortMalloc+0x94>)
8023a: 681a ldr r2, [r3, #0]
8023c: 687b ldr r3, [r7, #4]
8023e: 441a add r2, r3
80240: 4b10 ldr r3, [pc, #64] ; (80284 <pvPortMalloc+0x94>)
80242: 681b ldr r3, [r3, #0]
if( ( ( xNextFreeByte + xWantedSize ) < configADJUSTED_HEAP_SIZE ) &&
80244: 429a cmp r2, r3
80246: d90b bls.n 80260 <pvPortMalloc+0x70>
{
/* Return the next free byte then increment the index past this
block. */
pvReturn = pucAlignedHeap + xNextFreeByte;
80248: 4b0c ldr r3, [pc, #48] ; (8027c <pvPortMalloc+0x8c>)
8024a: 681a ldr r2, [r3, #0]
8024c: 4b0d ldr r3, [pc, #52] ; (80284 <pvPortMalloc+0x94>)
8024e: 681b ldr r3, [r3, #0]
80250: 4413 add r3, r2
80252: 60fb str r3, [r7, #12]
xNextFreeByte += xWantedSize;
80254: 4b0b ldr r3, [pc, #44] ; (80284 <pvPortMalloc+0x94>)
80256: 681a ldr r2, [r3, #0]
80258: 687b ldr r3, [r7, #4]
8025a: 4413 add r3, r2
8025c: 4a09 ldr r2, [pc, #36] ; (80284 <pvPortMalloc+0x94>)
8025e: 6013 str r3, [r2, #0]
}
traceMALLOC( pvReturn, xWantedSize );
}
( void ) xTaskResumeAll();
80260: 4b09 ldr r3, [pc, #36] ; (80288 <pvPortMalloc+0x98>)
80262: 4798 blx r3
#if( configUSE_MALLOC_FAILED_HOOK == 1 )
{
if( pvReturn == NULL )
80264: 68fb ldr r3, [r7, #12]
80266: 2b00 cmp r3, #0
80268: d101 bne.n 8026e <pvPortMalloc+0x7e>
{
extern void vApplicationMallocFailedHook( void );
vApplicationMallocFailedHook();
8026a: 4b08 ldr r3, [pc, #32] ; (8028c <pvPortMalloc+0x9c>)
8026c: 4798 blx r3
}
}
#endif
return pvReturn;
8026e: 68fb ldr r3, [r7, #12]
}
80270: 4618 mov r0, r3
80272: 3710 adds r7, #16
80274: 46bd mov sp, r7
80276: bd80 pop {r7, pc}
80278: 00081705 .word 0x00081705
8027c: 2000a454 .word 0x2000a454
80280: 20000458 .word 0x20000458
80284: 2000a450 .word 0x2000a450
80288: 00081721 .word 0x00081721
8028c: 00080489 .word 0x00080489
00080290 <vPortFree>:
/*-----------------------------------------------------------*/
void vPortFree( void *pv )
{
80290: b480 push {r7}
80292: b085 sub sp, #20
80294: af00 add r7, sp, #0
80296: 6078 str r0, [r7, #4]
heap_4.c for alternative implementations, and the memory management pages of
http://www.FreeRTOS.org for more information. */
( void ) pv;
/* Force an assert as it is invalid to call this function. */
configASSERT( pv == NULL );
80298: 687b ldr r3, [r7, #4]
8029a: 2b00 cmp r3, #0
8029c: d009 beq.n 802b2 <vPortFree+0x22>
portFORCE_INLINE static void vPortRaiseBASEPRI( void )
{
uint32_t ulNewBASEPRI;
__asm volatile
8029e: f04f 03a0 mov.w r3, #160 ; 0xa0
802a2: f383 8811 msr BASEPRI, r3
802a6: f3bf 8f6f isb sy
802aa: f3bf 8f4f dsb sy
802ae: 60fb str r3, [r7, #12]
802b0: e7fe b.n 802b0 <vPortFree+0x20>
}
802b2: bf00 nop
802b4: 3714 adds r7, #20
802b6: 46bd mov sp, r7
802b8: bc80 pop {r7}
802ba: 4770 bx lr
000802bc <xPortGetFreeHeapSize>:
xNextFreeByte = ( size_t ) 0;
}
/*-----------------------------------------------------------*/
size_t xPortGetFreeHeapSize( void )
{
802bc: b480 push {r7}
802be: af00 add r7, sp, #0
return ( configADJUSTED_HEAP_SIZE - xNextFreeByte );
802c0: 4b04 ldr r3, [pc, #16] ; (802d4 <xPortGetFreeHeapSize+0x18>)
802c2: 681b ldr r3, [r3, #0]
802c4: f5c3 431f rsb r3, r3, #40704 ; 0x9f00
802c8: 33f8 adds r3, #248 ; 0xf8
}
802ca: 4618 mov r0, r3
802cc: 46bd mov sp, r7
802ce: bc80 pop {r7}
802d0: 4770 bx lr
802d2: bf00 nop
802d4: 2000a450 .word 0x2000a450
000802d8 <vListInitialise>:
/*-----------------------------------------------------------
* PUBLIC LIST API documented in list.h
*----------------------------------------------------------*/
void vListInitialise( List_t * const pxList )
{
802d8: b480 push {r7}
802da: b083 sub sp, #12
802dc: af00 add r7, sp, #0
802de: 6078 str r0, [r7, #4]
/* The list structure contains a list item which is used to mark the
end of the list. To initialise the list the list end is inserted
as the only list entry. */
pxList->pxIndex = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
802e0: 687b ldr r3, [r7, #4]
802e2: f103 0208 add.w r2, r3, #8
802e6: 687b ldr r3, [r7, #4]
802e8: 605a str r2, [r3, #4]
/* The list end value is the highest possible value in the list to
ensure it remains at the end of the list. */
pxList->xListEnd.xItemValue = portMAX_DELAY;
802ea: 687b ldr r3, [r7, #4]
802ec: f04f 32ff mov.w r2, #4294967295
802f0: 609a str r2, [r3, #8]
/* The list end next and previous pointers point to itself so we know
when the list is empty. */
pxList->xListEnd.pxNext = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
802f2: 687b ldr r3, [r7, #4]
802f4: f103 0208 add.w r2, r3, #8
802f8: 687b ldr r3, [r7, #4]
802fa: 60da str r2, [r3, #12]
pxList->xListEnd.pxPrevious = ( ListItem_t * ) &( pxList->xListEnd );/*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
802fc: 687b ldr r3, [r7, #4]
802fe: f103 0208 add.w r2, r3, #8
80302: 687b ldr r3, [r7, #4]
80304: 611a str r2, [r3, #16]
pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
80306: 687b ldr r3, [r7, #4]
80308: 2200 movs r2, #0
8030a: 601a str r2, [r3, #0]
/* Write known values into the list if
configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
}
8030c: bf00 nop
8030e: 370c adds r7, #12
80310: 46bd mov sp, r7
80312: bc80 pop {r7}
80314: 4770 bx lr
00080316 <vListInitialiseItem>:
/*-----------------------------------------------------------*/
void vListInitialiseItem( ListItem_t * const pxItem )
{
80316: b480 push {r7}
80318: b083 sub sp, #12
8031a: af00 add r7, sp, #0
8031c: 6078 str r0, [r7, #4]
/* Make sure the list item is not recorded as being on a list. */
pxItem->pxContainer = NULL;
8031e: 687b ldr r3, [r7, #4]
80320: 2200 movs r2, #0
80322: 611a str r2, [r3, #16]
/* Write known values into the list item if
configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
}
80324: bf00 nop
80326: 370c adds r7, #12
80328: 46bd mov sp, r7
8032a: bc80 pop {r7}
8032c: 4770 bx lr
0008032e <vListInsertEnd>:
/*-----------------------------------------------------------*/
void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
{
8032e: b480 push {r7}
80330: b085 sub sp, #20
80332: af00 add r7, sp, #0
80334: 6078 str r0, [r7, #4]
80336: 6039 str r1, [r7, #0]
ListItem_t * const pxIndex = pxList->pxIndex;
80338: 687b ldr r3, [r7, #4]
8033a: 685b ldr r3, [r3, #4]
8033c: 60fb str r3, [r7, #12]
listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
/* Insert a new list item into pxList, but rather than sort the list,
makes the new list item the last item to be removed by a call to
listGET_OWNER_OF_NEXT_ENTRY(). */
pxNewListItem->pxNext = pxIndex;
8033e: 683b ldr r3, [r7, #0]
80340: 68fa ldr r2, [r7, #12]
80342: 605a str r2, [r3, #4]
pxNewListItem->pxPrevious = pxIndex->pxPrevious;
80344: 68fb ldr r3, [r7, #12]
80346: 689a ldr r2, [r3, #8]
80348: 683b ldr r3, [r7, #0]
8034a: 609a str r2, [r3, #8]
/* Only used during decision coverage testing. */
mtCOVERAGE_TEST_DELAY();
pxIndex->pxPrevious->pxNext = pxNewListItem;
8034c: 68fb ldr r3, [r7, #12]
8034e: 689b ldr r3, [r3, #8]
80350: 683a ldr r2, [r7, #0]
80352: 605a str r2, [r3, #4]
pxIndex->pxPrevious = pxNewListItem;
80354: 68fb ldr r3, [r7, #12]
80356: 683a ldr r2, [r7, #0]
80358: 609a str r2, [r3, #8]
/* Remember which list the item is in. */
pxNewListItem->pxContainer = pxList;
8035a: 683b ldr r3, [r7, #0]
8035c: 687a ldr r2, [r7, #4]
8035e: 611a str r2, [r3, #16]
( pxList->uxNumberOfItems )++;
80360: 687b ldr r3, [r7, #4]
80362: 681b ldr r3, [r3, #0]
80364: 1c5a adds r2, r3, #1
80366: 687b ldr r3, [r7, #4]
80368: 601a str r2, [r3, #0]
}
8036a: bf00 nop
8036c: 3714 adds r7, #20
8036e: 46bd mov sp, r7
80370: bc80 pop {r7}
80372: 4770 bx lr
00080374 <vListInsert>:
/*-----------------------------------------------------------*/
void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
{
80374: b480 push {r7}
80376: b085 sub sp, #20
80378: af00 add r7, sp, #0
8037a: 6078 str r0, [r7, #4]
8037c: 6039 str r1, [r7, #0]
ListItem_t *pxIterator;
const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
8037e: 683b ldr r3, [r7, #0]
80380: 681b ldr r3, [r3, #0]
80382: 60bb str r3, [r7, #8]
new list item should be placed after it. This ensures that TCBs which are
stored in ready lists (all of which have the same xItemValue value) get a
share of the CPU. However, if the xItemValue is the same as the back marker
the iteration loop below will not end. Therefore the value is checked
first, and the algorithm slightly modified if necessary. */
if( xValueOfInsertion == portMAX_DELAY )
80384: 68bb ldr r3, [r7, #8]
80386: f1b3 3fff cmp.w r3, #4294967295
8038a: d103 bne.n 80394 <vListInsert+0x20>
{
pxIterator = pxList->xListEnd.pxPrevious;
8038c: 687b ldr r3, [r7, #4]
8038e: 691b ldr r3, [r3, #16]
80390: 60fb str r3, [r7, #12]
80392: e00c b.n 803ae <vListInsert+0x3a>
4) Using a queue or semaphore before it has been initialised or
before the scheduler has been started (are interrupts firing
before vTaskStartScheduler() has been called?).
**********************************************************************/
for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. *//*lint !e440 The iterator moves to a different value, not xValueOfInsertion. */
80394: 687b ldr r3, [r7, #4]
80396: 3308 adds r3, #8
80398: 60fb str r3, [r7, #12]
8039a: e002 b.n 803a2 <vListInsert+0x2e>
8039c: 68fb ldr r3, [r7, #12]
8039e: 685b ldr r3, [r3, #4]
803a0: 60fb str r3, [r7, #12]
803a2: 68fb ldr r3, [r7, #12]
803a4: 685b ldr r3, [r3, #4]
803a6: 681a ldr r2, [r3, #0]
803a8: 68bb ldr r3, [r7, #8]
803aa: 429a cmp r2, r3
803ac: d9f6 bls.n 8039c <vListInsert+0x28>
/* There is nothing to do here, just iterating to the wanted
insertion position. */
}
}
pxNewListItem->pxNext = pxIterator->pxNext;
803ae: 68fb ldr r3, [r7, #12]
803b0: 685a ldr r2, [r3, #4]
803b2: 683b ldr r3, [r7, #0]
803b4: 605a str r2, [r3, #4]
pxNewListItem->pxNext->pxPrevious = pxNewListItem;
803b6: 683b ldr r3, [r7, #0]
803b8: 685b ldr r3, [r3, #4]
803ba: 683a ldr r2, [r7, #0]
803bc: 609a str r2, [r3, #8]
pxNewListItem->pxPrevious = pxIterator;
803be: 683b ldr r3, [r7, #0]
803c0: 68fa ldr r2, [r7, #12]
803c2: 609a str r2, [r3, #8]
pxIterator->pxNext = pxNewListItem;
803c4: 68fb ldr r3, [r7, #12]
803c6: 683a ldr r2, [r7, #0]
803c8: 605a str r2, [r3, #4]
/* Remember which list the item is in. This allows fast removal of the
item later. */
pxNewListItem->pxContainer = pxList;
803ca: 683b ldr r3, [r7, #0]
803cc: 687a ldr r2, [r7, #4]
803ce: 611a str r2, [r3, #16]
( pxList->uxNumberOfItems )++;
803d0: 687b ldr r3, [r7, #4]
803d2: 681b ldr r3, [r3, #0]
803d4: 1c5a adds r2, r3, #1
803d6: 687b ldr r3, [r7, #4]
803d8: 601a str r2, [r3, #0]
}
803da: bf00 nop
803dc: 3714 adds r7, #20
803de: 46bd mov sp, r7
803e0: bc80 pop {r7}
803e2: 4770 bx lr
000803e4 <uxListRemove>:
/*-----------------------------------------------------------*/
UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
{
803e4: b480 push {r7}
803e6: b085 sub sp, #20
803e8: af00 add r7, sp, #0
803ea: 6078 str r0, [r7, #4]
/* The list item knows which list it is in. Obtain the list from the list
item. */
List_t * const pxList = pxItemToRemove->pxContainer;
803ec: 687b ldr r3, [r7, #4]
803ee: 691b ldr r3, [r3, #16]
803f0: 60fb str r3, [r7, #12]
pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
803f2: 687b ldr r3, [r7, #4]
803f4: 685b ldr r3, [r3, #4]
803f6: 687a ldr r2, [r7, #4]
803f8: 6892 ldr r2, [r2, #8]
803fa: 609a str r2, [r3, #8]
pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
803fc: 687b ldr r3, [r7, #4]
803fe: 689b ldr r3, [r3, #8]
80400: 687a ldr r2, [r7, #4]
80402: 6852 ldr r2, [r2, #4]
80404: 605a str r2, [r3, #4]
/* Only used during decision coverage testing. */
mtCOVERAGE_TEST_DELAY();
/* Make sure the index is left pointing to a valid item. */
if( pxList->pxIndex == pxItemToRemove )
80406: 68fb ldr r3, [r7, #12]
80408: 685a ldr r2, [r3, #4]
8040a: 687b ldr r3, [r7, #4]
8040c: 429a cmp r2, r3
8040e: d103 bne.n 80418 <uxListRemove+0x34>
{
pxList->pxIndex = pxItemToRemove->pxPrevious;
80410: 687b ldr r3, [r7, #4]
80412: 689a ldr r2, [r3, #8]
80414: 68fb ldr r3, [r7, #12]
80416: 605a str r2, [r3, #4]
else
{
mtCOVERAGE_TEST_MARKER();
}
pxItemToRemove->pxContainer = NULL;
80418: 687b ldr r3, [r7, #4]
8041a: 2200 movs r2, #0
8041c: 611a str r2, [r3, #16]
( pxList->uxNumberOfItems )--;
8041e: 68fb ldr r3, [r7, #12]
80420: 681b ldr r3, [r3, #0]
80422: 1e5a subs r2, r3, #1
80424: 68fb ldr r3, [r7, #12]
80426: 601a str r2, [r3, #0]
return pxList->uxNumberOfItems;
80428: 68fb ldr r3, [r7, #12]
8042a: 681b ldr r3, [r3, #0]
}
8042c: 4618 mov r0, r3
8042e: 3714 adds r7, #20
80430: 46bd mov sp, r7
80432: bc80 pop {r7}
80434: 4770 bx lr
...
00080438 <vApplicationIdleHook>:
{ 100, eSender1 }, /* Used by Sender1. */
{ 200, eSender2 } /* Used by Sender2. */
};
void vApplicationIdleHook( void )
{
80438: b480 push {r7}
8043a: af00 add r7, sp, #0
ci++;
8043c: 4b04 ldr r3, [pc, #16] ; (80450 <vApplicationIdleHook+0x18>)
8043e: 681b ldr r3, [r3, #0]
80440: 3301 adds r3, #1
80442: 4a03 ldr r2, [pc, #12] ; (80450 <vApplicationIdleHook+0x18>)
80444: 6013 str r3, [r2, #0]
}
80446: bf00 nop
80448: 46bd mov sp, r7
8044a: bc80 pop {r7}
8044c: 4770 bx lr
8044e: bf00 nop
80450: 2000a458 .word 0x2000a458
00080454 <vApplicationTickHook>:
void vApplicationTickHook( void )
{
80454: b580 push {r7, lr}
80456: b082 sub sp, #8
80458: af00 add r7, sp, #0
long fh= xPortGetFreeHeapSize();
8045a: 4b06 ldr r3, [pc, #24] ; (80474 <vApplicationTickHook+0x20>)
8045c: 4798 blx r3
8045e: 4603 mov r3, r0
80460: 607b str r3, [r7, #4]
//uxTaskGetStackHighWaterMark(&xHandle1);
//uxTaskGetStackHighWaterMark(&xHandle2);
ct++;
80462: 4b05 ldr r3, [pc, #20] ; (80478 <vApplicationTickHook+0x24>)
80464: 681b ldr r3, [r3, #0]
80466: 3301 adds r3, #1
80468: 4a03 ldr r2, [pc, #12] ; (80478 <vApplicationTickHook+0x24>)
8046a: 6013 str r3, [r2, #0]
}
8046c: bf00 nop
8046e: 3708 adds r7, #8
80470: 46bd mov sp, r7
80472: bd80 pop {r7, pc}
80474: 000802bd .word 0x000802bd
80478: 2000a460 .word 0x2000a460
0008047c <vApplicationStackOverflowHook>:
void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName )
{
8047c: b480 push {r7}
8047e: b083 sub sp, #12
80480: af00 add r7, sp, #0
80482: 6078 str r0, [r7, #4]
80484: 6039 str r1, [r7, #0]
for(;;);
80486: e7fe b.n 80486 <vApplicationStackOverflowHook+0xa>
00080488 <vApplicationMallocFailedHook>:
}
void vApplicationMallocFailedHook( void )
{
80488: b480 push {r7}
8048a: af00 add r7, sp, #0
for(;;);
8048c: e7fe b.n 8048c <vApplicationMallocFailedHook+0x4>
...
00080490 <vSenderTask>:
//xTimerStop( pxTimer, 0 );
//}
//}
static void vSenderTask( void *pvParameters )
{
80490: b590 push {r4, r7, lr}
80492: b085 sub sp, #20
80494: af00 add r7, sp, #0
80496: 6078 str r0, [r7, #4]
BaseType_t xStatus;
const TickType_t xTicksToWait = pdMS_TO_TICKS( 100 );
80498: 2364 movs r3, #100 ; 0x64
8049a: 60fb str r3, [r7, #12]
for( ;; )
{
xStatus = xQueueSendToBack( xQueue, pvParameters, xTicksToWait );
8049c: 4b0c ldr r3, [pc, #48] ; (804d0 <vSenderTask+0x40>)
8049e: 6818 ldr r0, [r3, #0]
804a0: 2300 movs r3, #0
804a2: 68fa ldr r2, [r7, #12]
804a4: 6879 ldr r1, [r7, #4]
804a6: 4c0b ldr r4, [pc, #44] ; (804d4 <vSenderTask+0x44>)
804a8: 47a0 blx r4
804aa: 60b8 str r0, [r7, #8]
if( xStatus != pdPASS )
804ac: 68bb ldr r3, [r7, #8]
804ae: 2b01 cmp r3, #1
804b0: d004 beq.n 804bc <vSenderTask+0x2c>
{
placebo++;
804b2: 4b09 ldr r3, [pc, #36] ; (804d8 <vSenderTask+0x48>)
804b4: 681b ldr r3, [r3, #0]
804b6: 3301 adds r3, #1
804b8: 4a07 ldr r2, [pc, #28] ; (804d8 <vSenderTask+0x48>)
804ba: 6013 str r3, [r2, #0]
//vPrintString( "Could not send to the queue.\r\n" );
}
taskYIELD();
804bc: 4b07 ldr r3, [pc, #28] ; (804dc <vSenderTask+0x4c>)
804be: f04f 5280 mov.w r2, #268435456 ; 0x10000000
804c2: 601a str r2, [r3, #0]
804c4: f3bf 8f4f dsb sy
804c8: f3bf 8f6f isb sy
xStatus = xQueueSendToBack( xQueue, pvParameters, xTicksToWait );
804cc: e7e6 b.n 8049c <vSenderTask+0xc>
804ce: bf00 nop
804d0: 2000a5c4 .word 0x2000a5c4
804d4: 00080b71 .word 0x00080b71
804d8: 2000a464 .word 0x2000a464
804dc: e000ed04 .word 0xe000ed04
000804e0 <vReceiverTask>:
}
}
static void vReceiverTask( void *pvParameters )
{
804e0: b580 push {r7, lr}
804e2: b084 sub sp, #16
804e4: af00 add r7, sp, #0
804e6: 6078 str r0, [r7, #4]
Data_t xReceivedStructure;
BaseType_t xStatus;
for( ;; )
{
if( uxQueueMessagesWaiting( xQueue ) != 3 )
804e8: 4b16 ldr r3, [pc, #88] ; (80544 <vReceiverTask+0x64>)
804ea: 681b ldr r3, [r3, #0]
804ec: 4618 mov r0, r3
804ee: 4b16 ldr r3, [pc, #88] ; (80548 <vReceiverTask+0x68>)
804f0: 4798 blx r3
804f2: 4603 mov r3, r0
804f4: 2b03 cmp r3, #3
804f6: d004 beq.n 80502 <vReceiverTask+0x22>
{
placebo++;
804f8: 4b14 ldr r3, [pc, #80] ; (8054c <vReceiverTask+0x6c>)
804fa: 681b ldr r3, [r3, #0]
804fc: 3301 adds r3, #1
804fe: 4a13 ldr r2, [pc, #76] ; (8054c <vReceiverTask+0x6c>)
80500: 6013 str r3, [r2, #0]
//vPrintString( "Queue should have been full!\r\n" );
}
xStatus = xQueueReceive( xQueue, &xReceivedStructure, 0 );
80502: 4b10 ldr r3, [pc, #64] ; (80544 <vReceiverTask+0x64>)
80504: 681b ldr r3, [r3, #0]
80506: f107 0108 add.w r1, r7, #8
8050a: 2200 movs r2, #0
8050c: 4618 mov r0, r3
8050e: 4b10 ldr r3, [pc, #64] ; (80550 <vReceiverTask+0x70>)
80510: 4798 blx r3
80512: 60f8 str r0, [r7, #12]
if( xStatus == pdPASS )
80514: 68fb ldr r3, [r7, #12]
80516: 2b01 cmp r3, #1
80518: d10e bne.n 80538 <vReceiverTask+0x58>
{
if( xReceivedStructure.eDataSource == eSender1 )
8051a: 7a7b ldrb r3, [r7, #9]
8051c: 2b00 cmp r3, #0
8051e: d105 bne.n 8052c <vReceiverTask+0x4c>
{
placebo++;
80520: 4b0a ldr r3, [pc, #40] ; (8054c <vReceiverTask+0x6c>)
80522: 681b ldr r3, [r3, #0]
80524: 3301 adds r3, #1
80526: 4a09 ldr r2, [pc, #36] ; (8054c <vReceiverTask+0x6c>)
80528: 6013 str r3, [r2, #0]
8052a: e7dd b.n 804e8 <vReceiverTask+0x8>
//vPrintStringAndNumber( "From Sender 1 = ", xReceivedStructure.ucValue );
}
else
{
placebo++;
8052c: 4b07 ldr r3, [pc, #28] ; (8054c <vReceiverTask+0x6c>)
8052e: 681b ldr r3, [r3, #0]
80530: 3301 adds r3, #1
80532: 4a06 ldr r2, [pc, #24] ; (8054c <vReceiverTask+0x6c>)
80534: 6013 str r3, [r2, #0]
80536: e7d7 b.n 804e8 <vReceiverTask+0x8>
//vPrintStringAndNumber( "From Sender 2 = ", xReceivedStructure.ucValue );
}
}
else
{
placebo++;
80538: 4b04 ldr r3, [pc, #16] ; (8054c <vReceiverTask+0x6c>)
8053a: 681b ldr r3, [r3, #0]
8053c: 3301 adds r3, #1
8053e: 4a03 ldr r2, [pc, #12] ; (8054c <vReceiverTask+0x6c>)
80540: 6013 str r3, [r2, #0]
if( uxQueueMessagesWaiting( xQueue ) != 3 )
80542: e7d1 b.n 804e8 <vReceiverTask+0x8>
80544: 2000a5c4 .word 0x2000a5c4
80548: 000810b9 .word 0x000810b9
8054c: 2000a464 .word 0x2000a464
80550: 00080ed1 .word 0x00080ed1
00080554 <main>:
}
}
}
int main(void)
{
80554: b590 push {r4, r7, lr}
80556: b085 sub sp, #20
80558: af02 add r7, sp, #8
//// The timer could not be set into the Active state.
//}
//}
//}
xQueue = xQueueCreate( 3, sizeof( Data_t ) );
8055a: 2200 movs r2, #0
8055c: 2102 movs r1, #2
8055e: 2003 movs r0, #3
80560: 4b1a ldr r3, [pc, #104] ; (805cc <main+0x78>)
80562: 4798 blx r3
80564: 4602 mov r2, r0
80566: 4b1a ldr r3, [pc, #104] ; (805d0 <main+0x7c>)
80568: 601a str r2, [r3, #0]
if( xQueue != NULL )
8056a: 4b19 ldr r3, [pc, #100] ; (805d0 <main+0x7c>)
8056c: 681b ldr r3, [r3, #0]
8056e: 2b00 cmp r3, #0
80570: d020 beq.n 805b4 <main+0x60>
{
xTaskCreate( vSenderTask, "Sender1", 1000, &( xStructsToSend[ 0 ] ), 2, NULL );
80572: 2300 movs r3, #0
80574: 9301 str r3, [sp, #4]
80576: 2302 movs r3, #2
80578: 9300 str r3, [sp, #0]
8057a: 4b16 ldr r3, [pc, #88] ; (805d4 <main+0x80>)
8057c: f44f 727a mov.w r2, #1000 ; 0x3e8
80580: 4915 ldr r1, [pc, #84] ; (805d8 <main+0x84>)
80582: 4816 ldr r0, [pc, #88] ; (805dc <main+0x88>)
80584: 4c16 ldr r4, [pc, #88] ; (805e0 <main+0x8c>)
80586: 47a0 blx r4
xTaskCreate( vSenderTask, "Sender2", 1000, &( xStructsToSend[ 1 ] ), 2, NULL );
80588: 2300 movs r3, #0
8058a: 9301 str r3, [sp, #4]
8058c: 2302 movs r3, #2
8058e: 9300 str r3, [sp, #0]
80590: 4b14 ldr r3, [pc, #80] ; (805e4 <main+0x90>)
80592: f44f 727a mov.w r2, #1000 ; 0x3e8
80596: 4914 ldr r1, [pc, #80] ; (805e8 <main+0x94>)
80598: 4810 ldr r0, [pc, #64] ; (805dc <main+0x88>)
8059a: 4c11 ldr r4, [pc, #68] ; (805e0 <main+0x8c>)
8059c: 47a0 blx r4
xTaskCreate( vReceiverTask, "Receiver", 1000, NULL, 1, NULL );
8059e: 2300 movs r3, #0
805a0: 9301 str r3, [sp, #4]
805a2: 2301 movs r3, #1
805a4: 9300 str r3, [sp, #0]
805a6: 2300 movs r3, #0
805a8: f44f 727a mov.w r2, #1000 ; 0x3e8
805ac: 490f ldr r1, [pc, #60] ; (805ec <main+0x98>)
805ae: 4810 ldr r0, [pc, #64] ; (805f0 <main+0x9c>)
805b0: 4c0b ldr r4, [pc, #44] ; (805e0 <main+0x8c>)
805b2: 47a0 blx r4
{
vTaskDelete( xHandle1 );
vTaskDelete( xHandle2 );
for(;;);
}*/
size_t h = xPortGetFreeHeapSize();
805b4: 4b0f ldr r3, [pc, #60] ; (805f4 <main+0xa0>)
805b6: 4798 blx r3
805b8: 6078 str r0, [r7, #4]
vTaskStartScheduler();
805ba: 4b0f ldr r3, [pc, #60] ; (805f8 <main+0xa4>)
805bc: 4798 blx r3
while (1)
{
cp++;
805be: 4b0f ldr r3, [pc, #60] ; (805fc <main+0xa8>)
805c0: 681b ldr r3, [r3, #0]
805c2: 3301 adds r3, #1
805c4: 4a0d ldr r2, [pc, #52] ; (805fc <main+0xa8>)
805c6: 6013 str r3, [r2, #0]
805c8: e7f9 b.n 805be <main+0x6a>
805ca: bf00 nop
805cc: 00080ab9 .word 0x00080ab9
805d0: 2000a5c4 .word 0x2000a5c4
805d4: 00082ad0 .word 0x00082ad0
805d8: 00082ad4 .word 0x00082ad4
805dc: 00080491 .word 0x00080491
805e0: 000813c1 .word 0x000813c1
805e4: 00082ad2 .word 0x00082ad2
805e8: 00082adc .word 0x00082adc
805ec: 00082ae4 .word 0x00082ae4
805f0: 000804e1 .word 0x000804e1
805f4: 000802bd .word 0x000802bd
805f8: 00081661 .word 0x00081661
805fc: 2000a45c .word 0x2000a45c
00080600 <pxPortInitialiseStack>:
/*
* See header file for description.
*/
StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
{
80600: b480 push {r7}
80602: b085 sub sp, #20
80604: af00 add r7, sp, #0
80606: 60f8 str r0, [r7, #12]
80608: 60b9 str r1, [r7, #8]
8060a: 607a str r2, [r7, #4]
/* Simulate the stack frame as it would be created by a context switch
interrupt. */
pxTopOfStack--; /* Offset added to account for the way the MCU uses the stack on entry/exit of interrupts. */
8060c: 68fb ldr r3, [r7, #12]
8060e: 3b04 subs r3, #4
80610: 60fb str r3, [r7, #12]
*pxTopOfStack = portINITIAL_XPSR; /* xPSR */
80612: 68fb ldr r3, [r7, #12]
80614: f04f 7280 mov.w r2, #16777216 ; 0x1000000
80618: 601a str r2, [r3, #0]
pxTopOfStack--;
8061a: 68fb ldr r3, [r7, #12]
8061c: 3b04 subs r3, #4
8061e: 60fb str r3, [r7, #12]
*pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
80620: 68bb ldr r3, [r7, #8]
80622: f023 0201 bic.w r2, r3, #1
80626: 68fb ldr r3, [r7, #12]
80628: 601a str r2, [r3, #0]
pxTopOfStack--;
8062a: 68fb ldr r3, [r7, #12]
8062c: 3b04 subs r3, #4
8062e: 60fb str r3, [r7, #12]
*pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
80630: 4a08 ldr r2, [pc, #32] ; (80654 <pxPortInitialiseStack+0x54>)
80632: 68fb ldr r3, [r7, #12]
80634: 601a str r2, [r3, #0]
pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
80636: 68fb ldr r3, [r7, #12]
80638: 3b14 subs r3, #20
8063a: 60fb str r3, [r7, #12]
*pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
8063c: 687a ldr r2, [r7, #4]
8063e: 68fb ldr r3, [r7, #12]
80640: 601a str r2, [r3, #0]
pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
80642: 68fb ldr r3, [r7, #12]
80644: 3b20 subs r3, #32
80646: 60fb str r3, [r7, #12]
return pxTopOfStack;
80648: 68fb ldr r3, [r7, #12]
}
8064a: 4618 mov r0, r3
8064c: 3714 adds r7, #20
8064e: 46bd mov sp, r7
80650: bc80 pop {r7}
80652: 4770 bx lr
80654: 00080659 .word 0x00080659
00080658 <prvTaskExitError>:
/*-----------------------------------------------------------*/
static void prvTaskExitError( void )
{
80658: b480 push {r7}
8065a: b085 sub sp, #20
8065c: af00 add r7, sp, #0
volatile uint32_t ulDummy = 0UL;
8065e: 2300 movs r3, #0
80660: 607b str r3, [r7, #4]
its caller as there is nothing to return to. If a task wants to exit it
should instead call vTaskDelete( NULL ).
Artificially force an assert() to be triggered if configASSERT() is
defined, then stop here so application writers can catch the error. */
configASSERT( uxCriticalNesting == ~0UL );
80662: 4b10 ldr r3, [pc, #64] ; (806a4 <prvTaskExitError+0x4c>)
80664: 681b ldr r3, [r3, #0]
80666: f1b3 3fff cmp.w r3, #4294967295
8066a: d009 beq.n 80680 <prvTaskExitError+0x28>
8066c: f04f 03a0 mov.w r3, #160 ; 0xa0
80670: f383 8811 msr BASEPRI, r3
80674: f3bf 8f6f isb sy
80678: f3bf 8f4f dsb sy
8067c: 60fb str r3, [r7, #12]
8067e: e7fe b.n 8067e <prvTaskExitError+0x26>
80680: f04f 03a0 mov.w r3, #160 ; 0xa0
80684: f383 8811 msr BASEPRI, r3
80688: f3bf 8f6f isb sy
8068c: f3bf 8f4f dsb sy
80690: 60bb str r3, [r7, #8]
portDISABLE_INTERRUPTS();
while( ulDummy == 0 )
80692: bf00 nop
80694: 687b ldr r3, [r7, #4]
80696: 2b00 cmp r3, #0
80698: d0fc beq.n 80694 <prvTaskExitError+0x3c>
about code appearing after this function is called - making ulDummy
volatile makes the compiler think the function could return and
therefore not output an 'unreachable code' warning for code that appears
after it. */
}
}
8069a: bf00 nop
8069c: 3714 adds r7, #20
8069e: 46bd mov sp, r7
806a0: bc80 pop {r7}
806a2: 4770 bx lr
806a4: 20000004 .word 0x20000004
...
000806b0 <SVC_Handler>:
/*-----------------------------------------------------------*/
void vPortSVCHandler( void )
{
__asm volatile (
806b0: 4b07 ldr r3, [pc, #28] ; (806d0 <pxCurrentTCBConst2>)
806b2: 6819 ldr r1, [r3, #0]
806b4: 6808 ldr r0, [r1, #0]
806b6: e8b0 0ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp}
806ba: f380 8809 msr PSP, r0
806be: f3bf 8f6f isb sy
806c2: f04f 0000 mov.w r0, #0
806c6: f380 8811 msr BASEPRI, r0
806ca: f04e 0e0d orr.w lr, lr, #13
806ce: 4770 bx lr
000806d0 <pxCurrentTCBConst2>:
806d0: 2000a484 .word 0x2000a484
" bx r14 \n"
" \n"
" .align 4 \n"
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
);
}
806d4: bf00 nop
806d6: bf00 nop
000806d8 <prvPortStartFirstTask>:
/*-----------------------------------------------------------*/
static void prvPortStartFirstTask( void )
{
__asm volatile(
806d8: 4806 ldr r0, [pc, #24] ; (806f4 <prvPortStartFirstTask+0x1c>)
806da: 6800 ldr r0, [r0, #0]
806dc: 6800 ldr r0, [r0, #0]
806de: f380 8808 msr MSP, r0
806e2: b662 cpsie i
806e4: b661 cpsie f
806e6: f3bf 8f4f dsb sy
806ea: f3bf 8f6f isb sy
806ee: df00 svc 0
806f0: bf00 nop
" dsb \n"
" isb \n"
" svc 0 \n" /* System call to start first task. */
" nop \n"
);
}
806f2: bf00 nop
806f4: e000ed08 .word 0xe000ed08
000806f8 <xPortStartScheduler>:
/*
* See header file for description.
*/
BaseType_t xPortStartScheduler( void )
{
806f8: b580 push {r7, lr}
806fa: b084 sub sp, #16
806fc: af00 add r7, sp, #0
configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
#if( configASSERT_DEFINED == 1 )
{
volatile uint32_t ulOriginalPriority;
volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
806fe: 4b31 ldr r3, [pc, #196] ; (807c4 <xPortStartScheduler+0xcc>)
80700: 60fb str r3, [r7, #12]
functions can be called. ISR safe functions are those that end in
"FromISR". FreeRTOS maintains separate thread and ISR API functions to
ensure interrupt entry is as fast and simple as possible.
Save the interrupt priority value that is about to be clobbered. */
ulOriginalPriority = *pucFirstUserPriorityRegister;
80702: 68fb ldr r3, [r7, #12]
80704: 781b ldrb r3, [r3, #0]
80706: b2db uxtb r3, r3
80708: 607b str r3, [r7, #4]
/* Determine the number of priority bits available. First write to all
possible bits. */
*pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
8070a: 68fb ldr r3, [r7, #12]
8070c: 22ff movs r2, #255 ; 0xff
8070e: 701a strb r2, [r3, #0]
/* Read the value back to see how many bits stuck. */
ucMaxPriorityValue = *pucFirstUserPriorityRegister;
80710: 68fb ldr r3, [r7, #12]
80712: 781b ldrb r3, [r3, #0]
80714: b2db uxtb r3, r3
80716: 70fb strb r3, [r7, #3]
/* Use the same mask on the maximum system call priority. */
ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
80718: 78fb ldrb r3, [r7, #3]
8071a: b2db uxtb r3, r3
8071c: f023 035f bic.w r3, r3, #95 ; 0x5f
80720: b2da uxtb r2, r3
80722: 4b29 ldr r3, [pc, #164] ; (807c8 <xPortStartScheduler+0xd0>)
80724: 701a strb r2, [r3, #0]
/* Calculate the maximum acceptable priority group value for the number
of bits read back. */
ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
80726: 4b29 ldr r3, [pc, #164] ; (807cc <xPortStartScheduler+0xd4>)
80728: 2207 movs r2, #7
8072a: 601a str r2, [r3, #0]
while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
8072c: e009 b.n 80742 <xPortStartScheduler+0x4a>
{
ulMaxPRIGROUPValue--;
8072e: 4b27 ldr r3, [pc, #156] ; (807cc <xPortStartScheduler+0xd4>)
80730: 681b ldr r3, [r3, #0]
80732: 3b01 subs r3, #1
80734: 4a25 ldr r2, [pc, #148] ; (807cc <xPortStartScheduler+0xd4>)
80736: 6013 str r3, [r2, #0]
ucMaxPriorityValue <<= ( uint8_t ) 0x01;
80738: 78fb ldrb r3, [r7, #3]
8073a: b2db uxtb r3, r3
8073c: 005b lsls r3, r3, #1
8073e: b2db uxtb r3, r3
80740: 70fb strb r3, [r7, #3]
while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
80742: 78fb ldrb r3, [r7, #3]
80744: b2db uxtb r3, r3
80746: f003 0380 and.w r3, r3, #128 ; 0x80
8074a: 2b80 cmp r3, #128 ; 0x80
8074c: d0ef beq.n 8072e <xPortStartScheduler+0x36>
#ifdef configPRIO_BITS
{
/* Check the FreeRTOS configuration that defines the number of
priority bits matches the number of priority bits actually queried
from the hardware. */
configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
8074e: 4b1f ldr r3, [pc, #124] ; (807cc <xPortStartScheduler+0xd4>)
80750: 681b ldr r3, [r3, #0]
80752: f1c3 0307 rsb r3, r3, #7
80756: 2b04 cmp r3, #4
80758: d009 beq.n 8076e <xPortStartScheduler+0x76>
8075a: f04f 03a0 mov.w r3, #160 ; 0xa0
8075e: f383 8811 msr BASEPRI, r3
80762: f3bf 8f6f isb sy
80766: f3bf 8f4f dsb sy
8076a: 60bb str r3, [r7, #8]
8076c: e7fe b.n 8076c <xPortStartScheduler+0x74>
}
#endif
/* Shift the priority group value back to its position within the AIRCR
register. */
ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
8076e: 4b17 ldr r3, [pc, #92] ; (807cc <xPortStartScheduler+0xd4>)
80770: 681b ldr r3, [r3, #0]
80772: 021b lsls r3, r3, #8
80774: 4a15 ldr r2, [pc, #84] ; (807cc <xPortStartScheduler+0xd4>)
80776: 6013 str r3, [r2, #0]
ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
80778: 4b14 ldr r3, [pc, #80] ; (807cc <xPortStartScheduler+0xd4>)
8077a: 681b ldr r3, [r3, #0]
8077c: f403 63e0 and.w r3, r3, #1792 ; 0x700
80780: 4a12 ldr r2, [pc, #72] ; (807cc <xPortStartScheduler+0xd4>)
80782: 6013 str r3, [r2, #0]
/* Restore the clobbered interrupt priority register to its original
value. */
*pucFirstUserPriorityRegister = ulOriginalPriority;
80784: 687b ldr r3, [r7, #4]
80786: b2da uxtb r2, r3
80788: 68fb ldr r3, [r7, #12]
8078a: 701a strb r2, [r3, #0]
}
#endif /* conifgASSERT_DEFINED */
/* Make PendSV and SysTick the lowest priority interrupts. */
portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
8078c: 4a10 ldr r2, [pc, #64] ; (807d0 <xPortStartScheduler+0xd8>)
8078e: 4b10 ldr r3, [pc, #64] ; (807d0 <xPortStartScheduler+0xd8>)
80790: 681b ldr r3, [r3, #0]
80792: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000
80796: 6013 str r3, [r2, #0]
portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
80798: 4a0d ldr r2, [pc, #52] ; (807d0 <xPortStartScheduler+0xd8>)
8079a: 4b0d ldr r3, [pc, #52] ; (807d0 <xPortStartScheduler+0xd8>)
8079c: 681b ldr r3, [r3, #0]
8079e: f043 4370 orr.w r3, r3, #4026531840 ; 0xf0000000
807a2: 6013 str r3, [r2, #0]
/* Start the timer that generates the tick ISR. Interrupts are disabled
here already. */
vPortSetupTimerInterrupt();
807a4: 4b0b ldr r3, [pc, #44] ; (807d4 <xPortStartScheduler+0xdc>)
807a6: 4798 blx r3
/* Initialise the critical nesting count ready for the first task. */
uxCriticalNesting = 0;
807a8: 4b0b ldr r3, [pc, #44] ; (807d8 <xPortStartScheduler+0xe0>)
807aa: 2200 movs r2, #0
807ac: 601a str r2, [r3, #0]
/* Start the first task. */
prvPortStartFirstTask();
807ae: 4b0b ldr r3, [pc, #44] ; (807dc <xPortStartScheduler+0xe4>)
807b0: 4798 blx r3
exit error function to prevent compiler warnings about a static function
not being called in the case that the application writer overrides this
functionality by defining configTASK_RETURN_ADDRESS. Call
vTaskSwitchContext() so link time optimisation does not remove the
symbol. */
vTaskSwitchContext();
807b2: 4b0b ldr r3, [pc, #44] ; (807e0 <xPortStartScheduler+0xe8>)
807b4: 4798 blx r3
prvTaskExitError();
807b6: 4b0b ldr r3, [pc, #44] ; (807e4 <xPortStartScheduler+0xec>)
807b8: 4798 blx r3
/* Should not get here! */
return 0;
807ba: 2300 movs r3, #0
}
807bc: 4618 mov r0, r3
807be: 3710 adds r7, #16
807c0: 46bd mov sp, r7
807c2: bd80 pop {r7, pc}
807c4: e000e400 .word 0xe000e400
807c8: 2000a47c .word 0x2000a47c
807cc: 2000a480 .word 0x2000a480
807d0: e000ed20 .word 0xe000ed20
807d4: 0008091d .word 0x0008091d
807d8: 20000004 .word 0x20000004
807dc: 000806d9 .word 0x000806d9
807e0: 00081a1d .word 0x00081a1d
807e4: 00080659 .word 0x00080659
000807e8 <vPortEnterCritical>:
configASSERT( uxCriticalNesting == 1000UL );
}
/*-----------------------------------------------------------*/
void vPortEnterCritical( void )
{
807e8: b480 push {r7}
807ea: b083 sub sp, #12
807ec: af00 add r7, sp, #0
807ee: f04f 03a0 mov.w r3, #160 ; 0xa0
807f2: f383 8811 msr BASEPRI, r3
807f6: f3bf 8f6f isb sy
807fa: f3bf 8f4f dsb sy
807fe: 607b str r3, [r7, #4]
portDISABLE_INTERRUPTS();
uxCriticalNesting++;
80800: 4b0e ldr r3, [pc, #56] ; (8083c <vPortEnterCritical+0x54>)
80802: 681b ldr r3, [r3, #0]
80804: 3301 adds r3, #1
80806: 4a0d ldr r2, [pc, #52] ; (8083c <vPortEnterCritical+0x54>)
80808: 6013 str r3, [r2, #0]
/* This is not the interrupt safe version of the enter critical function so
assert() if it is being called from an interrupt context. Only API
functions that end in "FromISR" can be used in an interrupt. Only assert if
the critical nesting count is 1 to protect against recursive calls if the
assert function also uses a critical section. */
if( uxCriticalNesting == 1 )
8080a: 4b0c ldr r3, [pc, #48] ; (8083c <vPortEnterCritical+0x54>)
8080c: 681b ldr r3, [r3, #0]
8080e: 2b01 cmp r3, #1
80810: d10e bne.n 80830 <vPortEnterCritical+0x48>
{
configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
80812: 4b0b ldr r3, [pc, #44] ; (80840 <vPortEnterCritical+0x58>)
80814: 681b ldr r3, [r3, #0]
80816: b2db uxtb r3, r3
80818: 2b00 cmp r3, #0
8081a: d009 beq.n 80830 <vPortEnterCritical+0x48>
8081c: f04f 03a0 mov.w r3, #160 ; 0xa0
80820: f383 8811 msr BASEPRI, r3
80824: f3bf 8f6f isb sy
80828: f3bf 8f4f dsb sy
8082c: 603b str r3, [r7, #0]
8082e: e7fe b.n 8082e <vPortEnterCritical+0x46>
}
}
80830: bf00 nop
80832: 370c adds r7, #12
80834: 46bd mov sp, r7
80836: bc80 pop {r7}
80838: 4770 bx lr
8083a: bf00 nop
8083c: 20000004 .word 0x20000004
80840: e000ed04 .word 0xe000ed04
00080844 <vPortExitCritical>:
/*-----------------------------------------------------------*/
void vPortExitCritical( void )
{
80844: b480 push {r7}
80846: b083 sub sp, #12
80848: af00 add r7, sp, #0
configASSERT( uxCriticalNesting );
8084a: 4b10 ldr r3, [pc, #64] ; (8088c <vPortExitCritical+0x48>)
8084c: 681b ldr r3, [r3, #0]
8084e: 2b00 cmp r3, #0
80850: d109 bne.n 80866 <vPortExitCritical+0x22>
80852: f04f 03a0 mov.w r3, #160 ; 0xa0
80856: f383 8811 msr BASEPRI, r3
8085a: f3bf 8f6f isb sy
8085e: f3bf 8f4f dsb sy
80862: 607b str r3, [r7, #4]
80864: e7fe b.n 80864 <vPortExitCritical+0x20>
uxCriticalNesting--;
80866: 4b09 ldr r3, [pc, #36] ; (8088c <vPortExitCritical+0x48>)
80868: 681b ldr r3, [r3, #0]
8086a: 3b01 subs r3, #1
8086c: 4a07 ldr r2, [pc, #28] ; (8088c <vPortExitCritical+0x48>)
8086e: 6013 str r3, [r2, #0]
if( uxCriticalNesting == 0 )
80870: 4b06 ldr r3, [pc, #24] ; (8088c <vPortExitCritical+0x48>)
80872: 681b ldr r3, [r3, #0]
80874: 2b00 cmp r3, #0
80876: d104 bne.n 80882 <vPortExitCritical+0x3e>
80878: 2300 movs r3, #0
8087a: 603b str r3, [r7, #0]
}
/*-----------------------------------------------------------*/
portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
{
__asm volatile
8087c: 683b ldr r3, [r7, #0]
8087e: f383 8811 msr BASEPRI, r3
{
portENABLE_INTERRUPTS();
}
}
80882: bf00 nop
80884: 370c adds r7, #12
80886: 46bd mov sp, r7
80888: bc80 pop {r7}
8088a: 4770 bx lr
8088c: 20000004 .word 0x20000004
00080890 <PendSV_Handler>:
void xPortPendSVHandler( void )
{
/* This is a naked function. */
__asm volatile
80890: f3ef 8009 mrs r0, PSP
80894: f3bf 8f6f isb sy
80898: 4b0d ldr r3, [pc, #52] ; (808d0 <pxCurrentTCBConst>)
8089a: 681a ldr r2, [r3, #0]
8089c: e920 0ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp}
808a0: 6010 str r0, [r2, #0]
808a2: e92d 4008 stmdb sp!, {r3, lr}
808a6: f04f 00a0 mov.w r0, #160 ; 0xa0
808aa: f380 8811 msr BASEPRI, r0
808ae: f001 f8b5 bl 81a1c <vTaskSwitchContext>
808b2: f04f 0000 mov.w r0, #0
808b6: f380 8811 msr BASEPRI, r0
808ba: e8bd 4008 ldmia.w sp!, {r3, lr}
808be: 6819 ldr r1, [r3, #0]
808c0: 6808 ldr r0, [r1, #0]
808c2: e8b0 0ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp}
808c6: f380 8809 msr PSP, r0
808ca: f3bf 8f6f isb sy
808ce: 4770 bx lr
000808d0 <pxCurrentTCBConst>:
808d0: 2000a484 .word 0x2000a484
" \n"
" .align 4 \n"
"pxCurrentTCBConst: .word pxCurrentTCB \n"
::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
);
}
808d4: bf00 nop
808d6: bf00 nop
000808d8 <SysTick_Handler>:
/*-----------------------------------------------------------*/
void xPortSysTickHandler( void )
{
808d8: b580 push {r7, lr}
808da: b082 sub sp, #8
808dc: af00 add r7, sp, #0
__asm volatile
808de: f04f 03a0 mov.w r3, #160 ; 0xa0
808e2: f383 8811 msr BASEPRI, r3
808e6: f3bf 8f6f isb sy
808ea: f3bf 8f4f dsb sy
808ee: 607b str r3, [r7, #4]
save and then restore the interrupt mask value as its value is already
known. */
portDISABLE_INTERRUPTS();
{
/* Increment the RTOS tick. */
if( xTaskIncrementTick() != pdFALSE )
808f0: 4b08 ldr r3, [pc, #32] ; (80914 <SysTick_Handler+0x3c>)
808f2: 4798 blx r3
808f4: 4603 mov r3, r0
808f6: 2b00 cmp r3, #0
808f8: d003 beq.n 80902 <SysTick_Handler+0x2a>
{
/* A context switch is required. Context switching is performed in
the PendSV interrupt. Pend the PendSV interrupt. */
portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
808fa: 4b07 ldr r3, [pc, #28] ; (80918 <SysTick_Handler+0x40>)
808fc: f04f 5280 mov.w r2, #268435456 ; 0x10000000
80900: 601a str r2, [r3, #0]
80902: 2300 movs r3, #0
80904: 603b str r3, [r7, #0]
__asm volatile
80906: 683b ldr r3, [r7, #0]
80908: f383 8811 msr BASEPRI, r3
}
}
portENABLE_INTERRUPTS();
}
8090c: bf00 nop
8090e: 3708 adds r7, #8
80910: 46bd mov sp, r7
80912: bd80 pop {r7, pc}
80914: 0008188d .word 0x0008188d
80918: e000ed04 .word 0xe000ed04
0008091c <vPortSetupTimerInterrupt>:
/*
* Setup the systick timer to generate the tick interrupts at the required
* frequency.
*/
__attribute__(( weak )) void vPortSetupTimerInterrupt( void )
{
8091c: b480 push {r7}
8091e: af00 add r7, sp, #0
ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
}
#endif /* configUSE_TICKLESS_IDLE */
/* Stop and clear the SysTick. */
portNVIC_SYSTICK_CTRL_REG = 0UL;
80920: 4b0a ldr r3, [pc, #40] ; (8094c <vPortSetupTimerInterrupt+0x30>)
80922: 2200 movs r2, #0
80924: 601a str r2, [r3, #0]
portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
80926: 4b0a ldr r3, [pc, #40] ; (80950 <vPortSetupTimerInterrupt+0x34>)
80928: 2200 movs r2, #0
8092a: 601a str r2, [r3, #0]
/* Configure SysTick to interrupt at the requested rate. */
portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
8092c: 4a09 ldr r2, [pc, #36] ; (80954 <vPortSetupTimerInterrupt+0x38>)
8092e: 4b0a ldr r3, [pc, #40] ; (80958 <vPortSetupTimerInterrupt+0x3c>)
80930: 681b ldr r3, [r3, #0]
80932: 490a ldr r1, [pc, #40] ; (8095c <vPortSetupTimerInterrupt+0x40>)
80934: fba1 1303 umull r1, r3, r1, r3
80938: 099b lsrs r3, r3, #6
8093a: 3b01 subs r3, #1
8093c: 6013 str r3, [r2, #0]
portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
8093e: 4b03 ldr r3, [pc, #12] ; (8094c <vPortSetupTimerInterrupt+0x30>)
80940: 2207 movs r2, #7
80942: 601a str r2, [r3, #0]
}
80944: bf00 nop
80946: 46bd mov sp, r7
80948: bc80 pop {r7}
8094a: 4770 bx lr
8094c: e000e010 .word 0xe000e010
80950: e000e018 .word 0xe000e018
80954: e000e014 .word 0xe000e014
80958: 20000000 .word 0x20000000
8095c: 10624dd3 .word 0x10624dd3
00080960 <vPortValidateInterruptPriority>:
/*-----------------------------------------------------------*/
#if( configASSERT_DEFINED == 1 )
void vPortValidateInterruptPriority( void )
{
80960: b480 push {r7}
80962: b085 sub sp, #20
80964: af00 add r7, sp, #0
uint32_t ulCurrentInterrupt;
uint8_t ucCurrentPriority;
/* Obtain the number of the currently executing interrupt. */
__asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
80966: f3ef 8305 mrs r3, IPSR
8096a: 60fb str r3, [r7, #12]
/* Is the interrupt number a user defined interrupt? */
if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
8096c: 68fb ldr r3, [r7, #12]
8096e: 2b0f cmp r3, #15
80970: d913 bls.n 8099a <vPortValidateInterruptPriority+0x3a>
{
/* Look up the interrupt's priority. */
ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
80972: 4a15 ldr r2, [pc, #84] ; (809c8 <vPortValidateInterruptPriority+0x68>)
80974: 68fb ldr r3, [r7, #12]
80976: 4413 add r3, r2
80978: 781b ldrb r3, [r3, #0]
8097a: 72fb strb r3, [r7, #11]
interrupt entry is as fast and simple as possible.
The following links provide detailed information:
http://www.freertos.org/RTOS-Cortex-M3-M4.html
http://www.freertos.org/FAQHelp.html */
configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
8097c: 4b13 ldr r3, [pc, #76] ; (809cc <vPortValidateInterruptPriority+0x6c>)
8097e: 781b ldrb r3, [r3, #0]
80980: 7afa ldrb r2, [r7, #11]
80982: 429a cmp r2, r3
80984: d209 bcs.n 8099a <vPortValidateInterruptPriority+0x3a>
__asm volatile
80986: f04f 03a0 mov.w r3, #160 ; 0xa0
8098a: f383 8811 msr BASEPRI, r3
8098e: f3bf 8f6f isb sy
80992: f3bf 8f4f dsb sy
80996: 607b str r3, [r7, #4]
80998: e7fe b.n 80998 <vPortValidateInterruptPriority+0x38>
configuration then the correct setting can be achieved on all Cortex-M
devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
scheduler. Note however that some vendor specific peripheral libraries
assume a non-zero priority group setting, in which cases using a value
of zero will result in unpredictable behaviour. */
configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
8099a: 4b0d ldr r3, [pc, #52] ; (809d0 <vPortValidateInterruptPriority+0x70>)
8099c: 681b ldr r3, [r3, #0]
8099e: f403 62e0 and.w r2, r3, #1792 ; 0x700
809a2: 4b0c ldr r3, [pc, #48] ; (809d4 <vPortValidateInterruptPriority+0x74>)
809a4: 681b ldr r3, [r3, #0]
809a6: 429a cmp r2, r3
809a8: d909 bls.n 809be <vPortValidateInterruptPriority+0x5e>
809aa: f04f 03a0 mov.w r3, #160 ; 0xa0
809ae: f383 8811 msr BASEPRI, r3
809b2: f3bf 8f6f isb sy
809b6: f3bf 8f4f dsb sy
809ba: 603b str r3, [r7, #0]
809bc: e7fe b.n 809bc <vPortValidateInterruptPriority+0x5c>
}
809be: bf00 nop
809c0: 3714 adds r7, #20
809c2: 46bd mov sp, r7
809c4: bc80 pop {r7}
809c6: 4770 bx lr
809c8: e000e3f0 .word 0xe000e3f0
809cc: 2000a47c .word 0x2000a47c
809d0: e000ed0c .word 0xe000ed0c
809d4: 2000a480 .word 0x2000a480
000809d8 <xQueueGenericReset>:
} \
taskEXIT_CRITICAL()
/*-----------------------------------------------------------*/
BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
{
809d8: b580 push {r7, lr}
809da: b084 sub sp, #16
809dc: af00 add r7, sp, #0
809de: 6078 str r0, [r7, #4]
809e0: 6039 str r1, [r7, #0]
Queue_t * const pxQueue = xQueue;
809e2: 687b ldr r3, [r7, #4]
809e4: 60fb str r3, [r7, #12]
configASSERT( pxQueue );
809e6: 68fb ldr r3, [r7, #12]
809e8: 2b00 cmp r3, #0
809ea: d109 bne.n 80a00 <xQueueGenericReset+0x28>
809ec: f04f 03a0 mov.w r3, #160 ; 0xa0
809f0: f383 8811 msr BASEPRI, r3
809f4: f3bf 8f6f isb sy
809f8: f3bf 8f4f dsb sy
809fc: 60bb str r3, [r7, #8]
809fe: e7fe b.n 809fe <xQueueGenericReset+0x26>
taskENTER_CRITICAL();
80a00: 4b28 ldr r3, [pc, #160] ; (80aa4 <xQueueGenericReset+0xcc>)
80a02: 4798 blx r3
{
pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
80a04: 68fb ldr r3, [r7, #12]
80a06: 681a ldr r2, [r3, #0]
80a08: 68fb ldr r3, [r7, #12]
80a0a: 6bdb ldr r3, [r3, #60] ; 0x3c
80a0c: 68f9 ldr r1, [r7, #12]
80a0e: 6c09 ldr r1, [r1, #64] ; 0x40
80a10: fb01 f303 mul.w r3, r1, r3
80a14: 441a add r2, r3
80a16: 68fb ldr r3, [r7, #12]
80a18: 609a str r2, [r3, #8]
pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
80a1a: 68fb ldr r3, [r7, #12]
80a1c: 2200 movs r2, #0
80a1e: 639a str r2, [r3, #56] ; 0x38
pxQueue->pcWriteTo = pxQueue->pcHead;
80a20: 68fb ldr r3, [r7, #12]
80a22: 681a ldr r2, [r3, #0]
80a24: 68fb ldr r3, [r7, #12]
80a26: 605a str r2, [r3, #4]
pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead + ( ( pxQueue->uxLength - 1U ) * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
80a28: 68fb ldr r3, [r7, #12]
80a2a: 681a ldr r2, [r3, #0]
80a2c: 68fb ldr r3, [r7, #12]
80a2e: 6bdb ldr r3, [r3, #60] ; 0x3c
80a30: 3b01 subs r3, #1
80a32: 68f9 ldr r1, [r7, #12]
80a34: 6c09 ldr r1, [r1, #64] ; 0x40
80a36: fb01 f303 mul.w r3, r1, r3
80a3a: 441a add r2, r3
80a3c: 68fb ldr r3, [r7, #12]
80a3e: 60da str r2, [r3, #12]
pxQueue->cRxLock = queueUNLOCKED;
80a40: 68fb ldr r3, [r7, #12]
80a42: 22ff movs r2, #255 ; 0xff
80a44: f883 2044 strb.w r2, [r3, #68] ; 0x44
pxQueue->cTxLock = queueUNLOCKED;
80a48: 68fb ldr r3, [r7, #12]
80a4a: 22ff movs r2, #255 ; 0xff
80a4c: f883 2045 strb.w r2, [r3, #69] ; 0x45
if( xNewQueue == pdFALSE )
80a50: 683b ldr r3, [r7, #0]
80a52: 2b00 cmp r3, #0
80a54: d114 bne.n 80a80 <xQueueGenericReset+0xa8>
/* If there are tasks blocked waiting to read from the queue, then
the tasks will remain blocked as after this function exits the queue
will still be empty. If there are tasks blocked waiting to write to
the queue, then one should be unblocked as after this function exits
it will be possible to write to it. */
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
80a56: 68fb ldr r3, [r7, #12]
80a58: 691b ldr r3, [r3, #16]
80a5a: 2b00 cmp r3, #0
80a5c: d01a beq.n 80a94 <xQueueGenericReset+0xbc>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
80a5e: 68fb ldr r3, [r7, #12]
80a60: 3310 adds r3, #16
80a62: 4618 mov r0, r3
80a64: 4b10 ldr r3, [pc, #64] ; (80aa8 <xQueueGenericReset+0xd0>)
80a66: 4798 blx r3
80a68: 4603 mov r3, r0
80a6a: 2b00 cmp r3, #0
80a6c: d012 beq.n 80a94 <xQueueGenericReset+0xbc>
{
queueYIELD_IF_USING_PREEMPTION();
80a6e: 4b0f ldr r3, [pc, #60] ; (80aac <xQueueGenericReset+0xd4>)
80a70: f04f 5280 mov.w r2, #268435456 ; 0x10000000
80a74: 601a str r2, [r3, #0]
80a76: f3bf 8f4f dsb sy
80a7a: f3bf 8f6f isb sy
80a7e: e009 b.n 80a94 <xQueueGenericReset+0xbc>
}
}
else
{
/* Ensure the event queues start in the correct state. */
vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
80a80: 68fb ldr r3, [r7, #12]
80a82: 3310 adds r3, #16
80a84: 4618 mov r0, r3
80a86: 4b0a ldr r3, [pc, #40] ; (80ab0 <xQueueGenericReset+0xd8>)
80a88: 4798 blx r3
vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
80a8a: 68fb ldr r3, [r7, #12]
80a8c: 3324 adds r3, #36 ; 0x24
80a8e: 4618 mov r0, r3
80a90: 4b07 ldr r3, [pc, #28] ; (80ab0 <xQueueGenericReset+0xd8>)
80a92: 4798 blx r3
}
}
taskEXIT_CRITICAL();
80a94: 4b07 ldr r3, [pc, #28] ; (80ab4 <xQueueGenericReset+0xdc>)
80a96: 4798 blx r3
/* A value is returned for calling semantic consistency with previous
versions. */
return pdPASS;
80a98: 2301 movs r3, #1
}
80a9a: 4618 mov r0, r3
80a9c: 3710 adds r7, #16
80a9e: 46bd mov sp, r7
80aa0: bd80 pop {r7, pc}
80aa2: bf00 nop
80aa4: 000807e9 .word 0x000807e9
80aa8: 00081bcd .word 0x00081bcd
80aac: e000ed04 .word 0xe000ed04
80ab0: 000802d9 .word 0x000802d9
80ab4: 00080845 .word 0x00080845
00080ab8 <xQueueGenericCreate>:
/*-----------------------------------------------------------*/
#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
{
80ab8: b590 push {r4, r7, lr}
80aba: b08b sub sp, #44 ; 0x2c
80abc: af02 add r7, sp, #8
80abe: 60f8 str r0, [r7, #12]
80ac0: 60b9 str r1, [r7, #8]
80ac2: 4613 mov r3, r2
80ac4: 71fb strb r3, [r7, #7]
Queue_t *pxNewQueue;
size_t xQueueSizeInBytes;
uint8_t *pucQueueStorage;
configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
80ac6: 68fb ldr r3, [r7, #12]
80ac8: 2b00 cmp r3, #0
80aca: d109 bne.n 80ae0 <xQueueGenericCreate+0x28>
80acc: f04f 03a0 mov.w r3, #160 ; 0xa0
80ad0: f383 8811 msr BASEPRI, r3
80ad4: f3bf 8f6f isb sy
80ad8: f3bf 8f4f dsb sy
80adc: 613b str r3, [r7, #16]
80ade: e7fe b.n 80ade <xQueueGenericCreate+0x26>
/* Allocate enough space to hold the maximum number of items that
can be in the queue at any time. It is valid for uxItemSize to be
zero in the case the queue is used as a semaphore. */
xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
80ae0: 68fb ldr r3, [r7, #12]
80ae2: 68ba ldr r2, [r7, #8]
80ae4: fb02 f303 mul.w r3, r2, r3
80ae8: 61fb str r3, [r7, #28]
alignment requirements of the Queue_t structure - which in this case
is an int8_t *. Therefore, whenever the stack alignment requirements
are greater than or equal to the pointer to char requirements the cast
is safe. In other cases alignment requirements are not strict (one or
two bytes). */
pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
80aea: 69fb ldr r3, [r7, #28]
80aec: 3348 adds r3, #72 ; 0x48
80aee: 4618 mov r0, r3
80af0: 4b0c ldr r3, [pc, #48] ; (80b24 <xQueueGenericCreate+0x6c>)
80af2: 4798 blx r3
80af4: 61b8 str r0, [r7, #24]
if( pxNewQueue != NULL )
80af6: 69bb ldr r3, [r7, #24]
80af8: 2b00 cmp r3, #0
80afa: d00d beq.n 80b18 <xQueueGenericCreate+0x60>
{
/* Jump past the queue structure to find the location of the queue
storage area. */
pucQueueStorage = ( uint8_t * ) pxNewQueue;
80afc: 69bb ldr r3, [r7, #24]
80afe: 617b str r3, [r7, #20]
pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
80b00: 697b ldr r3, [r7, #20]
80b02: 3348 adds r3, #72 ; 0x48
80b04: 617b str r3, [r7, #20]
deleted. */
pxNewQueue->ucStaticallyAllocated = pdFALSE;
}
#endif /* configSUPPORT_STATIC_ALLOCATION */
prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
80b06: 79fa ldrb r2, [r7, #7]
80b08: 69bb ldr r3, [r7, #24]
80b0a: 9300 str r3, [sp, #0]
80b0c: 4613 mov r3, r2
80b0e: 697a ldr r2, [r7, #20]
80b10: 68b9 ldr r1, [r7, #8]
80b12: 68f8 ldr r0, [r7, #12]
80b14: 4c04 ldr r4, [pc, #16] ; (80b28 <xQueueGenericCreate+0x70>)
80b16: 47a0 blx r4
{
traceQUEUE_CREATE_FAILED( ucQueueType );
mtCOVERAGE_TEST_MARKER();
}
return pxNewQueue;
80b18: 69bb ldr r3, [r7, #24]
}
80b1a: 4618 mov r0, r3
80b1c: 3724 adds r7, #36 ; 0x24
80b1e: 46bd mov sp, r7
80b20: bd90 pop {r4, r7, pc}
80b22: bf00 nop
80b24: 000801f1 .word 0x000801f1
80b28: 00080b2d .word 0x00080b2d
00080b2c <prvInitialiseNewQueue>:
#endif /* configSUPPORT_STATIC_ALLOCATION */
/*-----------------------------------------------------------*/
static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
{
80b2c: b580 push {r7, lr}
80b2e: b084 sub sp, #16
80b30: af00 add r7, sp, #0
80b32: 60f8 str r0, [r7, #12]
80b34: 60b9 str r1, [r7, #8]
80b36: 607a str r2, [r7, #4]
80b38: 70fb strb r3, [r7, #3]
/* Remove compiler warnings about unused parameters should
configUSE_TRACE_FACILITY not be set to 1. */
( void ) ucQueueType;
if( uxItemSize == ( UBaseType_t ) 0 )
80b3a: 68bb ldr r3, [r7, #8]
80b3c: 2b00 cmp r3, #0
80b3e: d103 bne.n 80b48 <prvInitialiseNewQueue+0x1c>
{
/* No RAM was allocated for the queue storage area, but PC head cannot
be set to NULL because NULL is used as a key to say the queue is used as
a mutex. Therefore just set pcHead to point to the queue as a benign
value that is known to be within the memory map. */
pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
80b40: 69bb ldr r3, [r7, #24]
80b42: 69ba ldr r2, [r7, #24]
80b44: 601a str r2, [r3, #0]
80b46: e002 b.n 80b4e <prvInitialiseNewQueue+0x22>
}
else
{
/* Set the head to the start of the queue storage area. */
pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
80b48: 69bb ldr r3, [r7, #24]
80b4a: 687a ldr r2, [r7, #4]
80b4c: 601a str r2, [r3, #0]
}
/* Initialise the queue members as described where the queue type is
defined. */
pxNewQueue->uxLength = uxQueueLength;
80b4e: 69bb ldr r3, [r7, #24]
80b50: 68fa ldr r2, [r7, #12]
80b52: 63da str r2, [r3, #60] ; 0x3c
pxNewQueue->uxItemSize = uxItemSize;
80b54: 69bb ldr r3, [r7, #24]
80b56: 68ba ldr r2, [r7, #8]
80b58: 641a str r2, [r3, #64] ; 0x40
( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
80b5a: 2101 movs r1, #1
80b5c: 69b8 ldr r0, [r7, #24]
80b5e: 4b03 ldr r3, [pc, #12] ; (80b6c <prvInitialiseNewQueue+0x40>)
80b60: 4798 blx r3
pxNewQueue->pxQueueSetContainer = NULL;
}
#endif /* configUSE_QUEUE_SETS */
traceQUEUE_CREATE( pxNewQueue );
}
80b62: bf00 nop
80b64: 3710 adds r7, #16
80b66: 46bd mov sp, r7
80b68: bd80 pop {r7, pc}
80b6a: bf00 nop
80b6c: 000809d9 .word 0x000809d9
00080b70 <xQueueGenericSend>:
#endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
/*-----------------------------------------------------------*/
BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
{
80b70: b580 push {r7, lr}
80b72: b08e sub sp, #56 ; 0x38
80b74: af00 add r7, sp, #0
80b76: 60f8 str r0, [r7, #12]
80b78: 60b9 str r1, [r7, #8]
80b7a: 607a str r2, [r7, #4]
80b7c: 603b str r3, [r7, #0]
BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
80b7e: 2300 movs r3, #0
80b80: 637b str r3, [r7, #52] ; 0x34
TimeOut_t xTimeOut;
Queue_t * const pxQueue = xQueue;
80b82: 68fb ldr r3, [r7, #12]
80b84: 633b str r3, [r7, #48] ; 0x30
configASSERT( pxQueue );
80b86: 6b3b ldr r3, [r7, #48] ; 0x30
80b88: 2b00 cmp r3, #0
80b8a: d109 bne.n 80ba0 <xQueueGenericSend+0x30>
80b8c: f04f 03a0 mov.w r3, #160 ; 0xa0
80b90: f383 8811 msr BASEPRI, r3
80b94: f3bf 8f6f isb sy
80b98: f3bf 8f4f dsb sy
80b9c: 62bb str r3, [r7, #40] ; 0x28
80b9e: e7fe b.n 80b9e <xQueueGenericSend+0x2e>
configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
80ba0: 68bb ldr r3, [r7, #8]
80ba2: 2b00 cmp r3, #0
80ba4: d103 bne.n 80bae <xQueueGenericSend+0x3e>
80ba6: 6b3b ldr r3, [r7, #48] ; 0x30
80ba8: 6c1b ldr r3, [r3, #64] ; 0x40
80baa: 2b00 cmp r3, #0
80bac: d101 bne.n 80bb2 <xQueueGenericSend+0x42>
80bae: 2301 movs r3, #1
80bb0: e000 b.n 80bb4 <xQueueGenericSend+0x44>
80bb2: 2300 movs r3, #0
80bb4: 2b00 cmp r3, #0
80bb6: d109 bne.n 80bcc <xQueueGenericSend+0x5c>
80bb8: f04f 03a0 mov.w r3, #160 ; 0xa0
80bbc: f383 8811 msr BASEPRI, r3
80bc0: f3bf 8f6f isb sy
80bc4: f3bf 8f4f dsb sy
80bc8: 627b str r3, [r7, #36] ; 0x24
80bca: e7fe b.n 80bca <xQueueGenericSend+0x5a>
configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
80bcc: 683b ldr r3, [r7, #0]
80bce: 2b02 cmp r3, #2
80bd0: d103 bne.n 80bda <xQueueGenericSend+0x6a>
80bd2: 6b3b ldr r3, [r7, #48] ; 0x30
80bd4: 6bdb ldr r3, [r3, #60] ; 0x3c
80bd6: 2b01 cmp r3, #1
80bd8: d101 bne.n 80bde <xQueueGenericSend+0x6e>
80bda: 2301 movs r3, #1
80bdc: e000 b.n 80be0 <xQueueGenericSend+0x70>
80bde: 2300 movs r3, #0
80be0: 2b00 cmp r3, #0
80be2: d109 bne.n 80bf8 <xQueueGenericSend+0x88>
80be4: f04f 03a0 mov.w r3, #160 ; 0xa0
80be8: f383 8811 msr BASEPRI, r3
80bec: f3bf 8f6f isb sy
80bf0: f3bf 8f4f dsb sy
80bf4: 623b str r3, [r7, #32]
80bf6: e7fe b.n 80bf6 <xQueueGenericSend+0x86>
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
{
configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
80bf8: 4b59 ldr r3, [pc, #356] ; (80d60 <xQueueGenericSend+0x1f0>)
80bfa: 4798 blx r3
80bfc: 4603 mov r3, r0
80bfe: 2b00 cmp r3, #0
80c00: d102 bne.n 80c08 <xQueueGenericSend+0x98>
80c02: 687b ldr r3, [r7, #4]
80c04: 2b00 cmp r3, #0
80c06: d101 bne.n 80c0c <xQueueGenericSend+0x9c>
80c08: 2301 movs r3, #1
80c0a: e000 b.n 80c0e <xQueueGenericSend+0x9e>
80c0c: 2300 movs r3, #0
80c0e: 2b00 cmp r3, #0
80c10: d109 bne.n 80c26 <xQueueGenericSend+0xb6>
80c12: f04f 03a0 mov.w r3, #160 ; 0xa0
80c16: f383 8811 msr BASEPRI, r3
80c1a: f3bf 8f6f isb sy
80c1e: f3bf 8f4f dsb sy
80c22: 61fb str r3, [r7, #28]
80c24: e7fe b.n 80c24 <xQueueGenericSend+0xb4>
/*lint -save -e904 This function relaxes the coding standard somewhat to
allow return statements within the function itself. This is done in the
interest of execution time efficiency. */
for( ;; )
{
taskENTER_CRITICAL();
80c26: 4b4f ldr r3, [pc, #316] ; (80d64 <xQueueGenericSend+0x1f4>)
80c28: 4798 blx r3
{
/* Is there room on the queue now? The running task must be the
highest priority task wanting to access the queue. If the head item
in the queue is to be overwritten then it does not matter if the
queue is full. */
if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
80c2a: 6b3b ldr r3, [r7, #48] ; 0x30
80c2c: 6b9a ldr r2, [r3, #56] ; 0x38
80c2e: 6b3b ldr r3, [r7, #48] ; 0x30
80c30: 6bdb ldr r3, [r3, #60] ; 0x3c
80c32: 429a cmp r2, r3
80c34: d302 bcc.n 80c3c <xQueueGenericSend+0xcc>
80c36: 683b ldr r3, [r7, #0]
80c38: 2b02 cmp r3, #2
80c3a: d129 bne.n 80c90 <xQueueGenericSend+0x120>
}
}
}
#else /* configUSE_QUEUE_SETS */
{
xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
80c3c: 683a ldr r2, [r7, #0]
80c3e: 68b9 ldr r1, [r7, #8]
80c40: 6b38 ldr r0, [r7, #48] ; 0x30
80c42: 4b49 ldr r3, [pc, #292] ; (80d68 <xQueueGenericSend+0x1f8>)
80c44: 4798 blx r3
80c46: 62f8 str r0, [r7, #44] ; 0x2c
/* If there was a task waiting for data to arrive on the
queue then unblock it now. */
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
80c48: 6b3b ldr r3, [r7, #48] ; 0x30
80c4a: 6a5b ldr r3, [r3, #36] ; 0x24
80c4c: 2b00 cmp r3, #0
80c4e: d010 beq.n 80c72 <xQueueGenericSend+0x102>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
80c50: 6b3b ldr r3, [r7, #48] ; 0x30
80c52: 3324 adds r3, #36 ; 0x24
80c54: 4618 mov r0, r3
80c56: 4b45 ldr r3, [pc, #276] ; (80d6c <xQueueGenericSend+0x1fc>)
80c58: 4798 blx r3
80c5a: 4603 mov r3, r0
80c5c: 2b00 cmp r3, #0
80c5e: d013 beq.n 80c88 <xQueueGenericSend+0x118>
{
/* The unblocked task has a priority higher than
our own so yield immediately. Yes it is ok to do
this from within the critical section - the kernel
takes care of that. */
queueYIELD_IF_USING_PREEMPTION();
80c60: 4b43 ldr r3, [pc, #268] ; (80d70 <xQueueGenericSend+0x200>)
80c62: f04f 5280 mov.w r2, #268435456 ; 0x10000000
80c66: 601a str r2, [r3, #0]
80c68: f3bf 8f4f dsb sy
80c6c: f3bf 8f6f isb sy
80c70: e00a b.n 80c88 <xQueueGenericSend+0x118>
else
{
mtCOVERAGE_TEST_MARKER();
}
}
else if( xYieldRequired != pdFALSE )
80c72: 6afb ldr r3, [r7, #44] ; 0x2c
80c74: 2b00 cmp r3, #0
80c76: d007 beq.n 80c88 <xQueueGenericSend+0x118>
{
/* This path is a special case that will only get
executed if the task was holding multiple mutexes and
the mutexes were given back in an order that is
different to that in which they were taken. */
queueYIELD_IF_USING_PREEMPTION();
80c78: 4b3d ldr r3, [pc, #244] ; (80d70 <xQueueGenericSend+0x200>)
80c7a: f04f 5280 mov.w r2, #268435456 ; 0x10000000
80c7e: 601a str r2, [r3, #0]
80c80: f3bf 8f4f dsb sy
80c84: f3bf 8f6f isb sy
mtCOVERAGE_TEST_MARKER();
}
}
#endif /* configUSE_QUEUE_SETS */
taskEXIT_CRITICAL();
80c88: 4b3a ldr r3, [pc, #232] ; (80d74 <xQueueGenericSend+0x204>)
80c8a: 4798 blx r3
return pdPASS;
80c8c: 2301 movs r3, #1
80c8e: e063 b.n 80d58 <xQueueGenericSend+0x1e8>
}
else
{
if( xTicksToWait == ( TickType_t ) 0 )
80c90: 687b ldr r3, [r7, #4]
80c92: 2b00 cmp r3, #0
80c94: d103 bne.n 80c9e <xQueueGenericSend+0x12e>
{
/* The queue was full and no block time is specified (or
the block time has expired) so leave now. */
taskEXIT_CRITICAL();
80c96: 4b37 ldr r3, [pc, #220] ; (80d74 <xQueueGenericSend+0x204>)
80c98: 4798 blx r3
/* Return to the original privilege level before exiting
the function. */
traceQUEUE_SEND_FAILED( pxQueue );
return errQUEUE_FULL;
80c9a: 2300 movs r3, #0
80c9c: e05c b.n 80d58 <xQueueGenericSend+0x1e8>
}
else if( xEntryTimeSet == pdFALSE )
80c9e: 6b7b ldr r3, [r7, #52] ; 0x34
80ca0: 2b00 cmp r3, #0
80ca2: d106 bne.n 80cb2 <xQueueGenericSend+0x142>
{
/* The queue was full and a block time was specified so
configure the timeout structure. */
vTaskInternalSetTimeOutState( &xTimeOut );
80ca4: f107 0314 add.w r3, r7, #20
80ca8: 4618 mov r0, r3
80caa: 4b33 ldr r3, [pc, #204] ; (80d78 <xQueueGenericSend+0x208>)
80cac: 4798 blx r3
xEntryTimeSet = pdTRUE;
80cae: 2301 movs r3, #1
80cb0: 637b str r3, [r7, #52] ; 0x34
/* Entry time was already set. */
mtCOVERAGE_TEST_MARKER();
}
}
}
taskEXIT_CRITICAL();
80cb2: 4b30 ldr r3, [pc, #192] ; (80d74 <xQueueGenericSend+0x204>)
80cb4: 4798 blx r3
/* Interrupts and other tasks can send to and receive from the queue
now the critical section has been exited. */
vTaskSuspendAll();
80cb6: 4b31 ldr r3, [pc, #196] ; (80d7c <xQueueGenericSend+0x20c>)
80cb8: 4798 blx r3
prvLockQueue( pxQueue );
80cba: 4b2a ldr r3, [pc, #168] ; (80d64 <xQueueGenericSend+0x1f4>)
80cbc: 4798 blx r3
80cbe: 6b3b ldr r3, [r7, #48] ; 0x30
80cc0: f893 3044 ldrb.w r3, [r3, #68] ; 0x44
80cc4: b25b sxtb r3, r3
80cc6: f1b3 3fff cmp.w r3, #4294967295
80cca: d103 bne.n 80cd4 <xQueueGenericSend+0x164>
80ccc: 6b3b ldr r3, [r7, #48] ; 0x30
80cce: 2200 movs r2, #0
80cd0: f883 2044 strb.w r2, [r3, #68] ; 0x44
80cd4: 6b3b ldr r3, [r7, #48] ; 0x30
80cd6: f893 3045 ldrb.w r3, [r3, #69] ; 0x45
80cda: b25b sxtb r3, r3
80cdc: f1b3 3fff cmp.w r3, #4294967295
80ce0: d103 bne.n 80cea <xQueueGenericSend+0x17a>
80ce2: 6b3b ldr r3, [r7, #48] ; 0x30
80ce4: 2200 movs r2, #0
80ce6: f883 2045 strb.w r2, [r3, #69] ; 0x45
80cea: 4b22 ldr r3, [pc, #136] ; (80d74 <xQueueGenericSend+0x204>)
80cec: 4798 blx r3
/* Update the timeout state to see if it has expired yet. */
if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
80cee: 1d3a adds r2, r7, #4
80cf0: f107 0314 add.w r3, r7, #20
80cf4: 4611 mov r1, r2
80cf6: 4618 mov r0, r3
80cf8: 4b21 ldr r3, [pc, #132] ; (80d80 <xQueueGenericSend+0x210>)
80cfa: 4798 blx r3
80cfc: 4603 mov r3, r0
80cfe: 2b00 cmp r3, #0
80d00: d124 bne.n 80d4c <xQueueGenericSend+0x1dc>
{
if( prvIsQueueFull( pxQueue ) != pdFALSE )
80d02: 6b38 ldr r0, [r7, #48] ; 0x30
80d04: 4b1f ldr r3, [pc, #124] ; (80d84 <xQueueGenericSend+0x214>)
80d06: 4798 blx r3
80d08: 4603 mov r3, r0
80d0a: 2b00 cmp r3, #0
80d0c: d018 beq.n 80d40 <xQueueGenericSend+0x1d0>
{
traceBLOCKING_ON_QUEUE_SEND( pxQueue );
vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
80d0e: 6b3b ldr r3, [r7, #48] ; 0x30
80d10: 3310 adds r3, #16
80d12: 687a ldr r2, [r7, #4]
80d14: 4611 mov r1, r2
80d16: 4618 mov r0, r3
80d18: 4b1b ldr r3, [pc, #108] ; (80d88 <xQueueGenericSend+0x218>)
80d1a: 4798 blx r3
/* Unlocking the queue means queue events can effect the
event list. It is possible that interrupts occurring now
remove this task from the event list again - but as the
scheduler is suspended the task will go onto the pending
ready last instead of the actual ready list. */
prvUnlockQueue( pxQueue );
80d1c: 6b38 ldr r0, [r7, #48] ; 0x30
80d1e: 4b1b ldr r3, [pc, #108] ; (80d8c <xQueueGenericSend+0x21c>)
80d20: 4798 blx r3
/* Resuming the scheduler will move tasks from the pending
ready list into the ready list - so it is feasible that this
task is already in a ready list before it yields - in which
case the yield will not cause a context switch unless there
is also a higher priority task in the pending ready list. */
if( xTaskResumeAll() == pdFALSE )
80d22: 4b1b ldr r3, [pc, #108] ; (80d90 <xQueueGenericSend+0x220>)
80d24: 4798 blx r3
80d26: 4603 mov r3, r0
80d28: 2b00 cmp r3, #0
80d2a: f47f af7c bne.w 80c26 <xQueueGenericSend+0xb6>
{
portYIELD_WITHIN_API();
80d2e: 4b10 ldr r3, [pc, #64] ; (80d70 <xQueueGenericSend+0x200>)
80d30: f04f 5280 mov.w r2, #268435456 ; 0x10000000
80d34: 601a str r2, [r3, #0]
80d36: f3bf 8f4f dsb sy
80d3a: f3bf 8f6f isb sy
80d3e: e772 b.n 80c26 <xQueueGenericSend+0xb6>
}
}
else
{
/* Try again. */
prvUnlockQueue( pxQueue );
80d40: 6b38 ldr r0, [r7, #48] ; 0x30
80d42: 4b12 ldr r3, [pc, #72] ; (80d8c <xQueueGenericSend+0x21c>)
80d44: 4798 blx r3
( void ) xTaskResumeAll();
80d46: 4b12 ldr r3, [pc, #72] ; (80d90 <xQueueGenericSend+0x220>)
80d48: 4798 blx r3
80d4a: e76c b.n 80c26 <xQueueGenericSend+0xb6>
}
}
else
{
/* The timeout has expired. */
prvUnlockQueue( pxQueue );
80d4c: 6b38 ldr r0, [r7, #48] ; 0x30
80d4e: 4b0f ldr r3, [pc, #60] ; (80d8c <xQueueGenericSend+0x21c>)
80d50: 4798 blx r3
( void ) xTaskResumeAll();
80d52: 4b0f ldr r3, [pc, #60] ; (80d90 <xQueueGenericSend+0x220>)
80d54: 4798 blx r3
traceQUEUE_SEND_FAILED( pxQueue );
return errQUEUE_FULL;
80d56: 2300 movs r3, #0
}
} /*lint -restore */
}
80d58: 4618 mov r0, r3
80d5a: 3738 adds r7, #56 ; 0x38
80d5c: 46bd mov sp, r7
80d5e: bd80 pop {r7, pc}
80d60: 00081f35 .word 0x00081f35
80d64: 000807e9 .word 0x000807e9
80d68: 000810fd .word 0x000810fd
80d6c: 00081bcd .word 0x00081bcd
80d70: e000ed04 .word 0xe000ed04
80d74: 00080845 .word 0x00080845
80d78: 00081c99 .word 0x00081c99
80d7c: 00081705 .word 0x00081705
80d80: 00081cc5 .word 0x00081cc5
80d84: 00081311 .word 0x00081311
80d88: 00081b21 .word 0x00081b21
80d8c: 00081229 .word 0x00081229
80d90: 00081721 .word 0x00081721
00080d94 <xQueueGenericSendFromISR>:
/*-----------------------------------------------------------*/
BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
{
80d94: b580 push {r7, lr}
80d96: b090 sub sp, #64 ; 0x40
80d98: af00 add r7, sp, #0
80d9a: 60f8 str r0, [r7, #12]
80d9c: 60b9 str r1, [r7, #8]
80d9e: 607a str r2, [r7, #4]
80da0: 603b str r3, [r7, #0]
BaseType_t xReturn;
UBaseType_t uxSavedInterruptStatus;
Queue_t * const pxQueue = xQueue;
80da2: 68fb ldr r3, [r7, #12]
80da4: 63bb str r3, [r7, #56] ; 0x38
configASSERT( pxQueue );
80da6: 6bbb ldr r3, [r7, #56] ; 0x38
80da8: 2b00 cmp r3, #0
80daa: d109 bne.n 80dc0 <xQueueGenericSendFromISR+0x2c>
80dac: f04f 03a0 mov.w r3, #160 ; 0xa0
80db0: f383 8811 msr BASEPRI, r3
80db4: f3bf 8f6f isb sy
80db8: f3bf 8f4f dsb sy
80dbc: 62bb str r3, [r7, #40] ; 0x28
80dbe: e7fe b.n 80dbe <xQueueGenericSendFromISR+0x2a>
configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
80dc0: 68bb ldr r3, [r7, #8]
80dc2: 2b00 cmp r3, #0
80dc4: d103 bne.n 80dce <xQueueGenericSendFromISR+0x3a>
80dc6: 6bbb ldr r3, [r7, #56] ; 0x38
80dc8: 6c1b ldr r3, [r3, #64] ; 0x40
80dca: 2b00 cmp r3, #0
80dcc: d101 bne.n 80dd2 <xQueueGenericSendFromISR+0x3e>
80dce: 2301 movs r3, #1
80dd0: e000 b.n 80dd4 <xQueueGenericSendFromISR+0x40>
80dd2: 2300 movs r3, #0
80dd4: 2b00 cmp r3, #0
80dd6: d109 bne.n 80dec <xQueueGenericSendFromISR+0x58>
80dd8: f04f 03a0 mov.w r3, #160 ; 0xa0
80ddc: f383 8811 msr BASEPRI, r3
80de0: f3bf 8f6f isb sy
80de4: f3bf 8f4f dsb sy
80de8: 627b str r3, [r7, #36] ; 0x24
80dea: e7fe b.n 80dea <xQueueGenericSendFromISR+0x56>
configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
80dec: 683b ldr r3, [r7, #0]
80dee: 2b02 cmp r3, #2
80df0: d103 bne.n 80dfa <xQueueGenericSendFromISR+0x66>
80df2: 6bbb ldr r3, [r7, #56] ; 0x38
80df4: 6bdb ldr r3, [r3, #60] ; 0x3c
80df6: 2b01 cmp r3, #1
80df8: d101 bne.n 80dfe <xQueueGenericSendFromISR+0x6a>
80dfa: 2301 movs r3, #1
80dfc: e000 b.n 80e00 <xQueueGenericSendFromISR+0x6c>
80dfe: 2300 movs r3, #0
80e00: 2b00 cmp r3, #0
80e02: d109 bne.n 80e18 <xQueueGenericSendFromISR+0x84>
80e04: f04f 03a0 mov.w r3, #160 ; 0xa0
80e08: f383 8811 msr BASEPRI, r3
80e0c: f3bf 8f6f isb sy
80e10: f3bf 8f4f dsb sy
80e14: 623b str r3, [r7, #32]
80e16: e7fe b.n 80e16 <xQueueGenericSendFromISR+0x82>
that have been assigned a priority at or (logically) below the maximum
system call interrupt priority. FreeRTOS maintains a separate interrupt
safe API to ensure interrupt entry is as fast and as simple as possible.
More information (albeit Cortex-M specific) is provided on the following
link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
80e18: 4b2a ldr r3, [pc, #168] ; (80ec4 <xQueueGenericSendFromISR+0x130>)
80e1a: 4798 blx r3
__asm volatile
80e1c: f3ef 8211 mrs r2, BASEPRI
80e20: f04f 03a0 mov.w r3, #160 ; 0xa0
80e24: f383 8811 msr BASEPRI, r3
80e28: f3bf 8f6f isb sy
80e2c: f3bf 8f4f dsb sy
80e30: 61fa str r2, [r7, #28]
80e32: 61bb str r3, [r7, #24]
return ulOriginalBASEPRI;
80e34: 69fb ldr r3, [r7, #28]
/* Similar to xQueueGenericSend, except without blocking if there is no room
in the queue. Also don't directly wake a task that was blocked on a queue
read, instead return a flag to say whether a context switch is required or
not (i.e. has a task with a higher priority than us been woken by this
post). */
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
80e36: 637b str r3, [r7, #52] ; 0x34
{
if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
80e38: 6bbb ldr r3, [r7, #56] ; 0x38
80e3a: 6b9a ldr r2, [r3, #56] ; 0x38
80e3c: 6bbb ldr r3, [r7, #56] ; 0x38
80e3e: 6bdb ldr r3, [r3, #60] ; 0x3c
80e40: 429a cmp r2, r3
80e42: d302 bcc.n 80e4a <xQueueGenericSendFromISR+0xb6>
80e44: 683b ldr r3, [r7, #0]
80e46: 2b02 cmp r3, #2
80e48: d12f bne.n 80eaa <xQueueGenericSendFromISR+0x116>
{
const int8_t cTxLock = pxQueue->cTxLock;
80e4a: 6bbb ldr r3, [r7, #56] ; 0x38
80e4c: f893 3045 ldrb.w r3, [r3, #69] ; 0x45
80e50: f887 3033 strb.w r3, [r7, #51] ; 0x33
const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
80e54: 6bbb ldr r3, [r7, #56] ; 0x38
80e56: 6b9b ldr r3, [r3, #56] ; 0x38
80e58: 62fb str r3, [r7, #44] ; 0x2c
/* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
semaphore or mutex. That means prvCopyDataToQueue() cannot result
in a task disinheriting a priority and prvCopyDataToQueue() can be
called here even though the disinherit function does not check if
the scheduler is suspended before accessing the ready lists. */
( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
80e5a: 683a ldr r2, [r7, #0]
80e5c: 68b9 ldr r1, [r7, #8]
80e5e: 6bb8 ldr r0, [r7, #56] ; 0x38
80e60: 4b19 ldr r3, [pc, #100] ; (80ec8 <xQueueGenericSendFromISR+0x134>)
80e62: 4798 blx r3
/* The event list is not altered if the queue is locked. This will
be done when the queue is unlocked later. */
if( cTxLock == queueUNLOCKED )
80e64: f997 3033 ldrsb.w r3, [r7, #51] ; 0x33
80e68: f1b3 3fff cmp.w r3, #4294967295
80e6c: d112 bne.n 80e94 <xQueueGenericSendFromISR+0x100>
}
}
}
#else /* configUSE_QUEUE_SETS */
{
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
80e6e: 6bbb ldr r3, [r7, #56] ; 0x38
80e70: 6a5b ldr r3, [r3, #36] ; 0x24
80e72: 2b00 cmp r3, #0
80e74: d016 beq.n 80ea4 <xQueueGenericSendFromISR+0x110>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
80e76: 6bbb ldr r3, [r7, #56] ; 0x38
80e78: 3324 adds r3, #36 ; 0x24
80e7a: 4618 mov r0, r3
80e7c: 4b13 ldr r3, [pc, #76] ; (80ecc <xQueueGenericSendFromISR+0x138>)
80e7e: 4798 blx r3
80e80: 4603 mov r3, r0
80e82: 2b00 cmp r3, #0
80e84: d00e beq.n 80ea4 <xQueueGenericSendFromISR+0x110>
{
/* The task waiting has a higher priority so record that a
context switch is required. */
if( pxHigherPriorityTaskWoken != NULL )
80e86: 687b ldr r3, [r7, #4]
80e88: 2b00 cmp r3, #0
80e8a: d00b beq.n 80ea4 <xQueueGenericSendFromISR+0x110>
{
*pxHigherPriorityTaskWoken = pdTRUE;
80e8c: 687b ldr r3, [r7, #4]
80e8e: 2201 movs r2, #1
80e90: 601a str r2, [r3, #0]
80e92: e007 b.n 80ea4 <xQueueGenericSendFromISR+0x110>
}
else
{
/* Increment the lock count so the task that unlocks the queue
knows that data was posted while it was locked. */
pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
80e94: f897 3033 ldrb.w r3, [r7, #51] ; 0x33
80e98: 3301 adds r3, #1
80e9a: b2db uxtb r3, r3
80e9c: b25a sxtb r2, r3
80e9e: 6bbb ldr r3, [r7, #56] ; 0x38
80ea0: f883 2045 strb.w r2, [r3, #69] ; 0x45
}
xReturn = pdPASS;
80ea4: 2301 movs r3, #1
80ea6: 63fb str r3, [r7, #60] ; 0x3c
{
80ea8: e001 b.n 80eae <xQueueGenericSendFromISR+0x11a>
}
else
{
traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
xReturn = errQUEUE_FULL;
80eaa: 2300 movs r3, #0
80eac: 63fb str r3, [r7, #60] ; 0x3c
80eae: 6b7b ldr r3, [r7, #52] ; 0x34
80eb0: 617b str r3, [r7, #20]
__asm volatile
80eb2: 697b ldr r3, [r7, #20]
80eb4: f383 8811 msr BASEPRI, r3
}
}
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
return xReturn;
80eb8: 6bfb ldr r3, [r7, #60] ; 0x3c
}
80eba: 4618 mov r0, r3
80ebc: 3740 adds r7, #64 ; 0x40
80ebe: 46bd mov sp, r7
80ec0: bd80 pop {r7, pc}
80ec2: bf00 nop
80ec4: 00080961 .word 0x00080961
80ec8: 000810fd .word 0x000810fd
80ecc: 00081bcd .word 0x00081bcd
00080ed0 <xQueueReceive>:
return xReturn;
}
/*-----------------------------------------------------------*/
BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
{
80ed0: b580 push {r7, lr}
80ed2: b08c sub sp, #48 ; 0x30
80ed4: af00 add r7, sp, #0
80ed6: 60f8 str r0, [r7, #12]
80ed8: 60b9 str r1, [r7, #8]
80eda: 607a str r2, [r7, #4]
BaseType_t xEntryTimeSet = pdFALSE;
80edc: 2300 movs r3, #0
80ede: 62fb str r3, [r7, #44] ; 0x2c
TimeOut_t xTimeOut;
Queue_t * const pxQueue = xQueue;
80ee0: 68fb ldr r3, [r7, #12]
80ee2: 62bb str r3, [r7, #40] ; 0x28
/* Check the pointer is not NULL. */
configASSERT( ( pxQueue ) );
80ee4: 6abb ldr r3, [r7, #40] ; 0x28
80ee6: 2b00 cmp r3, #0
80ee8: d109 bne.n 80efe <xQueueReceive+0x2e>
__asm volatile
80eea: f04f 03a0 mov.w r3, #160 ; 0xa0
80eee: f383 8811 msr BASEPRI, r3
80ef2: f3bf 8f6f isb sy
80ef6: f3bf 8f4f dsb sy
80efa: 623b str r3, [r7, #32]
80efc: e7fe b.n 80efc <xQueueReceive+0x2c>
/* The buffer into which data is received can only be NULL if the data size
is zero (so no data is copied into the buffer. */
configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
80efe: 68bb ldr r3, [r7, #8]
80f00: 2b00 cmp r3, #0
80f02: d103 bne.n 80f0c <xQueueReceive+0x3c>
80f04: 6abb ldr r3, [r7, #40] ; 0x28
80f06: 6c1b ldr r3, [r3, #64] ; 0x40
80f08: 2b00 cmp r3, #0
80f0a: d101 bne.n 80f10 <xQueueReceive+0x40>
80f0c: 2301 movs r3, #1
80f0e: e000 b.n 80f12 <xQueueReceive+0x42>
80f10: 2300 movs r3, #0
80f12: 2b00 cmp r3, #0
80f14: d109 bne.n 80f2a <xQueueReceive+0x5a>
80f16: f04f 03a0 mov.w r3, #160 ; 0xa0
80f1a: f383 8811 msr BASEPRI, r3
80f1e: f3bf 8f6f isb sy
80f22: f3bf 8f4f dsb sy
80f26: 61fb str r3, [r7, #28]
80f28: e7fe b.n 80f28 <xQueueReceive+0x58>
/* Cannot block if the scheduler is suspended. */
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
{
configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
80f2a: 4b56 ldr r3, [pc, #344] ; (81084 <xQueueReceive+0x1b4>)
80f2c: 4798 blx r3
80f2e: 4603 mov r3, r0
80f30: 2b00 cmp r3, #0
80f32: d102 bne.n 80f3a <xQueueReceive+0x6a>
80f34: 687b ldr r3, [r7, #4]
80f36: 2b00 cmp r3, #0
80f38: d101 bne.n 80f3e <xQueueReceive+0x6e>
80f3a: 2301 movs r3, #1
80f3c: e000 b.n 80f40 <xQueueReceive+0x70>
80f3e: 2300 movs r3, #0
80f40: 2b00 cmp r3, #0
80f42: d109 bne.n 80f58 <xQueueReceive+0x88>
80f44: f04f 03a0 mov.w r3, #160 ; 0xa0
80f48: f383 8811 msr BASEPRI, r3
80f4c: f3bf 8f6f isb sy
80f50: f3bf 8f4f dsb sy
80f54: 61bb str r3, [r7, #24]
80f56: e7fe b.n 80f56 <xQueueReceive+0x86>
/*lint -save -e904 This function relaxes the coding standard somewhat to
allow return statements within the function itself. This is done in the
interest of execution time efficiency. */
for( ;; )
{
taskENTER_CRITICAL();
80f58: 4b4b ldr r3, [pc, #300] ; (81088 <xQueueReceive+0x1b8>)
80f5a: 4798 blx r3
{
const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
80f5c: 6abb ldr r3, [r7, #40] ; 0x28
80f5e: 6b9b ldr r3, [r3, #56] ; 0x38
80f60: 627b str r3, [r7, #36] ; 0x24
/* Is there data in the queue now? To be running the calling task
must be the highest priority task wanting to access the queue. */
if( uxMessagesWaiting > ( UBaseType_t ) 0 )
80f62: 6a7b ldr r3, [r7, #36] ; 0x24
80f64: 2b00 cmp r3, #0
80f66: d01f beq.n 80fa8 <xQueueReceive+0xd8>
{
/* Data available, remove one item. */
prvCopyDataFromQueue( pxQueue, pvBuffer );
80f68: 68b9 ldr r1, [r7, #8]
80f6a: 6ab8 ldr r0, [r7, #40] ; 0x28
80f6c: 4b47 ldr r3, [pc, #284] ; (8108c <xQueueReceive+0x1bc>)
80f6e: 4798 blx r3
traceQUEUE_RECEIVE( pxQueue );
pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
80f70: 6a7b ldr r3, [r7, #36] ; 0x24
80f72: 1e5a subs r2, r3, #1
80f74: 6abb ldr r3, [r7, #40] ; 0x28
80f76: 639a str r2, [r3, #56] ; 0x38
/* There is now space in the queue, were any tasks waiting to
post to the queue? If so, unblock the highest priority waiting
task. */
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
80f78: 6abb ldr r3, [r7, #40] ; 0x28
80f7a: 691b ldr r3, [r3, #16]
80f7c: 2b00 cmp r3, #0
80f7e: d00f beq.n 80fa0 <xQueueReceive+0xd0>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
80f80: 6abb ldr r3, [r7, #40] ; 0x28
80f82: 3310 adds r3, #16
80f84: 4618 mov r0, r3
80f86: 4b42 ldr r3, [pc, #264] ; (81090 <xQueueReceive+0x1c0>)
80f88: 4798 blx r3
80f8a: 4603 mov r3, r0
80f8c: 2b00 cmp r3, #0
80f8e: d007 beq.n 80fa0 <xQueueReceive+0xd0>
{
queueYIELD_IF_USING_PREEMPTION();
80f90: 4b40 ldr r3, [pc, #256] ; (81094 <xQueueReceive+0x1c4>)
80f92: f04f 5280 mov.w r2, #268435456 ; 0x10000000
80f96: 601a str r2, [r3, #0]
80f98: f3bf 8f4f dsb sy
80f9c: f3bf 8f6f isb sy
else
{
mtCOVERAGE_TEST_MARKER();
}
taskEXIT_CRITICAL();
80fa0: 4b3d ldr r3, [pc, #244] ; (81098 <xQueueReceive+0x1c8>)
80fa2: 4798 blx r3
return pdPASS;
80fa4: 2301 movs r3, #1
80fa6: e069 b.n 8107c <xQueueReceive+0x1ac>
}
else
{
if( xTicksToWait == ( TickType_t ) 0 )
80fa8: 687b ldr r3, [r7, #4]
80faa: 2b00 cmp r3, #0
80fac: d103 bne.n 80fb6 <xQueueReceive+0xe6>
{
/* The queue was empty and no block time is specified (or
the block time has expired) so leave now. */
taskEXIT_CRITICAL();
80fae: 4b3a ldr r3, [pc, #232] ; (81098 <xQueueReceive+0x1c8>)
80fb0: 4798 blx r3
traceQUEUE_RECEIVE_FAILED( pxQueue );
return errQUEUE_EMPTY;
80fb2: 2300 movs r3, #0
80fb4: e062 b.n 8107c <xQueueReceive+0x1ac>
}
else if( xEntryTimeSet == pdFALSE )
80fb6: 6afb ldr r3, [r7, #44] ; 0x2c
80fb8: 2b00 cmp r3, #0
80fba: d106 bne.n 80fca <xQueueReceive+0xfa>
{
/* The queue was empty and a block time was specified so
configure the timeout structure. */
vTaskInternalSetTimeOutState( &xTimeOut );
80fbc: f107 0310 add.w r3, r7, #16
80fc0: 4618 mov r0, r3
80fc2: 4b36 ldr r3, [pc, #216] ; (8109c <xQueueReceive+0x1cc>)
80fc4: 4798 blx r3
xEntryTimeSet = pdTRUE;
80fc6: 2301 movs r3, #1
80fc8: 62fb str r3, [r7, #44] ; 0x2c
/* Entry time was already set. */
mtCOVERAGE_TEST_MARKER();
}
}
}
taskEXIT_CRITICAL();
80fca: 4b33 ldr r3, [pc, #204] ; (81098 <xQueueReceive+0x1c8>)
80fcc: 4798 blx r3
/* Interrupts and other tasks can send to and receive from the queue
now the critical section has been exited. */
vTaskSuspendAll();
80fce: 4b34 ldr r3, [pc, #208] ; (810a0 <xQueueReceive+0x1d0>)
80fd0: 4798 blx r3
prvLockQueue( pxQueue );
80fd2: 4b2d ldr r3, [pc, #180] ; (81088 <xQueueReceive+0x1b8>)
80fd4: 4798 blx r3
80fd6: 6abb ldr r3, [r7, #40] ; 0x28
80fd8: f893 3044 ldrb.w r3, [r3, #68] ; 0x44
80fdc: b25b sxtb r3, r3
80fde: f1b3 3fff cmp.w r3, #4294967295
80fe2: d103 bne.n 80fec <xQueueReceive+0x11c>
80fe4: 6abb ldr r3, [r7, #40] ; 0x28
80fe6: 2200 movs r2, #0
80fe8: f883 2044 strb.w r2, [r3, #68] ; 0x44
80fec: 6abb ldr r3, [r7, #40] ; 0x28
80fee: f893 3045 ldrb.w r3, [r3, #69] ; 0x45
80ff2: b25b sxtb r3, r3
80ff4: f1b3 3fff cmp.w r3, #4294967295
80ff8: d103 bne.n 81002 <xQueueReceive+0x132>
80ffa: 6abb ldr r3, [r7, #40] ; 0x28
80ffc: 2200 movs r2, #0
80ffe: f883 2045 strb.w r2, [r3, #69] ; 0x45
81002: 4b25 ldr r3, [pc, #148] ; (81098 <xQueueReceive+0x1c8>)
81004: 4798 blx r3
/* Update the timeout state to see if it has expired yet. */
if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
81006: 1d3a adds r2, r7, #4
81008: f107 0310 add.w r3, r7, #16
8100c: 4611 mov r1, r2
8100e: 4618 mov r0, r3
81010: 4b24 ldr r3, [pc, #144] ; (810a4 <xQueueReceive+0x1d4>)
81012: 4798 blx r3
81014: 4603 mov r3, r0
81016: 2b00 cmp r3, #0
81018: d123 bne.n 81062 <xQueueReceive+0x192>
{
/* The timeout has not expired. If the queue is still empty place
the task on the list of tasks waiting to receive from the queue. */
if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
8101a: 6ab8 ldr r0, [r7, #40] ; 0x28
8101c: 4b22 ldr r3, [pc, #136] ; (810a8 <xQueueReceive+0x1d8>)
8101e: 4798 blx r3
81020: 4603 mov r3, r0
81022: 2b00 cmp r3, #0
81024: d017 beq.n 81056 <xQueueReceive+0x186>
{
traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
81026: 6abb ldr r3, [r7, #40] ; 0x28
81028: 3324 adds r3, #36 ; 0x24
8102a: 687a ldr r2, [r7, #4]
8102c: 4611 mov r1, r2
8102e: 4618 mov r0, r3
81030: 4b1e ldr r3, [pc, #120] ; (810ac <xQueueReceive+0x1dc>)
81032: 4798 blx r3
prvUnlockQueue( pxQueue );
81034: 6ab8 ldr r0, [r7, #40] ; 0x28
81036: 4b1e ldr r3, [pc, #120] ; (810b0 <xQueueReceive+0x1e0>)
81038: 4798 blx r3
if( xTaskResumeAll() == pdFALSE )
8103a: 4b1e ldr r3, [pc, #120] ; (810b4 <xQueueReceive+0x1e4>)
8103c: 4798 blx r3
8103e: 4603 mov r3, r0
81040: 2b00 cmp r3, #0
81042: d189 bne.n 80f58 <xQueueReceive+0x88>
{
portYIELD_WITHIN_API();
81044: 4b13 ldr r3, [pc, #76] ; (81094 <xQueueReceive+0x1c4>)
81046: f04f 5280 mov.w r2, #268435456 ; 0x10000000
8104a: 601a str r2, [r3, #0]
8104c: f3bf 8f4f dsb sy
81050: f3bf 8f6f isb sy
81054: e780 b.n 80f58 <xQueueReceive+0x88>
}
else
{
/* The queue contains data again. Loop back to try and read the
data. */
prvUnlockQueue( pxQueue );
81056: 6ab8 ldr r0, [r7, #40] ; 0x28
81058: 4b15 ldr r3, [pc, #84] ; (810b0 <xQueueReceive+0x1e0>)
8105a: 4798 blx r3
( void ) xTaskResumeAll();
8105c: 4b15 ldr r3, [pc, #84] ; (810b4 <xQueueReceive+0x1e4>)
8105e: 4798 blx r3
81060: e77a b.n 80f58 <xQueueReceive+0x88>
}
else
{
/* Timed out. If there is no data in the queue exit, otherwise loop
back and attempt to read the data. */
prvUnlockQueue( pxQueue );
81062: 6ab8 ldr r0, [r7, #40] ; 0x28
81064: 4b12 ldr r3, [pc, #72] ; (810b0 <xQueueReceive+0x1e0>)
81066: 4798 blx r3
( void ) xTaskResumeAll();
81068: 4b12 ldr r3, [pc, #72] ; (810b4 <xQueueReceive+0x1e4>)
8106a: 4798 blx r3
if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
8106c: 6ab8 ldr r0, [r7, #40] ; 0x28
8106e: 4b0e ldr r3, [pc, #56] ; (810a8 <xQueueReceive+0x1d8>)
81070: 4798 blx r3
81072: 4603 mov r3, r0
81074: 2b00 cmp r3, #0
81076: f43f af6f beq.w 80f58 <xQueueReceive+0x88>
{
traceQUEUE_RECEIVE_FAILED( pxQueue );
return errQUEUE_EMPTY;
8107a: 2300 movs r3, #0
{
mtCOVERAGE_TEST_MARKER();
}
}
} /*lint -restore */
}
8107c: 4618 mov r0, r3
8107e: 3730 adds r7, #48 ; 0x30
81080: 46bd mov sp, r7
81082: bd80 pop {r7, pc}
81084: 00081f35 .word 0x00081f35
81088: 000807e9 .word 0x000807e9
8108c: 000811d9 .word 0x000811d9
81090: 00081bcd .word 0x00081bcd
81094: e000ed04 .word 0xe000ed04
81098: 00080845 .word 0x00080845
8109c: 00081c99 .word 0x00081c99
810a0: 00081705 .word 0x00081705
810a4: 00081cc5 .word 0x00081cc5
810a8: 000812dd .word 0x000812dd
810ac: 00081b21 .word 0x00081b21
810b0: 00081229 .word 0x00081229
810b4: 00081721 .word 0x00081721
000810b8 <uxQueueMessagesWaiting>:
return xReturn;
}
/*-----------------------------------------------------------*/
UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue )
{
810b8: b580 push {r7, lr}
810ba: b084 sub sp, #16
810bc: af00 add r7, sp, #0
810be: 6078 str r0, [r7, #4]
UBaseType_t uxReturn;
configASSERT( xQueue );
810c0: 687b ldr r3, [r7, #4]
810c2: 2b00 cmp r3, #0
810c4: d109 bne.n 810da <uxQueueMessagesWaiting+0x22>
810c6: f04f 03a0 mov.w r3, #160 ; 0xa0
810ca: f383 8811 msr BASEPRI, r3
810ce: f3bf 8f6f isb sy
810d2: f3bf 8f4f dsb sy
810d6: 60bb str r3, [r7, #8]
810d8: e7fe b.n 810d8 <uxQueueMessagesWaiting+0x20>
taskENTER_CRITICAL();
810da: 4b06 ldr r3, [pc, #24] ; (810f4 <uxQueueMessagesWaiting+0x3c>)
810dc: 4798 blx r3
{
uxReturn = ( ( Queue_t * ) xQueue )->uxMessagesWaiting;
810de: 687b ldr r3, [r7, #4]
810e0: 6b9b ldr r3, [r3, #56] ; 0x38
810e2: 60fb str r3, [r7, #12]
}
taskEXIT_CRITICAL();
810e4: 4b04 ldr r3, [pc, #16] ; (810f8 <uxQueueMessagesWaiting+0x40>)
810e6: 4798 blx r3
return uxReturn;
810e8: 68fb ldr r3, [r7, #12]
} /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
810ea: 4618 mov r0, r3
810ec: 3710 adds r7, #16
810ee: 46bd mov sp, r7
810f0: bd80 pop {r7, pc}
810f2: bf00 nop
810f4: 000807e9 .word 0x000807e9
810f8: 00080845 .word 0x00080845
000810fc <prvCopyDataToQueue>:
#endif /* configUSE_MUTEXES */
/*-----------------------------------------------------------*/
static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
{
810fc: b580 push {r7, lr}
810fe: b086 sub sp, #24
81100: af00 add r7, sp, #0
81102: 60f8 str r0, [r7, #12]
81104: 60b9 str r1, [r7, #8]
81106: 607a str r2, [r7, #4]
BaseType_t xReturn = pdFALSE;
81108: 2300 movs r3, #0
8110a: 617b str r3, [r7, #20]
UBaseType_t uxMessagesWaiting;
/* This function is called from a critical section. */
uxMessagesWaiting = pxQueue->uxMessagesWaiting;
8110c: 68fb ldr r3, [r7, #12]
8110e: 6b9b ldr r3, [r3, #56] ; 0x38
81110: 613b str r3, [r7, #16]
if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
81112: 68fb ldr r3, [r7, #12]
81114: 6c1b ldr r3, [r3, #64] ; 0x40
81116: 2b00 cmp r3, #0
81118: d10d bne.n 81136 <prvCopyDataToQueue+0x3a>
{
#if ( configUSE_MUTEXES == 1 )
{
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
8111a: 68fb ldr r3, [r7, #12]
8111c: 681b ldr r3, [r3, #0]
8111e: 2b00 cmp r3, #0
81120: d14d bne.n 811be <prvCopyDataToQueue+0xc2>
{
/* The mutex is no longer being held. */
xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
81122: 68fb ldr r3, [r7, #12]
81124: 689b ldr r3, [r3, #8]
81126: 4618 mov r0, r3
81128: 4b29 ldr r3, [pc, #164] ; (811d0 <prvCopyDataToQueue+0xd4>)
8112a: 4798 blx r3
8112c: 6178 str r0, [r7, #20]
pxQueue->u.xSemaphore.xMutexHolder = NULL;
8112e: 68fb ldr r3, [r7, #12]
81130: 2200 movs r2, #0
81132: 609a str r2, [r3, #8]
81134: e043 b.n 811be <prvCopyDataToQueue+0xc2>
mtCOVERAGE_TEST_MARKER();
}
}
#endif /* configUSE_MUTEXES */
}
else if( xPosition == queueSEND_TO_BACK )
81136: 687b ldr r3, [r7, #4]
81138: 2b00 cmp r3, #0
8113a: d119 bne.n 81170 <prvCopyDataToQueue+0x74>
{
( void ) memcpy( ( void * ) pxQueue->pcWriteTo, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports, plus previous logic ensures a null pointer can only be passed to memcpy() if the copy size is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
8113c: 68fb ldr r3, [r7, #12]
8113e: 6858 ldr r0, [r3, #4]
81140: 68fb ldr r3, [r7, #12]
81142: 6c1b ldr r3, [r3, #64] ; 0x40
81144: 461a mov r2, r3
81146: 68b9 ldr r1, [r7, #8]
81148: 4b22 ldr r3, [pc, #136] ; (811d4 <prvCopyDataToQueue+0xd8>)
8114a: 4798 blx r3
pxQueue->pcWriteTo += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
8114c: 68fb ldr r3, [r7, #12]
8114e: 685a ldr r2, [r3, #4]
81150: 68fb ldr r3, [r7, #12]
81152: 6c1b ldr r3, [r3, #64] ; 0x40
81154: 441a add r2, r3
81156: 68fb ldr r3, [r7, #12]
81158: 605a str r2, [r3, #4]
if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
8115a: 68fb ldr r3, [r7, #12]
8115c: 685a ldr r2, [r3, #4]
8115e: 68fb ldr r3, [r7, #12]
81160: 689b ldr r3, [r3, #8]
81162: 429a cmp r2, r3
81164: d32b bcc.n 811be <prvCopyDataToQueue+0xc2>
{
pxQueue->pcWriteTo = pxQueue->pcHead;
81166: 68fb ldr r3, [r7, #12]
81168: 681a ldr r2, [r3, #0]
8116a: 68fb ldr r3, [r7, #12]
8116c: 605a str r2, [r3, #4]
8116e: e026 b.n 811be <prvCopyDataToQueue+0xc2>
mtCOVERAGE_TEST_MARKER();
}
}
else
{
( void ) memcpy( ( void * ) pxQueue->u.xQueue.pcReadFrom, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e9087 !e418 MISRA exception as the casts are only redundant for some ports. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. Assert checks null pointer only used when length is 0. */
81170: 68fb ldr r3, [r7, #12]
81172: 68d8 ldr r0, [r3, #12]
81174: 68fb ldr r3, [r7, #12]
81176: 6c1b ldr r3, [r3, #64] ; 0x40
81178: 461a mov r2, r3
8117a: 68b9 ldr r1, [r7, #8]
8117c: 4b15 ldr r3, [pc, #84] ; (811d4 <prvCopyDataToQueue+0xd8>)
8117e: 4798 blx r3
pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
81180: 68fb ldr r3, [r7, #12]
81182: 68da ldr r2, [r3, #12]
81184: 68fb ldr r3, [r7, #12]
81186: 6c1b ldr r3, [r3, #64] ; 0x40
81188: 425b negs r3, r3
8118a: 441a add r2, r3
8118c: 68fb ldr r3, [r7, #12]
8118e: 60da str r2, [r3, #12]
if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
81190: 68fb ldr r3, [r7, #12]
81192: 68da ldr r2, [r3, #12]
81194: 68fb ldr r3, [r7, #12]
81196: 681b ldr r3, [r3, #0]
81198: 429a cmp r2, r3
8119a: d207 bcs.n 811ac <prvCopyDataToQueue+0xb0>
{
pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
8119c: 68fb ldr r3, [r7, #12]
8119e: 689a ldr r2, [r3, #8]
811a0: 68fb ldr r3, [r7, #12]
811a2: 6c1b ldr r3, [r3, #64] ; 0x40
811a4: 425b negs r3, r3
811a6: 441a add r2, r3
811a8: 68fb ldr r3, [r7, #12]
811aa: 60da str r2, [r3, #12]
else
{
mtCOVERAGE_TEST_MARKER();
}
if( xPosition == queueOVERWRITE )
811ac: 687b ldr r3, [r7, #4]
811ae: 2b02 cmp r3, #2
811b0: d105 bne.n 811be <prvCopyDataToQueue+0xc2>
{
if( uxMessagesWaiting > ( UBaseType_t ) 0 )
811b2: 693b ldr r3, [r7, #16]
811b4: 2b00 cmp r3, #0
811b6: d002 beq.n 811be <prvCopyDataToQueue+0xc2>
{
/* An item is not being added but overwritten, so subtract
one from the recorded number of items in the queue so when
one is added again below the number of recorded items remains
correct. */
--uxMessagesWaiting;
811b8: 693b ldr r3, [r7, #16]
811ba: 3b01 subs r3, #1
811bc: 613b str r3, [r7, #16]
{
mtCOVERAGE_TEST_MARKER();
}
}
pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
811be: 693b ldr r3, [r7, #16]
811c0: 1c5a adds r2, r3, #1
811c2: 68fb ldr r3, [r7, #12]
811c4: 639a str r2, [r3, #56] ; 0x38
return xReturn;
811c6: 697b ldr r3, [r7, #20]
}
811c8: 4618 mov r0, r3
811ca: 3718 adds r7, #24
811cc: 46bd mov sp, r7
811ce: bd80 pop {r7, pc}
811d0: 00081f71 .word 0x00081f71
811d4: 00082829 .word 0x00082829
000811d8 <prvCopyDataFromQueue>:
/*-----------------------------------------------------------*/
static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
{
811d8: b580 push {r7, lr}
811da: b082 sub sp, #8
811dc: af00 add r7, sp, #0
811de: 6078 str r0, [r7, #4]
811e0: 6039 str r1, [r7, #0]
if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
811e2: 687b ldr r3, [r7, #4]
811e4: 6c1b ldr r3, [r3, #64] ; 0x40
811e6: 2b00 cmp r3, #0
811e8: d018 beq.n 8121c <prvCopyDataFromQueue+0x44>
{
pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
811ea: 687b ldr r3, [r7, #4]
811ec: 68da ldr r2, [r3, #12]
811ee: 687b ldr r3, [r7, #4]
811f0: 6c1b ldr r3, [r3, #64] ; 0x40
811f2: 441a add r2, r3
811f4: 687b ldr r3, [r7, #4]
811f6: 60da str r2, [r3, #12]
if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
811f8: 687b ldr r3, [r7, #4]
811fa: 68da ldr r2, [r3, #12]
811fc: 687b ldr r3, [r7, #4]
811fe: 689b ldr r3, [r3, #8]
81200: 429a cmp r2, r3
81202: d303 bcc.n 8120c <prvCopyDataFromQueue+0x34>
{
pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
81204: 687b ldr r3, [r7, #4]
81206: 681a ldr r2, [r3, #0]
81208: 687b ldr r3, [r7, #4]
8120a: 60da str r2, [r3, #12]
}
else
{
mtCOVERAGE_TEST_MARKER();
}
( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports. Also previous logic ensures a null pointer can only be passed to memcpy() when the count is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
8120c: 687b ldr r3, [r7, #4]
8120e: 68d9 ldr r1, [r3, #12]
81210: 687b ldr r3, [r7, #4]
81212: 6c1b ldr r3, [r3, #64] ; 0x40
81214: 461a mov r2, r3
81216: 6838 ldr r0, [r7, #0]
81218: 4b02 ldr r3, [pc, #8] ; (81224 <prvCopyDataFromQueue+0x4c>)
8121a: 4798 blx r3
}
}
8121c: bf00 nop
8121e: 3708 adds r7, #8
81220: 46bd mov sp, r7
81222: bd80 pop {r7, pc}
81224: 00082829 .word 0x00082829
00081228 <prvUnlockQueue>:
/*-----------------------------------------------------------*/
static void prvUnlockQueue( Queue_t * const pxQueue )
{
81228: b580 push {r7, lr}
8122a: b084 sub sp, #16
8122c: af00 add r7, sp, #0
8122e: 6078 str r0, [r7, #4]
/* The lock counts contains the number of extra data items placed or
removed from the queue while the queue was locked. When a queue is
locked items can be added or removed, but the event lists cannot be
updated. */
taskENTER_CRITICAL();
81230: 4b26 ldr r3, [pc, #152] ; (812cc <prvUnlockQueue+0xa4>)
81232: 4798 blx r3
{
int8_t cTxLock = pxQueue->cTxLock;
81234: 687b ldr r3, [r7, #4]
81236: f893 3045 ldrb.w r3, [r3, #69] ; 0x45
8123a: 73fb strb r3, [r7, #15]
/* See if data was added to the queue while it was locked. */
while( cTxLock > queueLOCKED_UNMODIFIED )
8123c: e011 b.n 81262 <prvUnlockQueue+0x3a>
}
#else /* configUSE_QUEUE_SETS */
{
/* Tasks that are removed from the event list will get added to
the pending ready list as the scheduler is still suspended. */
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
8123e: 687b ldr r3, [r7, #4]
81240: 6a5b ldr r3, [r3, #36] ; 0x24
81242: 2b00 cmp r3, #0
81244: d012 beq.n 8126c <prvUnlockQueue+0x44>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
81246: 687b ldr r3, [r7, #4]
81248: 3324 adds r3, #36 ; 0x24
8124a: 4618 mov r0, r3
8124c: 4b20 ldr r3, [pc, #128] ; (812d0 <prvUnlockQueue+0xa8>)
8124e: 4798 blx r3
81250: 4603 mov r3, r0
81252: 2b00 cmp r3, #0
81254: d001 beq.n 8125a <prvUnlockQueue+0x32>
{
/* The task waiting has a higher priority so record that
a context switch is required. */
vTaskMissedYield();
81256: 4b1f ldr r3, [pc, #124] ; (812d4 <prvUnlockQueue+0xac>)
81258: 4798 blx r3
break;
}
}
#endif /* configUSE_QUEUE_SETS */
--cTxLock;
8125a: 7bfb ldrb r3, [r7, #15]
8125c: 3b01 subs r3, #1
8125e: b2db uxtb r3, r3
81260: 73fb strb r3, [r7, #15]
while( cTxLock > queueLOCKED_UNMODIFIED )
81262: f997 300f ldrsb.w r3, [r7, #15]
81266: 2b00 cmp r3, #0
81268: dce9 bgt.n 8123e <prvUnlockQueue+0x16>
8126a: e000 b.n 8126e <prvUnlockQueue+0x46>
break;
8126c: bf00 nop
}
pxQueue->cTxLock = queueUNLOCKED;
8126e: 687b ldr r3, [r7, #4]
81270: 22ff movs r2, #255 ; 0xff
81272: f883 2045 strb.w r2, [r3, #69] ; 0x45
}
taskEXIT_CRITICAL();
81276: 4b18 ldr r3, [pc, #96] ; (812d8 <prvUnlockQueue+0xb0>)
81278: 4798 blx r3
/* Do the same for the Rx lock. */
taskENTER_CRITICAL();
8127a: 4b14 ldr r3, [pc, #80] ; (812cc <prvUnlockQueue+0xa4>)
8127c: 4798 blx r3
{
int8_t cRxLock = pxQueue->cRxLock;
8127e: 687b ldr r3, [r7, #4]
81280: f893 3044 ldrb.w r3, [r3, #68] ; 0x44
81284: 73bb strb r3, [r7, #14]
while( cRxLock > queueLOCKED_UNMODIFIED )
81286: e011 b.n 812ac <prvUnlockQueue+0x84>
{
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
81288: 687b ldr r3, [r7, #4]
8128a: 691b ldr r3, [r3, #16]
8128c: 2b00 cmp r3, #0
8128e: d012 beq.n 812b6 <prvUnlockQueue+0x8e>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
81290: 687b ldr r3, [r7, #4]
81292: 3310 adds r3, #16
81294: 4618 mov r0, r3
81296: 4b0e ldr r3, [pc, #56] ; (812d0 <prvUnlockQueue+0xa8>)
81298: 4798 blx r3
8129a: 4603 mov r3, r0
8129c: 2b00 cmp r3, #0
8129e: d001 beq.n 812a4 <prvUnlockQueue+0x7c>
{
vTaskMissedYield();
812a0: 4b0c ldr r3, [pc, #48] ; (812d4 <prvUnlockQueue+0xac>)
812a2: 4798 blx r3
else
{
mtCOVERAGE_TEST_MARKER();
}
--cRxLock;
812a4: 7bbb ldrb r3, [r7, #14]
812a6: 3b01 subs r3, #1
812a8: b2db uxtb r3, r3
812aa: 73bb strb r3, [r7, #14]
while( cRxLock > queueLOCKED_UNMODIFIED )
812ac: f997 300e ldrsb.w r3, [r7, #14]
812b0: 2b00 cmp r3, #0
812b2: dce9 bgt.n 81288 <prvUnlockQueue+0x60>
812b4: e000 b.n 812b8 <prvUnlockQueue+0x90>
}
else
{
break;
812b6: bf00 nop
}
}
pxQueue->cRxLock = queueUNLOCKED;
812b8: 687b ldr r3, [r7, #4]
812ba: 22ff movs r2, #255 ; 0xff
812bc: f883 2044 strb.w r2, [r3, #68] ; 0x44
}
taskEXIT_CRITICAL();
812c0: 4b05 ldr r3, [pc, #20] ; (812d8 <prvUnlockQueue+0xb0>)
812c2: 4798 blx r3
}
812c4: bf00 nop
812c6: 3710 adds r7, #16
812c8: 46bd mov sp, r7
812ca: bd80 pop {r7, pc}
812cc: 000807e9 .word 0x000807e9
812d0: 00081bcd .word 0x00081bcd
812d4: 00081d91 .word 0x00081d91
812d8: 00080845 .word 0x00080845
000812dc <prvIsQueueEmpty>:
/*-----------------------------------------------------------*/
static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
{
812dc: b580 push {r7, lr}
812de: b084 sub sp, #16
812e0: af00 add r7, sp, #0
812e2: 6078 str r0, [r7, #4]
BaseType_t xReturn;
taskENTER_CRITICAL();
812e4: 4b08 ldr r3, [pc, #32] ; (81308 <prvIsQueueEmpty+0x2c>)
812e6: 4798 blx r3
{
if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
812e8: 687b ldr r3, [r7, #4]
812ea: 6b9b ldr r3, [r3, #56] ; 0x38
812ec: 2b00 cmp r3, #0
812ee: d102 bne.n 812f6 <prvIsQueueEmpty+0x1a>
{
xReturn = pdTRUE;
812f0: 2301 movs r3, #1
812f2: 60fb str r3, [r7, #12]
812f4: e001 b.n 812fa <prvIsQueueEmpty+0x1e>
}
else
{
xReturn = pdFALSE;
812f6: 2300 movs r3, #0
812f8: 60fb str r3, [r7, #12]
}
}
taskEXIT_CRITICAL();
812fa: 4b04 ldr r3, [pc, #16] ; (8130c <prvIsQueueEmpty+0x30>)
812fc: 4798 blx r3
return xReturn;
812fe: 68fb ldr r3, [r7, #12]
}
81300: 4618 mov r0, r3
81302: 3710 adds r7, #16
81304: 46bd mov sp, r7
81306: bd80 pop {r7, pc}
81308: 000807e9 .word 0x000807e9
8130c: 00080845 .word 0x00080845
00081310 <prvIsQueueFull>:
return xReturn;
} /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
/*-----------------------------------------------------------*/
static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
{
81310: b580 push {r7, lr}
81312: b084 sub sp, #16
81314: af00 add r7, sp, #0
81316: 6078 str r0, [r7, #4]
BaseType_t xReturn;
taskENTER_CRITICAL();
81318: 4b09 ldr r3, [pc, #36] ; (81340 <prvIsQueueFull+0x30>)
8131a: 4798 blx r3
{
if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
8131c: 687b ldr r3, [r7, #4]
8131e: 6b9a ldr r2, [r3, #56] ; 0x38
81320: 687b ldr r3, [r7, #4]
81322: 6bdb ldr r3, [r3, #60] ; 0x3c
81324: 429a cmp r2, r3
81326: d102 bne.n 8132e <prvIsQueueFull+0x1e>
{
xReturn = pdTRUE;
81328: 2301 movs r3, #1
8132a: 60fb str r3, [r7, #12]
8132c: e001 b.n 81332 <prvIsQueueFull+0x22>
}
else
{
xReturn = pdFALSE;
8132e: 2300 movs r3, #0
81330: 60fb str r3, [r7, #12]
}
}
taskEXIT_CRITICAL();
81332: 4b04 ldr r3, [pc, #16] ; (81344 <prvIsQueueFull+0x34>)
81334: 4798 blx r3
return xReturn;
81336: 68fb ldr r3, [r7, #12]
}
81338: 4618 mov r0, r3
8133a: 3710 adds r7, #16
8133c: 46bd mov sp, r7
8133e: bd80 pop {r7, pc}
81340: 000807e9 .word 0x000807e9
81344: 00080845 .word 0x00080845
00081348 <vQueueWaitForMessageRestricted>:
/*-----------------------------------------------------------*/
#if ( configUSE_TIMERS == 1 )
void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
{
81348: b580 push {r7, lr}
8134a: b086 sub sp, #24
8134c: af00 add r7, sp, #0
8134e: 60f8 str r0, [r7, #12]
81350: 60b9 str r1, [r7, #8]
81352: 607a str r2, [r7, #4]
Queue_t * const pxQueue = xQueue;
81354: 68fb ldr r3, [r7, #12]
81356: 617b str r3, [r7, #20]
will not actually cause the task to block, just place it on a blocked
list. It will not block until the scheduler is unlocked - at which
time a yield will be performed. If an item is added to the queue while
the queue is locked, and the calling task blocks on the queue, then the
calling task will be immediately unblocked when the queue is unlocked. */
prvLockQueue( pxQueue );
81358: 4b15 ldr r3, [pc, #84] ; (813b0 <vQueueWaitForMessageRestricted+0x68>)
8135a: 4798 blx r3
8135c: 697b ldr r3, [r7, #20]
8135e: f893 3044 ldrb.w r3, [r3, #68] ; 0x44
81362: b25b sxtb r3, r3
81364: f1b3 3fff cmp.w r3, #4294967295
81368: d103 bne.n 81372 <vQueueWaitForMessageRestricted+0x2a>
8136a: 697b ldr r3, [r7, #20]
8136c: 2200 movs r2, #0
8136e: f883 2044 strb.w r2, [r3, #68] ; 0x44
81372: 697b ldr r3, [r7, #20]
81374: f893 3045 ldrb.w r3, [r3, #69] ; 0x45
81378: b25b sxtb r3, r3
8137a: f1b3 3fff cmp.w r3, #4294967295
8137e: d103 bne.n 81388 <vQueueWaitForMessageRestricted+0x40>
81380: 697b ldr r3, [r7, #20]
81382: 2200 movs r2, #0
81384: f883 2045 strb.w r2, [r3, #69] ; 0x45
81388: 4b0a ldr r3, [pc, #40] ; (813b4 <vQueueWaitForMessageRestricted+0x6c>)
8138a: 4798 blx r3
if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
8138c: 697b ldr r3, [r7, #20]
8138e: 6b9b ldr r3, [r3, #56] ; 0x38
81390: 2b00 cmp r3, #0
81392: d106 bne.n 813a2 <vQueueWaitForMessageRestricted+0x5a>
{
/* There is nothing in the queue, block for the specified period. */
vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
81394: 697b ldr r3, [r7, #20]
81396: 3324 adds r3, #36 ; 0x24
81398: 687a ldr r2, [r7, #4]
8139a: 68b9 ldr r1, [r7, #8]
8139c: 4618 mov r0, r3
8139e: 4b06 ldr r3, [pc, #24] ; (813b8 <vQueueWaitForMessageRestricted+0x70>)
813a0: 4798 blx r3
}
else
{
mtCOVERAGE_TEST_MARKER();
}
prvUnlockQueue( pxQueue );
813a2: 6978 ldr r0, [r7, #20]
813a4: 4b05 ldr r3, [pc, #20] ; (813bc <vQueueWaitForMessageRestricted+0x74>)
813a6: 4798 blx r3
}
813a8: bf00 nop
813aa: 3718 adds r7, #24
813ac: 46bd mov sp, r7
813ae: bd80 pop {r7, pc}
813b0: 000807e9 .word 0x000807e9
813b4: 00080845 .word 0x00080845
813b8: 00081b71 .word 0x00081b71
813bc: 00081229 .word 0x00081229
000813c0 <xTaskCreate>:
const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
const configSTACK_DEPTH_TYPE usStackDepth,
void * const pvParameters,
UBaseType_t uxPriority,
TaskHandle_t * const pxCreatedTask )
{
813c0: b590 push {r4, r7, lr}
813c2: b08d sub sp, #52 ; 0x34
813c4: af04 add r7, sp, #16
813c6: 60f8 str r0, [r7, #12]
813c8: 60b9 str r1, [r7, #8]
813ca: 603b str r3, [r7, #0]
813cc: 4613 mov r3, r2
813ce: 80fb strh r3, [r7, #6]
#else /* portSTACK_GROWTH */
{
StackType_t *pxStack;
/* Allocate space for the stack used by the task being created. */
pxStack = pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation is the stack. */
813d0: 88fb ldrh r3, [r7, #6]
813d2: 009b lsls r3, r3, #2
813d4: 4618 mov r0, r3
813d6: 4b1b ldr r3, [pc, #108] ; (81444 <xTaskCreate+0x84>)
813d8: 4798 blx r3
813da: 6178 str r0, [r7, #20]
if( pxStack != NULL )
813dc: 697b ldr r3, [r7, #20]
813de: 2b00 cmp r3, #0
813e0: d00e beq.n 81400 <xTaskCreate+0x40>
{
/* Allocate space for the TCB. */
pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of TCB_t is always a pointer to the task's stack. */
813e2: 2050 movs r0, #80 ; 0x50
813e4: 4b17 ldr r3, [pc, #92] ; (81444 <xTaskCreate+0x84>)
813e6: 4798 blx r3
813e8: 61f8 str r0, [r7, #28]
if( pxNewTCB != NULL )
813ea: 69fb ldr r3, [r7, #28]
813ec: 2b00 cmp r3, #0
813ee: d003 beq.n 813f8 <xTaskCreate+0x38>
{
/* Store the stack location in the TCB. */
pxNewTCB->pxStack = pxStack;
813f0: 69fb ldr r3, [r7, #28]
813f2: 697a ldr r2, [r7, #20]
813f4: 631a str r2, [r3, #48] ; 0x30
813f6: e005 b.n 81404 <xTaskCreate+0x44>
}
else
{
/* The stack cannot be used as the TCB was not created. Free
it again. */
vPortFree( pxStack );
813f8: 6978 ldr r0, [r7, #20]
813fa: 4b13 ldr r3, [pc, #76] ; (81448 <xTaskCreate+0x88>)
813fc: 4798 blx r3
813fe: e001 b.n 81404 <xTaskCreate+0x44>
}
}
else
{
pxNewTCB = NULL;
81400: 2300 movs r3, #0
81402: 61fb str r3, [r7, #28]
}
}
#endif /* portSTACK_GROWTH */
if( pxNewTCB != NULL )
81404: 69fb ldr r3, [r7, #28]
81406: 2b00 cmp r3, #0
81408: d013 beq.n 81432 <xTaskCreate+0x72>
task was created dynamically in case it is later deleted. */
pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
}
#endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
8140a: 88fa ldrh r2, [r7, #6]
8140c: 2300 movs r3, #0
8140e: 9303 str r3, [sp, #12]
81410: 69fb ldr r3, [r7, #28]
81412: 9302 str r3, [sp, #8]
81414: 6b7b ldr r3, [r7, #52] ; 0x34
81416: 9301 str r3, [sp, #4]
81418: 6b3b ldr r3, [r7, #48] ; 0x30
8141a: 9300 str r3, [sp, #0]
8141c: 683b ldr r3, [r7, #0]
8141e: 68b9 ldr r1, [r7, #8]
81420: 68f8 ldr r0, [r7, #12]
81422: 4c0a ldr r4, [pc, #40] ; (8144c <xTaskCreate+0x8c>)
81424: 47a0 blx r4
prvAddNewTaskToReadyList( pxNewTCB );
81426: 69f8 ldr r0, [r7, #28]
81428: 4b09 ldr r3, [pc, #36] ; (81450 <xTaskCreate+0x90>)
8142a: 4798 blx r3
xReturn = pdPASS;
8142c: 2301 movs r3, #1
8142e: 61bb str r3, [r7, #24]
81430: e002 b.n 81438 <xTaskCreate+0x78>
}
else
{
xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
81432: f04f 33ff mov.w r3, #4294967295
81436: 61bb str r3, [r7, #24]
}
return xReturn;
81438: 69bb ldr r3, [r7, #24]
}
8143a: 4618 mov r0, r3
8143c: 3724 adds r7, #36 ; 0x24
8143e: 46bd mov sp, r7
81440: bd90 pop {r4, r7, pc}
81442: bf00 nop
81444: 000801f1 .word 0x000801f1
81448: 00080291 .word 0x00080291
8144c: 00081455 .word 0x00081455
81450: 0008157d .word 0x0008157d
00081454 <prvInitialiseNewTask>:
void * const pvParameters,
UBaseType_t uxPriority,
TaskHandle_t * const pxCreatedTask,
TCB_t *pxNewTCB,
const MemoryRegion_t * const xRegions )
{
81454: b580 push {r7, lr}
81456: b088 sub sp, #32
81458: af00 add r7, sp, #0
8145a: 60f8 str r0, [r7, #12]
8145c: 60b9 str r1, [r7, #8]
8145e: 607a str r2, [r7, #4]
81460: 603b str r3, [r7, #0]
/* Avoid dependency on memset() if it is not required. */
#if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
{
/* Fill the stack with a known value to assist debugging. */
( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
81462: 6b3b ldr r3, [r7, #48] ; 0x30
81464: 6b18 ldr r0, [r3, #48] ; 0x30
81466: 687b ldr r3, [r7, #4]
81468: 009b lsls r3, r3, #2
8146a: 461a mov r2, r3
8146c: 21a5 movs r1, #165 ; 0xa5
8146e: 4b40 ldr r3, [pc, #256] ; (81570 <prvInitialiseNewTask+0x11c>)
81470: 4798 blx r3
grows from high memory to low (as per the 80x86) or vice versa.
portSTACK_GROWTH is used to make the result positive or negative as required
by the port. */
#if( portSTACK_GROWTH < 0 )
{
pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
81472: 6b3b ldr r3, [r7, #48] ; 0x30
81474: 6b1a ldr r2, [r3, #48] ; 0x30
81476: 687b ldr r3, [r7, #4]
81478: f103 4380 add.w r3, r3, #1073741824 ; 0x40000000
8147c: 3b01 subs r3, #1
8147e: 009b lsls r3, r3, #2
81480: 4413 add r3, r2
81482: 61bb str r3, [r7, #24]
pxTopOfStack = ( StackType_t * ) ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) ); /*lint !e923 !e9033 !e9078 MISRA exception. Avoiding casts between pointers and integers is not practical. Size differences accounted for using portPOINTER_SIZE_TYPE type. Checked by assert(). */
81484: 69bb ldr r3, [r7, #24]
81486: f023 0307 bic.w r3, r3, #7
8148a: 61bb str r3, [r7, #24]
/* Check the alignment of the calculated top of stack is correct. */
configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
8148c: 69bb ldr r3, [r7, #24]
8148e: f003 0307 and.w r3, r3, #7
81492: 2b00 cmp r3, #0
81494: d009 beq.n 814aa <prvInitialiseNewTask+0x56>
81496: f04f 03a0 mov.w r3, #160 ; 0xa0
8149a: f383 8811 msr BASEPRI, r3
8149e: f3bf 8f6f isb sy
814a2: f3bf 8f4f dsb sy
814a6: 617b str r3, [r7, #20]
814a8: e7fe b.n 814a8 <prvInitialiseNewTask+0x54>
pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
}
#endif /* portSTACK_GROWTH */
/* Store the task name in the TCB. */
if( pcName != NULL )
814aa: 68bb ldr r3, [r7, #8]
814ac: 2b00 cmp r3, #0
814ae: d01f beq.n 814f0 <prvInitialiseNewTask+0x9c>
{
for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
814b0: 2300 movs r3, #0
814b2: 61fb str r3, [r7, #28]
814b4: e012 b.n 814dc <prvInitialiseNewTask+0x88>
{
pxNewTCB->pcTaskName[ x ] = pcName[ x ];
814b6: 68ba ldr r2, [r7, #8]
814b8: 69fb ldr r3, [r7, #28]
814ba: 4413 add r3, r2
814bc: 7819 ldrb r1, [r3, #0]
814be: 6b3a ldr r2, [r7, #48] ; 0x30
814c0: 69fb ldr r3, [r7, #28]
814c2: 4413 add r3, r2
814c4: 3334 adds r3, #52 ; 0x34
814c6: 460a mov r2, r1
814c8: 701a strb r2, [r3, #0]
/* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
configMAX_TASK_NAME_LEN characters just in case the memory after the
string is not accessible (extremely unlikely). */
if( pcName[ x ] == ( char ) 0x00 )
814ca: 68ba ldr r2, [r7, #8]
814cc: 69fb ldr r3, [r7, #28]
814ce: 4413 add r3, r2
814d0: 781b ldrb r3, [r3, #0]
814d2: 2b00 cmp r3, #0
814d4: d006 beq.n 814e4 <prvInitialiseNewTask+0x90>
for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
814d6: 69fb ldr r3, [r7, #28]
814d8: 3301 adds r3, #1
814da: 61fb str r3, [r7, #28]
814dc: 69fb ldr r3, [r7, #28]
814de: 2b09 cmp r3, #9
814e0: d9e9 bls.n 814b6 <prvInitialiseNewTask+0x62>
814e2: e000 b.n 814e6 <prvInitialiseNewTask+0x92>
{
break;
814e4: bf00 nop
}
}
/* Ensure the name string is terminated in the case that the string length
was greater or equal to configMAX_TASK_NAME_LEN. */
pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
814e6: 6b3b ldr r3, [r7, #48] ; 0x30
814e8: 2200 movs r2, #0
814ea: f883 203d strb.w r2, [r3, #61] ; 0x3d
814ee: e003 b.n 814f8 <prvInitialiseNewTask+0xa4>
}
else
{
/* The task has not been given a name, so just ensure there is a NULL
terminator when it is read out. */
pxNewTCB->pcTaskName[ 0 ] = 0x00;
814f0: 6b3b ldr r3, [r7, #48] ; 0x30
814f2: 2200 movs r2, #0
814f4: f883 2034 strb.w r2, [r3, #52] ; 0x34
}
/* This is used as an array index so must ensure it's not too large. First
remove the privilege bit if one is present. */
if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
814f8: 6abb ldr r3, [r7, #40] ; 0x28
814fa: 2b04 cmp r3, #4
814fc: d901 bls.n 81502 <prvInitialiseNewTask+0xae>
{
uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
814fe: 2304 movs r3, #4
81500: 62bb str r3, [r7, #40] ; 0x28
else
{
mtCOVERAGE_TEST_MARKER();
}
pxNewTCB->uxPriority = uxPriority;
81502: 6b3b ldr r3, [r7, #48] ; 0x30
81504: 6aba ldr r2, [r7, #40] ; 0x28
81506: 62da str r2, [r3, #44] ; 0x2c
#if ( configUSE_MUTEXES == 1 )
{
pxNewTCB->uxBasePriority = uxPriority;
81508: 6b3b ldr r3, [r7, #48] ; 0x30
8150a: 6aba ldr r2, [r7, #40] ; 0x28
8150c: 641a str r2, [r3, #64] ; 0x40
pxNewTCB->uxMutexesHeld = 0;
8150e: 6b3b ldr r3, [r7, #48] ; 0x30
81510: 2200 movs r2, #0
81512: 645a str r2, [r3, #68] ; 0x44
}
#endif /* configUSE_MUTEXES */
vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
81514: 6b3b ldr r3, [r7, #48] ; 0x30
81516: 3304 adds r3, #4
81518: 4618 mov r0, r3
8151a: 4b16 ldr r3, [pc, #88] ; (81574 <prvInitialiseNewTask+0x120>)
8151c: 4798 blx r3
vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
8151e: 6b3b ldr r3, [r7, #48] ; 0x30
81520: 3318 adds r3, #24
81522: 4618 mov r0, r3
81524: 4b13 ldr r3, [pc, #76] ; (81574 <prvInitialiseNewTask+0x120>)
81526: 4798 blx r3
/* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
back to the containing TCB from a generic item in a list. */
listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
81528: 6b3b ldr r3, [r7, #48] ; 0x30
8152a: 6b3a ldr r2, [r7, #48] ; 0x30
8152c: 611a str r2, [r3, #16]
/* Event lists are always in priority order. */
listSET_LIST_ITEM_VALUE( &( pxNewTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
8152e: 6abb ldr r3, [r7, #40] ; 0x28
81530: f1c3 0205 rsb r2, r3, #5
81534: 6b3b ldr r3, [r7, #48] ; 0x30
81536: 619a str r2, [r3, #24]
listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
81538: 6b3b ldr r3, [r7, #48] ; 0x30
8153a: 6b3a ldr r2, [r7, #48] ; 0x30
8153c: 625a str r2, [r3, #36] ; 0x24
}
#endif
#if ( configUSE_TASK_NOTIFICATIONS == 1 )
{
pxNewTCB->ulNotifiedValue = 0;
8153e: 6b3b ldr r3, [r7, #48] ; 0x30
81540: 2200 movs r2, #0
81542: 649a str r2, [r3, #72] ; 0x48
pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
81544: 6b3b ldr r3, [r7, #48] ; 0x30
81546: 2200 movs r2, #0
81548: f883 204c strb.w r2, [r3, #76] ; 0x4c
}
#endif /* portSTACK_GROWTH */
}
#else /* portHAS_STACK_OVERFLOW_CHECKING */
{
pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
8154c: 683a ldr r2, [r7, #0]
8154e: 68f9 ldr r1, [r7, #12]
81550: 69b8 ldr r0, [r7, #24]
81552: 4b09 ldr r3, [pc, #36] ; (81578 <prvInitialiseNewTask+0x124>)
81554: 4798 blx r3
81556: 4602 mov r2, r0
81558: 6b3b ldr r3, [r7, #48] ; 0x30
8155a: 601a str r2, [r3, #0]
}
#endif /* portHAS_STACK_OVERFLOW_CHECKING */
}
#endif /* portUSING_MPU_WRAPPERS */
if( pxCreatedTask != NULL )
8155c: 6afb ldr r3, [r7, #44] ; 0x2c
8155e: 2b00 cmp r3, #0
81560: d002 beq.n 81568 <prvInitialiseNewTask+0x114>
{
/* Pass the handle out in an anonymous way. The handle can be used to
change the created task's priority, delete the created task, etc.*/
*pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
81562: 6afb ldr r3, [r7, #44] ; 0x2c
81564: 6b3a ldr r2, [r7, #48] ; 0x30
81566: 601a str r2, [r3, #0]
}
else
{
mtCOVERAGE_TEST_MARKER();
}
}
81568: bf00 nop
8156a: 3720 adds r7, #32
8156c: 46bd mov sp, r7
8156e: bd80 pop {r7, pc}
81570: 00082915 .word 0x00082915
81574: 00080317 .word 0x00080317
81578: 00080601 .word 0x00080601
0008157c <prvAddNewTaskToReadyList>:
/*-----------------------------------------------------------*/
static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
{
8157c: b580 push {r7, lr}
8157e: b082 sub sp, #8
81580: af00 add r7, sp, #0
81582: 6078 str r0, [r7, #4]
/* Ensure interrupts don't access the task lists while the lists are being
updated. */
taskENTER_CRITICAL();
81584: 4b2b ldr r3, [pc, #172] ; (81634 <prvAddNewTaskToReadyList+0xb8>)
81586: 4798 blx r3
{
uxCurrentNumberOfTasks++;
81588: 4b2b ldr r3, [pc, #172] ; (81638 <prvAddNewTaskToReadyList+0xbc>)
8158a: 681b ldr r3, [r3, #0]
8158c: 3301 adds r3, #1
8158e: 4a2a ldr r2, [pc, #168] ; (81638 <prvAddNewTaskToReadyList+0xbc>)
81590: 6013 str r3, [r2, #0]
if( pxCurrentTCB == NULL )
81592: 4b2a ldr r3, [pc, #168] ; (8163c <prvAddNewTaskToReadyList+0xc0>)
81594: 681b ldr r3, [r3, #0]
81596: 2b00 cmp r3, #0
81598: d109 bne.n 815ae <prvAddNewTaskToReadyList+0x32>
{
/* There are no other tasks, or all the other tasks are in
the suspended state - make this the current task. */
pxCurrentTCB = pxNewTCB;
8159a: 4a28 ldr r2, [pc, #160] ; (8163c <prvAddNewTaskToReadyList+0xc0>)
8159c: 687b ldr r3, [r7, #4]
8159e: 6013 str r3, [r2, #0]
if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
815a0: 4b25 ldr r3, [pc, #148] ; (81638 <prvAddNewTaskToReadyList+0xbc>)
815a2: 681b ldr r3, [r3, #0]
815a4: 2b01 cmp r3, #1
815a6: d110 bne.n 815ca <prvAddNewTaskToReadyList+0x4e>
{
/* This is the first task to be created so do the preliminary
initialisation required. We will not recover if this call
fails, but we will report the failure. */
prvInitialiseTaskLists();
815a8: 4b25 ldr r3, [pc, #148] ; (81640 <prvAddNewTaskToReadyList+0xc4>)
815aa: 4798 blx r3
815ac: e00d b.n 815ca <prvAddNewTaskToReadyList+0x4e>
else
{
/* If the scheduler is not already running, make this task the
current task if it is the highest priority task to be created
so far. */
if( xSchedulerRunning == pdFALSE )
815ae: 4b25 ldr r3, [pc, #148] ; (81644 <prvAddNewTaskToReadyList+0xc8>)
815b0: 681b ldr r3, [r3, #0]
815b2: 2b00 cmp r3, #0
815b4: d109 bne.n 815ca <prvAddNewTaskToReadyList+0x4e>
{
if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
815b6: 4b21 ldr r3, [pc, #132] ; (8163c <prvAddNewTaskToReadyList+0xc0>)
815b8: 681b ldr r3, [r3, #0]
815ba: 6ada ldr r2, [r3, #44] ; 0x2c
815bc: 687b ldr r3, [r7, #4]
815be: 6adb ldr r3, [r3, #44] ; 0x2c
815c0: 429a cmp r2, r3
815c2: d802 bhi.n 815ca <prvAddNewTaskToReadyList+0x4e>
{
pxCurrentTCB = pxNewTCB;
815c4: 4a1d ldr r2, [pc, #116] ; (8163c <prvAddNewTaskToReadyList+0xc0>)
815c6: 687b ldr r3, [r7, #4]
815c8: 6013 str r3, [r2, #0]
{
mtCOVERAGE_TEST_MARKER();
}
}
uxTaskNumber++;
815ca: 4b1f ldr r3, [pc, #124] ; (81648 <prvAddNewTaskToReadyList+0xcc>)
815cc: 681b ldr r3, [r3, #0]
815ce: 3301 adds r3, #1
815d0: 4a1d ldr r2, [pc, #116] ; (81648 <prvAddNewTaskToReadyList+0xcc>)
815d2: 6013 str r3, [r2, #0]
pxNewTCB->uxTCBNumber = uxTaskNumber;
}
#endif /* configUSE_TRACE_FACILITY */
traceTASK_CREATE( pxNewTCB );
prvAddTaskToReadyList( pxNewTCB );
815d4: 687b ldr r3, [r7, #4]
815d6: 6adb ldr r3, [r3, #44] ; 0x2c
815d8: 2201 movs r2, #1
815da: 409a lsls r2, r3
815dc: 4b1b ldr r3, [pc, #108] ; (8164c <prvAddNewTaskToReadyList+0xd0>)
815de: 681b ldr r3, [r3, #0]
815e0: 4313 orrs r3, r2
815e2: 4a1a ldr r2, [pc, #104] ; (8164c <prvAddNewTaskToReadyList+0xd0>)
815e4: 6013 str r3, [r2, #0]
815e6: 687b ldr r3, [r7, #4]
815e8: 6ada ldr r2, [r3, #44] ; 0x2c
815ea: 4613 mov r3, r2
815ec: 009b lsls r3, r3, #2
815ee: 4413 add r3, r2
815f0: 009b lsls r3, r3, #2
815f2: 4a17 ldr r2, [pc, #92] ; (81650 <prvAddNewTaskToReadyList+0xd4>)
815f4: 441a add r2, r3
815f6: 687b ldr r3, [r7, #4]
815f8: 3304 adds r3, #4
815fa: 4619 mov r1, r3
815fc: 4610 mov r0, r2
815fe: 4b15 ldr r3, [pc, #84] ; (81654 <prvAddNewTaskToReadyList+0xd8>)
81600: 4798 blx r3
portSETUP_TCB( pxNewTCB );
}
taskEXIT_CRITICAL();
81602: 4b15 ldr r3, [pc, #84] ; (81658 <prvAddNewTaskToReadyList+0xdc>)
81604: 4798 blx r3
if( xSchedulerRunning != pdFALSE )
81606: 4b0f ldr r3, [pc, #60] ; (81644 <prvAddNewTaskToReadyList+0xc8>)
81608: 681b ldr r3, [r3, #0]
8160a: 2b00 cmp r3, #0
8160c: d00e beq.n 8162c <prvAddNewTaskToReadyList+0xb0>
{
/* If the created task is of a higher priority than the current task
then it should run now. */
if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
8160e: 4b0b ldr r3, [pc, #44] ; (8163c <prvAddNewTaskToReadyList+0xc0>)
81610: 681b ldr r3, [r3, #0]
81612: 6ada ldr r2, [r3, #44] ; 0x2c
81614: 687b ldr r3, [r7, #4]
81616: 6adb ldr r3, [r3, #44] ; 0x2c
81618: 429a cmp r2, r3
8161a: d207 bcs.n 8162c <prvAddNewTaskToReadyList+0xb0>
{
taskYIELD_IF_USING_PREEMPTION();
8161c: 4b0f ldr r3, [pc, #60] ; (8165c <prvAddNewTaskToReadyList+0xe0>)
8161e: f04f 5280 mov.w r2, #268435456 ; 0x10000000
81622: 601a str r2, [r3, #0]
81624: f3bf 8f4f dsb sy
81628: f3bf 8f6f isb sy
}
else
{
mtCOVERAGE_TEST_MARKER();
}
}
8162c: bf00 nop
8162e: 3708 adds r7, #8
81630: 46bd mov sp, r7
81632: bd80 pop {r7, pc}
81634: 000807e9 .word 0x000807e9
81638: 2000a55c .word 0x2000a55c
8163c: 2000a484 .word 0x2000a484
81640: 00081de5 .word 0x00081de5
81644: 2000a568 .word 0x2000a568
81648: 2000a578 .word 0x2000a578
8164c: 2000a564 .word 0x2000a564
81650: 2000a488 .word 0x2000a488
81654: 0008032f .word 0x0008032f
81658: 00080845 .word 0x00080845
8165c: e000ed04 .word 0xe000ed04
00081660 <vTaskStartScheduler>:
#endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
/*-----------------------------------------------------------*/
void vTaskStartScheduler( void )
{
81660: b590 push {r4, r7, lr}
81662: b087 sub sp, #28
81664: af02 add r7, sp, #8
}
}
#else
{
/* The Idle task is being created using dynamically allocated RAM. */
xReturn = xTaskCreate( prvIdleTask,
81666: 4b1e ldr r3, [pc, #120] ; (816e0 <vTaskStartScheduler+0x80>)
81668: 9301 str r3, [sp, #4]
8166a: 2300 movs r3, #0
8166c: 9300 str r3, [sp, #0]
8166e: 2300 movs r3, #0
81670: 2282 movs r2, #130 ; 0x82
81672: 491c ldr r1, [pc, #112] ; (816e4 <vTaskStartScheduler+0x84>)
81674: 481c ldr r0, [pc, #112] ; (816e8 <vTaskStartScheduler+0x88>)
81676: 4c1d ldr r4, [pc, #116] ; (816ec <vTaskStartScheduler+0x8c>)
81678: 47a0 blx r4
8167a: 60f8 str r0, [r7, #12]
}
#endif /* configSUPPORT_STATIC_ALLOCATION */
#if ( configUSE_TIMERS == 1 )
{
if( xReturn == pdPASS )
8167c: 68fb ldr r3, [r7, #12]
8167e: 2b01 cmp r3, #1
81680: d102 bne.n 81688 <vTaskStartScheduler+0x28>
{
xReturn = xTimerCreateTimerTask();
81682: 4b1b ldr r3, [pc, #108] ; (816f0 <vTaskStartScheduler+0x90>)
81684: 4798 blx r3
81686: 60f8 str r0, [r7, #12]
mtCOVERAGE_TEST_MARKER();
}
}
#endif /* configUSE_TIMERS */
if( xReturn == pdPASS )
81688: 68fb ldr r3, [r7, #12]
8168a: 2b01 cmp r3, #1
8168c: d115 bne.n 816ba <vTaskStartScheduler+0x5a>
8168e: f04f 03a0 mov.w r3, #160 ; 0xa0
81692: f383 8811 msr BASEPRI, r3
81696: f3bf 8f6f isb sy
8169a: f3bf 8f4f dsb sy
8169e: 60bb str r3, [r7, #8]
for additional information. */
_impure_ptr = &( pxCurrentTCB->xNewLib_reent );
}
#endif /* configUSE_NEWLIB_REENTRANT */
xNextTaskUnblockTime = portMAX_DELAY;
816a0: 4b14 ldr r3, [pc, #80] ; (816f4 <vTaskStartScheduler+0x94>)
816a2: f04f 32ff mov.w r2, #4294967295
816a6: 601a str r2, [r3, #0]
xSchedulerRunning = pdTRUE;
816a8: 4b13 ldr r3, [pc, #76] ; (816f8 <vTaskStartScheduler+0x98>)
816aa: 2201 movs r2, #1
816ac: 601a str r2, [r3, #0]
xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
816ae: 4b13 ldr r3, [pc, #76] ; (816fc <vTaskStartScheduler+0x9c>)
816b0: 2200 movs r2, #0
816b2: 601a str r2, [r3, #0]
traceTASK_SWITCHED_IN();
/* Setting up the timer tick is hardware specific and thus in the
portable interface. */
if( xPortStartScheduler() != pdFALSE )
816b4: 4b12 ldr r3, [pc, #72] ; (81700 <vTaskStartScheduler+0xa0>)
816b6: 4798 blx r3
}
/* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
meaning xIdleTaskHandle is not used anywhere else. */
( void ) xIdleTaskHandle;
}
816b8: e00d b.n 816d6 <vTaskStartScheduler+0x76>
configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
816ba: 68fb ldr r3, [r7, #12]
816bc: f1b3 3fff cmp.w r3, #4294967295
816c0: d109 bne.n 816d6 <vTaskStartScheduler+0x76>
816c2: f04f 03a0 mov.w r3, #160 ; 0xa0
816c6: f383 8811 msr BASEPRI, r3
816ca: f3bf 8f6f isb sy
816ce: f3bf 8f4f dsb sy
816d2: 607b str r3, [r7, #4]
816d4: e7fe b.n 816d4 <vTaskStartScheduler+0x74>
}
816d6: bf00 nop
816d8: 3714 adds r7, #20
816da: 46bd mov sp, r7
816dc: bd90 pop {r4, r7, pc}
816de: bf00 nop
816e0: 2000a580 .word 0x2000a580
816e4: 00082af0 .word 0x00082af0
816e8: 00081da9 .word 0x00081da9
816ec: 000813c1 .word 0x000813c1
816f0: 00082159 .word 0x00082159
816f4: 2000a57c .word 0x2000a57c
816f8: 2000a568 .word 0x2000a568
816fc: 2000a560 .word 0x2000a560
81700: 000806f9 .word 0x000806f9
00081704 <vTaskSuspendAll>:
vPortEndScheduler();
}
/*----------------------------------------------------------*/
void vTaskSuspendAll( void )
{
81704: b480 push {r7}
81706: af00 add r7, sp, #0
do not otherwise exhibit real time behaviour. */
portSOFTWARE_BARRIER();
/* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
is used to allow calls to vTaskSuspendAll() to nest. */
++uxSchedulerSuspended;
81708: 4b04 ldr r3, [pc, #16] ; (8171c <vTaskSuspendAll+0x18>)
8170a: 681b ldr r3, [r3, #0]
8170c: 3301 adds r3, #1
8170e: 4a03 ldr r2, [pc, #12] ; (8171c <vTaskSuspendAll+0x18>)
81710: 6013 str r3, [r2, #0]
/* Enforces ordering for ports and optimised compilers that may otherwise place
the above increment elsewhere. */
portMEMORY_BARRIER();
}
81712: bf00 nop
81714: 46bd mov sp, r7
81716: bc80 pop {r7}
81718: 4770 bx lr
8171a: bf00 nop
8171c: 2000a584 .word 0x2000a584
00081720 <xTaskResumeAll>:
#endif /* configUSE_TICKLESS_IDLE */
/*----------------------------------------------------------*/
BaseType_t xTaskResumeAll( void )
{
81720: b580 push {r7, lr}
81722: b084 sub sp, #16
81724: af00 add r7, sp, #0
TCB_t *pxTCB = NULL;
81726: 2300 movs r3, #0
81728: 60fb str r3, [r7, #12]
BaseType_t xAlreadyYielded = pdFALSE;
8172a: 2300 movs r3, #0
8172c: 60bb str r3, [r7, #8]
/* If uxSchedulerSuspended is zero then this function does not match a
previous call to vTaskSuspendAll(). */
configASSERT( uxSchedulerSuspended );
8172e: 4b41 ldr r3, [pc, #260] ; (81834 <xTaskResumeAll+0x114>)
81730: 681b ldr r3, [r3, #0]
81732: 2b00 cmp r3, #0
81734: d109 bne.n 8174a <xTaskResumeAll+0x2a>
81736: f04f 03a0 mov.w r3, #160 ; 0xa0
8173a: f383 8811 msr BASEPRI, r3
8173e: f3bf 8f6f isb sy
81742: f3bf 8f4f dsb sy
81746: 603b str r3, [r7, #0]
81748: e7fe b.n 81748 <xTaskResumeAll+0x28>
/* It is possible that an ISR caused a task to be removed from an event
list while the scheduler was suspended. If this was the case then the
removed task will have been added to the xPendingReadyList. Once the
scheduler has been resumed it is safe to move all the pending ready
tasks from this list into their appropriate ready list. */
taskENTER_CRITICAL();
8174a: 4b3b ldr r3, [pc, #236] ; (81838 <xTaskResumeAll+0x118>)
8174c: 4798 blx r3
{
--uxSchedulerSuspended;
8174e: 4b39 ldr r3, [pc, #228] ; (81834 <xTaskResumeAll+0x114>)
81750: 681b ldr r3, [r3, #0]
81752: 3b01 subs r3, #1
81754: 4a37 ldr r2, [pc, #220] ; (81834 <xTaskResumeAll+0x114>)
81756: 6013 str r3, [r2, #0]
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
81758: 4b36 ldr r3, [pc, #216] ; (81834 <xTaskResumeAll+0x114>)
8175a: 681b ldr r3, [r3, #0]
8175c: 2b00 cmp r3, #0
8175e: d161 bne.n 81824 <xTaskResumeAll+0x104>
{
if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
81760: 4b36 ldr r3, [pc, #216] ; (8183c <xTaskResumeAll+0x11c>)
81762: 681b ldr r3, [r3, #0]
81764: 2b00 cmp r3, #0
81766: d05d beq.n 81824 <xTaskResumeAll+0x104>
{
/* Move any readied tasks from the pending list into the
appropriate ready list. */
while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
81768: e02e b.n 817c8 <xTaskResumeAll+0xa8>
{
pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xPendingReadyList ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
8176a: 4b35 ldr r3, [pc, #212] ; (81840 <xTaskResumeAll+0x120>)
8176c: 68db ldr r3, [r3, #12]
8176e: 68db ldr r3, [r3, #12]
81770: 60fb str r3, [r7, #12]
( void ) uxListRemove( &( pxTCB->xEventListItem ) );
81772: 68fb ldr r3, [r7, #12]
81774: 3318 adds r3, #24
81776: 4618 mov r0, r3
81778: 4b32 ldr r3, [pc, #200] ; (81844 <xTaskResumeAll+0x124>)
8177a: 4798 blx r3
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
8177c: 68fb ldr r3, [r7, #12]
8177e: 3304 adds r3, #4
81780: 4618 mov r0, r3
81782: 4b30 ldr r3, [pc, #192] ; (81844 <xTaskResumeAll+0x124>)
81784: 4798 blx r3
prvAddTaskToReadyList( pxTCB );
81786: 68fb ldr r3, [r7, #12]
81788: 6adb ldr r3, [r3, #44] ; 0x2c
8178a: 2201 movs r2, #1
8178c: 409a lsls r2, r3
8178e: 4b2e ldr r3, [pc, #184] ; (81848 <xTaskResumeAll+0x128>)
81790: 681b ldr r3, [r3, #0]
81792: 4313 orrs r3, r2
81794: 4a2c ldr r2, [pc, #176] ; (81848 <xTaskResumeAll+0x128>)
81796: 6013 str r3, [r2, #0]
81798: 68fb ldr r3, [r7, #12]
8179a: 6ada ldr r2, [r3, #44] ; 0x2c
8179c: 4613 mov r3, r2
8179e: 009b lsls r3, r3, #2
817a0: 4413 add r3, r2
817a2: 009b lsls r3, r3, #2
817a4: 4a29 ldr r2, [pc, #164] ; (8184c <xTaskResumeAll+0x12c>)
817a6: 441a add r2, r3
817a8: 68fb ldr r3, [r7, #12]
817aa: 3304 adds r3, #4
817ac: 4619 mov r1, r3
817ae: 4610 mov r0, r2
817b0: 4b27 ldr r3, [pc, #156] ; (81850 <xTaskResumeAll+0x130>)
817b2: 4798 blx r3
/* If the moved task has a priority higher than the current
task then a yield must be performed. */
if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
817b4: 68fb ldr r3, [r7, #12]
817b6: 6ada ldr r2, [r3, #44] ; 0x2c
817b8: 4b26 ldr r3, [pc, #152] ; (81854 <xTaskResumeAll+0x134>)
817ba: 681b ldr r3, [r3, #0]
817bc: 6adb ldr r3, [r3, #44] ; 0x2c
817be: 429a cmp r2, r3
817c0: d302 bcc.n 817c8 <xTaskResumeAll+0xa8>
{
xYieldPending = pdTRUE;
817c2: 4b25 ldr r3, [pc, #148] ; (81858 <xTaskResumeAll+0x138>)
817c4: 2201 movs r2, #1
817c6: 601a str r2, [r3, #0]
while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
817c8: 4b1d ldr r3, [pc, #116] ; (81840 <xTaskResumeAll+0x120>)
817ca: 681b ldr r3, [r3, #0]
817cc: 2b00 cmp r3, #0
817ce: d1cc bne.n 8176a <xTaskResumeAll+0x4a>
{
mtCOVERAGE_TEST_MARKER();
}
}
if( pxTCB != NULL )
817d0: 68fb ldr r3, [r7, #12]
817d2: 2b00 cmp r3, #0
817d4: d001 beq.n 817da <xTaskResumeAll+0xba>
which may have prevented the next unblock time from being
re-calculated, in which case re-calculate it now. Mainly
important for low power tickless implementations, where
this can prevent an unnecessary exit from low power
state. */
prvResetNextTaskUnblockTime();
817d6: 4b21 ldr r3, [pc, #132] ; (8185c <xTaskResumeAll+0x13c>)
817d8: 4798 blx r3
/* If any ticks occurred while the scheduler was suspended then
they should be processed now. This ensures the tick count does
not slip, and that any delayed tasks are resumed at the correct
time. */
{
TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
817da: 4b21 ldr r3, [pc, #132] ; (81860 <xTaskResumeAll+0x140>)
817dc: 681b ldr r3, [r3, #0]
817de: 607b str r3, [r7, #4]
if( xPendedCounts > ( TickType_t ) 0U )
817e0: 687b ldr r3, [r7, #4]
817e2: 2b00 cmp r3, #0
817e4: d010 beq.n 81808 <xTaskResumeAll+0xe8>
{
do
{
if( xTaskIncrementTick() != pdFALSE )
817e6: 4b1f ldr r3, [pc, #124] ; (81864 <xTaskResumeAll+0x144>)
817e8: 4798 blx r3
817ea: 4603 mov r3, r0
817ec: 2b00 cmp r3, #0
817ee: d002 beq.n 817f6 <xTaskResumeAll+0xd6>
{
xYieldPending = pdTRUE;
817f0: 4b19 ldr r3, [pc, #100] ; (81858 <xTaskResumeAll+0x138>)
817f2: 2201 movs r2, #1
817f4: 601a str r2, [r3, #0]
}
else
{
mtCOVERAGE_TEST_MARKER();
}
--xPendedCounts;
817f6: 687b ldr r3, [r7, #4]
817f8: 3b01 subs r3, #1
817fa: 607b str r3, [r7, #4]
} while( xPendedCounts > ( TickType_t ) 0U );
817fc: 687b ldr r3, [r7, #4]
817fe: 2b00 cmp r3, #0
81800: d1f1 bne.n 817e6 <xTaskResumeAll+0xc6>
xPendedTicks = 0;
81802: 4b17 ldr r3, [pc, #92] ; (81860 <xTaskResumeAll+0x140>)
81804: 2200 movs r2, #0
81806: 601a str r2, [r3, #0]
{
mtCOVERAGE_TEST_MARKER();
}
}
if( xYieldPending != pdFALSE )
81808: 4b13 ldr r3, [pc, #76] ; (81858 <xTaskResumeAll+0x138>)
8180a: 681b ldr r3, [r3, #0]
8180c: 2b00 cmp r3, #0
8180e: d009 beq.n 81824 <xTaskResumeAll+0x104>
{
#if( configUSE_PREEMPTION != 0 )
{
xAlreadyYielded = pdTRUE;
81810: 2301 movs r3, #1
81812: 60bb str r3, [r7, #8]
}
#endif
taskYIELD_IF_USING_PREEMPTION();
81814: 4b14 ldr r3, [pc, #80] ; (81868 <xTaskResumeAll+0x148>)
81816: f04f 5280 mov.w r2, #268435456 ; 0x10000000
8181a: 601a str r2, [r3, #0]
8181c: f3bf 8f4f dsb sy
81820: f3bf 8f6f isb sy
else
{
mtCOVERAGE_TEST_MARKER();
}
}
taskEXIT_CRITICAL();
81824: 4b11 ldr r3, [pc, #68] ; (8186c <xTaskResumeAll+0x14c>)
81826: 4798 blx r3
return xAlreadyYielded;
81828: 68bb ldr r3, [r7, #8]
}
8182a: 4618 mov r0, r3
8182c: 3710 adds r7, #16
8182e: 46bd mov sp, r7
81830: bd80 pop {r7, pc}
81832: bf00 nop
81834: 2000a584 .word 0x2000a584
81838: 000807e9 .word 0x000807e9
8183c: 2000a55c .word 0x2000a55c
81840: 2000a51c .word 0x2000a51c
81844: 000803e5 .word 0x000803e5
81848: 2000a564 .word 0x2000a564
8184c: 2000a488 .word 0x2000a488
81850: 0008032f .word 0x0008032f
81854: 2000a484 .word 0x2000a484
81858: 2000a570 .word 0x2000a570
8185c: 00081ef5 .word 0x00081ef5
81860: 2000a56c .word 0x2000a56c
81864: 0008188d .word 0x0008188d
81868: e000ed04 .word 0xe000ed04
8186c: 00080845 .word 0x00080845
00081870 <xTaskGetTickCount>:
/*-----------------------------------------------------------*/
TickType_t xTaskGetTickCount( void )
{
81870: b480 push {r7}
81872: b083 sub sp, #12
81874: af00 add r7, sp, #0
TickType_t xTicks;
/* Critical section required if running on a 16 bit processor. */
portTICK_TYPE_ENTER_CRITICAL();
{
xTicks = xTickCount;
81876: 4b04 ldr r3, [pc, #16] ; (81888 <xTaskGetTickCount+0x18>)
81878: 681b ldr r3, [r3, #0]
8187a: 607b str r3, [r7, #4]
}
portTICK_TYPE_EXIT_CRITICAL();
return xTicks;
8187c: 687b ldr r3, [r7, #4]
}
8187e: 4618 mov r0, r3
81880: 370c adds r7, #12
81882: 46bd mov sp, r7
81884: bc80 pop {r7}
81886: 4770 bx lr
81888: 2000a560 .word 0x2000a560
0008188c <xTaskIncrementTick>:
#endif /* INCLUDE_xTaskAbortDelay */
/*----------------------------------------------------------*/
BaseType_t xTaskIncrementTick( void )
{
8188c: b580 push {r7, lr}
8188e: b086 sub sp, #24
81890: af00 add r7, sp, #0
TCB_t * pxTCB;
TickType_t xItemValue;
BaseType_t xSwitchRequired = pdFALSE;
81892: 2300 movs r3, #0
81894: 617b str r3, [r7, #20]
/* Called by the portable layer each time a tick interrupt occurs.
Increments the tick then checks to see if the new tick value will cause any
tasks to be unblocked. */
traceTASK_INCREMENT_TICK( xTickCount );
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
81896: 4b52 ldr r3, [pc, #328] ; (819e0 <xTaskIncrementTick+0x154>)
81898: 681b ldr r3, [r3, #0]
8189a: 2b00 cmp r3, #0
8189c: f040 8093 bne.w 819c6 <xTaskIncrementTick+0x13a>
{
/* Minor optimisation. The tick count cannot change in this
block. */
const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
818a0: 4b50 ldr r3, [pc, #320] ; (819e4 <xTaskIncrementTick+0x158>)
818a2: 681b ldr r3, [r3, #0]
818a4: 3301 adds r3, #1
818a6: 613b str r3, [r7, #16]
/* Increment the RTOS tick, switching the delayed and overflowed
delayed lists if it wraps to 0. */
xTickCount = xConstTickCount;
818a8: 4a4e ldr r2, [pc, #312] ; (819e4 <xTaskIncrementTick+0x158>)
818aa: 693b ldr r3, [r7, #16]
818ac: 6013 str r3, [r2, #0]
if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
818ae: 693b ldr r3, [r7, #16]
818b0: 2b00 cmp r3, #0
818b2: d11f bne.n 818f4 <xTaskIncrementTick+0x68>
{
taskSWITCH_DELAYED_LISTS();
818b4: 4b4c ldr r3, [pc, #304] ; (819e8 <xTaskIncrementTick+0x15c>)
818b6: 681b ldr r3, [r3, #0]
818b8: 681b ldr r3, [r3, #0]
818ba: 2b00 cmp r3, #0
818bc: d009 beq.n 818d2 <xTaskIncrementTick+0x46>
818be: f04f 03a0 mov.w r3, #160 ; 0xa0
818c2: f383 8811 msr BASEPRI, r3
818c6: f3bf 8f6f isb sy
818ca: f3bf 8f4f dsb sy
818ce: 603b str r3, [r7, #0]
818d0: e7fe b.n 818d0 <xTaskIncrementTick+0x44>
818d2: 4b45 ldr r3, [pc, #276] ; (819e8 <xTaskIncrementTick+0x15c>)
818d4: 681b ldr r3, [r3, #0]
818d6: 60fb str r3, [r7, #12]
818d8: 4b44 ldr r3, [pc, #272] ; (819ec <xTaskIncrementTick+0x160>)
818da: 681b ldr r3, [r3, #0]
818dc: 4a42 ldr r2, [pc, #264] ; (819e8 <xTaskIncrementTick+0x15c>)
818de: 6013 str r3, [r2, #0]
818e0: 4a42 ldr r2, [pc, #264] ; (819ec <xTaskIncrementTick+0x160>)
818e2: 68fb ldr r3, [r7, #12]
818e4: 6013 str r3, [r2, #0]
818e6: 4b42 ldr r3, [pc, #264] ; (819f0 <xTaskIncrementTick+0x164>)
818e8: 681b ldr r3, [r3, #0]
818ea: 3301 adds r3, #1
818ec: 4a40 ldr r2, [pc, #256] ; (819f0 <xTaskIncrementTick+0x164>)
818ee: 6013 str r3, [r2, #0]
818f0: 4b40 ldr r3, [pc, #256] ; (819f4 <xTaskIncrementTick+0x168>)
818f2: 4798 blx r3
/* See if this tick has made a timeout expire. Tasks are stored in
the queue in the order of their wake time - meaning once one task
has been found whose block time has not expired there is no need to
look any further down the list. */
if( xConstTickCount >= xNextTaskUnblockTime )
818f4: 4b40 ldr r3, [pc, #256] ; (819f8 <xTaskIncrementTick+0x16c>)
818f6: 681b ldr r3, [r3, #0]
818f8: 693a ldr r2, [r7, #16]
818fa: 429a cmp r2, r3
818fc: d348 bcc.n 81990 <xTaskIncrementTick+0x104>
{
for( ;; )
{
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
818fe: 4b3a ldr r3, [pc, #232] ; (819e8 <xTaskIncrementTick+0x15c>)
81900: 681b ldr r3, [r3, #0]
81902: 681b ldr r3, [r3, #0]
81904: 2b00 cmp r3, #0
81906: d104 bne.n 81912 <xTaskIncrementTick+0x86>
/* The delayed list is empty. Set xNextTaskUnblockTime
to the maximum possible value so it is extremely
unlikely that the
if( xTickCount >= xNextTaskUnblockTime ) test will pass
next time through. */
xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
81908: 4b3b ldr r3, [pc, #236] ; (819f8 <xTaskIncrementTick+0x16c>)
8190a: f04f 32ff mov.w r2, #4294967295
8190e: 601a str r2, [r3, #0]
break;
81910: e03e b.n 81990 <xTaskIncrementTick+0x104>
{
/* The delayed list is not empty, get the value of the
item at the head of the delayed list. This is the time
at which the task at the head of the delayed list must
be removed from the Blocked state. */
pxTCB = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
81912: 4b35 ldr r3, [pc, #212] ; (819e8 <xTaskIncrementTick+0x15c>)
81914: 681b ldr r3, [r3, #0]
81916: 68db ldr r3, [r3, #12]
81918: 68db ldr r3, [r3, #12]
8191a: 60bb str r3, [r7, #8]
xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
8191c: 68bb ldr r3, [r7, #8]
8191e: 685b ldr r3, [r3, #4]
81920: 607b str r3, [r7, #4]
if( xConstTickCount < xItemValue )
81922: 693a ldr r2, [r7, #16]
81924: 687b ldr r3, [r7, #4]
81926: 429a cmp r2, r3
81928: d203 bcs.n 81932 <xTaskIncrementTick+0xa6>
/* It is not time to unblock this item yet, but the
item value is the time at which the task at the head
of the blocked list must be removed from the Blocked
state - so record the item value in
xNextTaskUnblockTime. */
xNextTaskUnblockTime = xItemValue;
8192a: 4a33 ldr r2, [pc, #204] ; (819f8 <xTaskIncrementTick+0x16c>)
8192c: 687b ldr r3, [r7, #4]
8192e: 6013 str r3, [r2, #0]
break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
81930: e02e b.n 81990 <xTaskIncrementTick+0x104>
{
mtCOVERAGE_TEST_MARKER();
}
/* It is time to remove the item from the Blocked state. */
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
81932: 68bb ldr r3, [r7, #8]
81934: 3304 adds r3, #4
81936: 4618 mov r0, r3
81938: 4b30 ldr r3, [pc, #192] ; (819fc <xTaskIncrementTick+0x170>)
8193a: 4798 blx r3
/* Is the task waiting on an event also? If so remove
it from the event list. */
if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
8193c: 68bb ldr r3, [r7, #8]
8193e: 6a9b ldr r3, [r3, #40] ; 0x28
81940: 2b00 cmp r3, #0
81942: d004 beq.n 8194e <xTaskIncrementTick+0xc2>
{
( void ) uxListRemove( &( pxTCB->xEventListItem ) );
81944: 68bb ldr r3, [r7, #8]
81946: 3318 adds r3, #24
81948: 4618 mov r0, r3
8194a: 4b2c ldr r3, [pc, #176] ; (819fc <xTaskIncrementTick+0x170>)
8194c: 4798 blx r3
mtCOVERAGE_TEST_MARKER();
}
/* Place the unblocked task into the appropriate ready
list. */
prvAddTaskToReadyList( pxTCB );
8194e: 68bb ldr r3, [r7, #8]
81950: 6adb ldr r3, [r3, #44] ; 0x2c
81952: 2201 movs r2, #1
81954: 409a lsls r2, r3
81956: 4b2a ldr r3, [pc, #168] ; (81a00 <xTaskIncrementTick+0x174>)
81958: 681b ldr r3, [r3, #0]
8195a: 4313 orrs r3, r2
8195c: 4a28 ldr r2, [pc, #160] ; (81a00 <xTaskIncrementTick+0x174>)
8195e: 6013 str r3, [r2, #0]
81960: 68bb ldr r3, [r7, #8]
81962: 6ada ldr r2, [r3, #44] ; 0x2c
81964: 4613 mov r3, r2
81966: 009b lsls r3, r3, #2
81968: 4413 add r3, r2
8196a: 009b lsls r3, r3, #2
8196c: 4a25 ldr r2, [pc, #148] ; (81a04 <xTaskIncrementTick+0x178>)
8196e: 441a add r2, r3
81970: 68bb ldr r3, [r7, #8]
81972: 3304 adds r3, #4
81974: 4619 mov r1, r3
81976: 4610 mov r0, r2
81978: 4b23 ldr r3, [pc, #140] ; (81a08 <xTaskIncrementTick+0x17c>)
8197a: 4798 blx r3
{
/* Preemption is on, but a context switch should
only be performed if the unblocked task has a
priority that is equal to or higher than the
currently executing task. */
if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
8197c: 68bb ldr r3, [r7, #8]
8197e: 6ada ldr r2, [r3, #44] ; 0x2c
81980: 4b22 ldr r3, [pc, #136] ; (81a0c <xTaskIncrementTick+0x180>)
81982: 681b ldr r3, [r3, #0]
81984: 6adb ldr r3, [r3, #44] ; 0x2c
81986: 429a cmp r2, r3
81988: d3b9 bcc.n 818fe <xTaskIncrementTick+0x72>
{
xSwitchRequired = pdTRUE;
8198a: 2301 movs r3, #1
8198c: 617b str r3, [r7, #20]
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
8198e: e7b6 b.n 818fe <xTaskIncrementTick+0x72>
/* Tasks of equal priority to the currently running task will share
processing time (time slice) if preemption is on, and the application
writer has not explicitly turned time slicing off. */
#if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
{
if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
81990: 4b1e ldr r3, [pc, #120] ; (81a0c <xTaskIncrementTick+0x180>)
81992: 681b ldr r3, [r3, #0]
81994: 6ada ldr r2, [r3, #44] ; 0x2c
81996: 491b ldr r1, [pc, #108] ; (81a04 <xTaskIncrementTick+0x178>)
81998: 4613 mov r3, r2
8199a: 009b lsls r3, r3, #2
8199c: 4413 add r3, r2
8199e: 009b lsls r3, r3, #2
819a0: 440b add r3, r1
819a2: 681b ldr r3, [r3, #0]
819a4: 2b01 cmp r3, #1
819a6: d901 bls.n 819ac <xTaskIncrementTick+0x120>
{
xSwitchRequired = pdTRUE;
819a8: 2301 movs r3, #1
819aa: 617b str r3, [r7, #20]
#if ( configUSE_TICK_HOOK == 1 )
{
/* Guard against the tick hook being called when the pended tick
count is being unwound (when the scheduler is being unlocked). */
if( xPendedTicks == ( TickType_t ) 0 )
819ac: 4b18 ldr r3, [pc, #96] ; (81a10 <xTaskIncrementTick+0x184>)
819ae: 681b ldr r3, [r3, #0]
819b0: 2b00 cmp r3, #0
819b2: d101 bne.n 819b8 <xTaskIncrementTick+0x12c>
{
vApplicationTickHook();
819b4: 4b17 ldr r3, [pc, #92] ; (81a14 <xTaskIncrementTick+0x188>)
819b6: 4798 blx r3
}
#endif /* configUSE_TICK_HOOK */
#if ( configUSE_PREEMPTION == 1 )
{
if( xYieldPending != pdFALSE )
819b8: 4b17 ldr r3, [pc, #92] ; (81a18 <xTaskIncrementTick+0x18c>)
819ba: 681b ldr r3, [r3, #0]
819bc: 2b00 cmp r3, #0
819be: d009 beq.n 819d4 <xTaskIncrementTick+0x148>
{
xSwitchRequired = pdTRUE;
819c0: 2301 movs r3, #1
819c2: 617b str r3, [r7, #20]
819c4: e006 b.n 819d4 <xTaskIncrementTick+0x148>
}
#endif /* configUSE_PREEMPTION */
}
else
{
++xPendedTicks;
819c6: 4b12 ldr r3, [pc, #72] ; (81a10 <xTaskIncrementTick+0x184>)
819c8: 681b ldr r3, [r3, #0]
819ca: 3301 adds r3, #1
819cc: 4a10 ldr r2, [pc, #64] ; (81a10 <xTaskIncrementTick+0x184>)
819ce: 6013 str r3, [r2, #0]
/* The tick hook gets called at regular intervals, even if the
scheduler is locked. */
#if ( configUSE_TICK_HOOK == 1 )
{
vApplicationTickHook();
819d0: 4b10 ldr r3, [pc, #64] ; (81a14 <xTaskIncrementTick+0x188>)
819d2: 4798 blx r3
}
#endif
}
return xSwitchRequired;
819d4: 697b ldr r3, [r7, #20]
}
819d6: 4618 mov r0, r3
819d8: 3718 adds r7, #24
819da: 46bd mov sp, r7
819dc: bd80 pop {r7, pc}
819de: bf00 nop
819e0: 2000a584 .word 0x2000a584
819e4: 2000a560 .word 0x2000a560
819e8: 2000a514 .word 0x2000a514
819ec: 2000a518 .word 0x2000a518
819f0: 2000a574 .word 0x2000a574
819f4: 00081ef5 .word 0x00081ef5
819f8: 2000a57c .word 0x2000a57c
819fc: 000803e5 .word 0x000803e5
81a00: 2000a564 .word 0x2000a564
81a04: 2000a488 .word 0x2000a488
81a08: 0008032f .word 0x0008032f
81a0c: 2000a484 .word 0x2000a484
81a10: 2000a56c .word 0x2000a56c
81a14: 00080455 .word 0x00080455
81a18: 2000a570 .word 0x2000a570
00081a1c <vTaskSwitchContext>:
#endif /* configUSE_APPLICATION_TASK_TAG */
/*-----------------------------------------------------------*/
void vTaskSwitchContext( void )
{
81a1c: b580 push {r7, lr}
81a1e: b088 sub sp, #32
81a20: af00 add r7, sp, #0
if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
81a22: 4b39 ldr r3, [pc, #228] ; (81b08 <vTaskSwitchContext+0xec>)
81a24: 681b ldr r3, [r3, #0]
81a26: 2b00 cmp r3, #0
81a28: d003 beq.n 81a32 <vTaskSwitchContext+0x16>
{
/* The scheduler is currently suspended - do not allow a context
switch. */
xYieldPending = pdTRUE;
81a2a: 4b38 ldr r3, [pc, #224] ; (81b0c <vTaskSwitchContext+0xf0>)
81a2c: 2201 movs r2, #1
81a2e: 601a str r2, [r3, #0]
for additional information. */
_impure_ptr = &( pxCurrentTCB->xNewLib_reent );
}
#endif /* configUSE_NEWLIB_REENTRANT */
}
}
81a30: e065 b.n 81afe <vTaskSwitchContext+0xe2>
xYieldPending = pdFALSE;
81a32: 4b36 ldr r3, [pc, #216] ; (81b0c <vTaskSwitchContext+0xf0>)
81a34: 2200 movs r2, #0
81a36: 601a str r2, [r3, #0]
taskCHECK_FOR_STACK_OVERFLOW();
81a38: 4b35 ldr r3, [pc, #212] ; (81b10 <vTaskSwitchContext+0xf4>)
81a3a: 681b ldr r3, [r3, #0]
81a3c: 6b1b ldr r3, [r3, #48] ; 0x30
81a3e: 61fb str r3, [r7, #28]
81a40: f04f 33a5 mov.w r3, #2779096485 ; 0xa5a5a5a5
81a44: 61bb str r3, [r7, #24]
81a46: 69fb ldr r3, [r7, #28]
81a48: 681a ldr r2, [r3, #0]
81a4a: 69bb ldr r3, [r7, #24]
81a4c: 429a cmp r2, r3
81a4e: d111 bne.n 81a74 <vTaskSwitchContext+0x58>
81a50: 69fb ldr r3, [r7, #28]
81a52: 3304 adds r3, #4
81a54: 681a ldr r2, [r3, #0]
81a56: 69bb ldr r3, [r7, #24]
81a58: 429a cmp r2, r3
81a5a: d10b bne.n 81a74 <vTaskSwitchContext+0x58>
81a5c: 69fb ldr r3, [r7, #28]
81a5e: 3308 adds r3, #8
81a60: 681a ldr r2, [r3, #0]
81a62: 69bb ldr r3, [r7, #24]
81a64: 429a cmp r2, r3
81a66: d105 bne.n 81a74 <vTaskSwitchContext+0x58>
81a68: 69fb ldr r3, [r7, #28]
81a6a: 330c adds r3, #12
81a6c: 681a ldr r2, [r3, #0]
81a6e: 69bb ldr r3, [r7, #24]
81a70: 429a cmp r2, r3
81a72: d008 beq.n 81a86 <vTaskSwitchContext+0x6a>
81a74: 4b26 ldr r3, [pc, #152] ; (81b10 <vTaskSwitchContext+0xf4>)
81a76: 681a ldr r2, [r3, #0]
81a78: 4b25 ldr r3, [pc, #148] ; (81b10 <vTaskSwitchContext+0xf4>)
81a7a: 681b ldr r3, [r3, #0]
81a7c: 3334 adds r3, #52 ; 0x34
81a7e: 4619 mov r1, r3
81a80: 4610 mov r0, r2
81a82: 4b24 ldr r3, [pc, #144] ; (81b14 <vTaskSwitchContext+0xf8>)
81a84: 4798 blx r3
taskSELECT_HIGHEST_PRIORITY_TASK(); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
81a86: 4b24 ldr r3, [pc, #144] ; (81b18 <vTaskSwitchContext+0xfc>)
81a88: 681b ldr r3, [r3, #0]
81a8a: 60fb str r3, [r7, #12]
__asm volatile ( "clz %0, %1" : "=r" ( ucReturn ) : "r" ( ulBitmap ) : "memory" );
81a8c: 68fb ldr r3, [r7, #12]
81a8e: fab3 f383 clz r3, r3
81a92: 72fb strb r3, [r7, #11]
return ucReturn;
81a94: 7afb ldrb r3, [r7, #11]
81a96: f1c3 031f rsb r3, r3, #31
81a9a: 617b str r3, [r7, #20]
81a9c: 491f ldr r1, [pc, #124] ; (81b1c <vTaskSwitchContext+0x100>)
81a9e: 697a ldr r2, [r7, #20]
81aa0: 4613 mov r3, r2
81aa2: 009b lsls r3, r3, #2
81aa4: 4413 add r3, r2
81aa6: 009b lsls r3, r3, #2
81aa8: 440b add r3, r1
81aaa: 681b ldr r3, [r3, #0]
81aac: 2b00 cmp r3, #0
81aae: d109 bne.n 81ac4 <vTaskSwitchContext+0xa8>
__asm volatile
81ab0: f04f 03a0 mov.w r3, #160 ; 0xa0
81ab4: f383 8811 msr BASEPRI, r3
81ab8: f3bf 8f6f isb sy
81abc: f3bf 8f4f dsb sy
81ac0: 607b str r3, [r7, #4]
81ac2: e7fe b.n 81ac2 <vTaskSwitchContext+0xa6>
81ac4: 697a ldr r2, [r7, #20]
81ac6: 4613 mov r3, r2
81ac8: 009b lsls r3, r3, #2
81aca: 4413 add r3, r2
81acc: 009b lsls r3, r3, #2
81ace: 4a13 ldr r2, [pc, #76] ; (81b1c <vTaskSwitchContext+0x100>)
81ad0: 4413 add r3, r2
81ad2: 613b str r3, [r7, #16]
81ad4: 693b ldr r3, [r7, #16]
81ad6: 685b ldr r3, [r3, #4]
81ad8: 685a ldr r2, [r3, #4]
81ada: 693b ldr r3, [r7, #16]
81adc: 605a str r2, [r3, #4]
81ade: 693b ldr r3, [r7, #16]
81ae0: 685a ldr r2, [r3, #4]
81ae2: 693b ldr r3, [r7, #16]
81ae4: 3308 adds r3, #8
81ae6: 429a cmp r2, r3
81ae8: d104 bne.n 81af4 <vTaskSwitchContext+0xd8>
81aea: 693b ldr r3, [r7, #16]
81aec: 685b ldr r3, [r3, #4]
81aee: 685a ldr r2, [r3, #4]
81af0: 693b ldr r3, [r7, #16]
81af2: 605a str r2, [r3, #4]
81af4: 693b ldr r3, [r7, #16]
81af6: 685b ldr r3, [r3, #4]
81af8: 68db ldr r3, [r3, #12]
81afa: 4a05 ldr r2, [pc, #20] ; (81b10 <vTaskSwitchContext+0xf4>)
81afc: 6013 str r3, [r2, #0]
}
81afe: bf00 nop
81b00: 3720 adds r7, #32
81b02: 46bd mov sp, r7
81b04: bd80 pop {r7, pc}
81b06: bf00 nop
81b08: 2000a584 .word 0x2000a584
81b0c: 2000a570 .word 0x2000a570
81b10: 2000a484 .word 0x2000a484
81b14: 0008047d .word 0x0008047d
81b18: 2000a564 .word 0x2000a564
81b1c: 2000a488 .word 0x2000a488
00081b20 <vTaskPlaceOnEventList>:
/*-----------------------------------------------------------*/
void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
{
81b20: b580 push {r7, lr}
81b22: b084 sub sp, #16
81b24: af00 add r7, sp, #0
81b26: 6078 str r0, [r7, #4]
81b28: 6039 str r1, [r7, #0]
configASSERT( pxEventList );
81b2a: 687b ldr r3, [r7, #4]
81b2c: 2b00 cmp r3, #0
81b2e: d109 bne.n 81b44 <vTaskPlaceOnEventList+0x24>
81b30: f04f 03a0 mov.w r3, #160 ; 0xa0
81b34: f383 8811 msr BASEPRI, r3
81b38: f3bf 8f6f isb sy
81b3c: f3bf 8f4f dsb sy
81b40: 60fb str r3, [r7, #12]
81b42: e7fe b.n 81b42 <vTaskPlaceOnEventList+0x22>
/* Place the event list item of the TCB in the appropriate event list.
This is placed in the list in priority order so the highest priority task
is the first to be woken by the event. The queue that contains the event
list is locked, preventing simultaneous access from interrupts. */
vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
81b44: 4b07 ldr r3, [pc, #28] ; (81b64 <vTaskPlaceOnEventList+0x44>)
81b46: 681b ldr r3, [r3, #0]
81b48: 3318 adds r3, #24
81b4a: 4619 mov r1, r3
81b4c: 6878 ldr r0, [r7, #4]
81b4e: 4b06 ldr r3, [pc, #24] ; (81b68 <vTaskPlaceOnEventList+0x48>)
81b50: 4798 blx r3
prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
81b52: 2101 movs r1, #1
81b54: 6838 ldr r0, [r7, #0]
81b56: 4b05 ldr r3, [pc, #20] ; (81b6c <vTaskPlaceOnEventList+0x4c>)
81b58: 4798 blx r3
}
81b5a: bf00 nop
81b5c: 3710 adds r7, #16
81b5e: 46bd mov sp, r7
81b60: bd80 pop {r7, pc}
81b62: bf00 nop
81b64: 2000a484 .word 0x2000a484
81b68: 00080375 .word 0x00080375
81b6c: 00082081 .word 0x00082081
00081b70 <vTaskPlaceOnEventListRestricted>:
/*-----------------------------------------------------------*/
#if( configUSE_TIMERS == 1 )
void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
{
81b70: b580 push {r7, lr}
81b72: b086 sub sp, #24
81b74: af00 add r7, sp, #0
81b76: 60f8 str r0, [r7, #12]
81b78: 60b9 str r1, [r7, #8]
81b7a: 607a str r2, [r7, #4]
configASSERT( pxEventList );
81b7c: 68fb ldr r3, [r7, #12]
81b7e: 2b00 cmp r3, #0
81b80: d109 bne.n 81b96 <vTaskPlaceOnEventListRestricted+0x26>
81b82: f04f 03a0 mov.w r3, #160 ; 0xa0
81b86: f383 8811 msr BASEPRI, r3
81b8a: f3bf 8f6f isb sy
81b8e: f3bf 8f4f dsb sy
81b92: 617b str r3, [r7, #20]
81b94: e7fe b.n 81b94 <vTaskPlaceOnEventListRestricted+0x24>
/* Place the event list item of the TCB in the appropriate event list.
In this case it is assume that this is the only task that is going to
be waiting on this event list, so the faster vListInsertEnd() function
can be used in place of vListInsert. */
vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
81b96: 4b0a ldr r3, [pc, #40] ; (81bc0 <vTaskPlaceOnEventListRestricted+0x50>)
81b98: 681b ldr r3, [r3, #0]
81b9a: 3318 adds r3, #24
81b9c: 4619 mov r1, r3
81b9e: 68f8 ldr r0, [r7, #12]
81ba0: 4b08 ldr r3, [pc, #32] ; (81bc4 <vTaskPlaceOnEventListRestricted+0x54>)
81ba2: 4798 blx r3
/* If the task should block indefinitely then set the block time to a
value that will be recognised as an indefinite delay inside the
prvAddCurrentTaskToDelayedList() function. */
if( xWaitIndefinitely != pdFALSE )
81ba4: 687b ldr r3, [r7, #4]
81ba6: 2b00 cmp r3, #0
81ba8: d002 beq.n 81bb0 <vTaskPlaceOnEventListRestricted+0x40>
{
xTicksToWait = portMAX_DELAY;
81baa: f04f 33ff mov.w r3, #4294967295
81bae: 60bb str r3, [r7, #8]
}
traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
81bb0: 6879 ldr r1, [r7, #4]
81bb2: 68b8 ldr r0, [r7, #8]
81bb4: 4b04 ldr r3, [pc, #16] ; (81bc8 <vTaskPlaceOnEventListRestricted+0x58>)
81bb6: 4798 blx r3
}
81bb8: bf00 nop
81bba: 3718 adds r7, #24
81bbc: 46bd mov sp, r7
81bbe: bd80 pop {r7, pc}
81bc0: 2000a484 .word 0x2000a484
81bc4: 0008032f .word 0x0008032f
81bc8: 00082081 .word 0x00082081
00081bcc <xTaskRemoveFromEventList>:
#endif /* configUSE_TIMERS */
/*-----------------------------------------------------------*/
BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
{
81bcc: b580 push {r7, lr}
81bce: b086 sub sp, #24
81bd0: af00 add r7, sp, #0
81bd2: 6078 str r0, [r7, #4]
get called - the lock count on the queue will get modified instead. This
means exclusive access to the event list is guaranteed here.
This function assumes that a check has already been made to ensure that
pxEventList is not empty. */
pxUnblockedTCB = listGET_OWNER_OF_HEAD_ENTRY( pxEventList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
81bd4: 687b ldr r3, [r7, #4]
81bd6: 68db ldr r3, [r3, #12]
81bd8: 68db ldr r3, [r3, #12]
81bda: 613b str r3, [r7, #16]
configASSERT( pxUnblockedTCB );
81bdc: 693b ldr r3, [r7, #16]
81bde: 2b00 cmp r3, #0
81be0: d109 bne.n 81bf6 <xTaskRemoveFromEventList+0x2a>
81be2: f04f 03a0 mov.w r3, #160 ; 0xa0
81be6: f383 8811 msr BASEPRI, r3
81bea: f3bf 8f6f isb sy
81bee: f3bf 8f4f dsb sy
81bf2: 60fb str r3, [r7, #12]
81bf4: e7fe b.n 81bf4 <xTaskRemoveFromEventList+0x28>
( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
81bf6: 693b ldr r3, [r7, #16]
81bf8: 3318 adds r3, #24
81bfa: 4618 mov r0, r3
81bfc: 4b1e ldr r3, [pc, #120] ; (81c78 <xTaskRemoveFromEventList+0xac>)
81bfe: 4798 blx r3
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
81c00: 4b1e ldr r3, [pc, #120] ; (81c7c <xTaskRemoveFromEventList+0xb0>)
81c02: 681b ldr r3, [r3, #0]
81c04: 2b00 cmp r3, #0
81c06: d11c bne.n 81c42 <xTaskRemoveFromEventList+0x76>
{
( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
81c08: 693b ldr r3, [r7, #16]
81c0a: 3304 adds r3, #4
81c0c: 4618 mov r0, r3
81c0e: 4b1a ldr r3, [pc, #104] ; (81c78 <xTaskRemoveFromEventList+0xac>)
81c10: 4798 blx r3
prvAddTaskToReadyList( pxUnblockedTCB );
81c12: 693b ldr r3, [r7, #16]
81c14: 6adb ldr r3, [r3, #44] ; 0x2c
81c16: 2201 movs r2, #1
81c18: 409a lsls r2, r3
81c1a: 4b19 ldr r3, [pc, #100] ; (81c80 <xTaskRemoveFromEventList+0xb4>)
81c1c: 681b ldr r3, [r3, #0]
81c1e: 4313 orrs r3, r2
81c20: 4a17 ldr r2, [pc, #92] ; (81c80 <xTaskRemoveFromEventList+0xb4>)
81c22: 6013 str r3, [r2, #0]
81c24: 693b ldr r3, [r7, #16]
81c26: 6ada ldr r2, [r3, #44] ; 0x2c
81c28: 4613 mov r3, r2
81c2a: 009b lsls r3, r3, #2
81c2c: 4413 add r3, r2
81c2e: 009b lsls r3, r3, #2
81c30: 4a14 ldr r2, [pc, #80] ; (81c84 <xTaskRemoveFromEventList+0xb8>)
81c32: 441a add r2, r3
81c34: 693b ldr r3, [r7, #16]
81c36: 3304 adds r3, #4
81c38: 4619 mov r1, r3
81c3a: 4610 mov r0, r2
81c3c: 4b12 ldr r3, [pc, #72] ; (81c88 <xTaskRemoveFromEventList+0xbc>)
81c3e: 4798 blx r3
81c40: e005 b.n 81c4e <xTaskRemoveFromEventList+0x82>
}
else
{
/* The delayed and ready lists cannot be accessed, so hold this task
pending until the scheduler is resumed. */
vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
81c42: 693b ldr r3, [r7, #16]
81c44: 3318 adds r3, #24
81c46: 4619 mov r1, r3
81c48: 4810 ldr r0, [pc, #64] ; (81c8c <xTaskRemoveFromEventList+0xc0>)
81c4a: 4b0f ldr r3, [pc, #60] ; (81c88 <xTaskRemoveFromEventList+0xbc>)
81c4c: 4798 blx r3
}
if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
81c4e: 693b ldr r3, [r7, #16]
81c50: 6ada ldr r2, [r3, #44] ; 0x2c
81c52: 4b0f ldr r3, [pc, #60] ; (81c90 <xTaskRemoveFromEventList+0xc4>)
81c54: 681b ldr r3, [r3, #0]
81c56: 6adb ldr r3, [r3, #44] ; 0x2c
81c58: 429a cmp r2, r3
81c5a: d905 bls.n 81c68 <xTaskRemoveFromEventList+0x9c>
{
/* Return true if the task removed from the event list has a higher
priority than the calling task. This allows the calling task to know if
it should force a context switch now. */
xReturn = pdTRUE;
81c5c: 2301 movs r3, #1
81c5e: 617b str r3, [r7, #20]
/* Mark that a yield is pending in case the user is not using the
"xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
xYieldPending = pdTRUE;
81c60: 4b0c ldr r3, [pc, #48] ; (81c94 <xTaskRemoveFromEventList+0xc8>)
81c62: 2201 movs r2, #1
81c64: 601a str r2, [r3, #0]
81c66: e001 b.n 81c6c <xTaskRemoveFromEventList+0xa0>
}
else
{
xReturn = pdFALSE;
81c68: 2300 movs r3, #0
81c6a: 617b str r3, [r7, #20]
}
return xReturn;
81c6c: 697b ldr r3, [r7, #20]
}
81c6e: 4618 mov r0, r3
81c70: 3718 adds r7, #24
81c72: 46bd mov sp, r7
81c74: bd80 pop {r7, pc}
81c76: bf00 nop
81c78: 000803e5 .word 0x000803e5
81c7c: 2000a584 .word 0x2000a584
81c80: 2000a564 .word 0x2000a564
81c84: 2000a488 .word 0x2000a488
81c88: 0008032f .word 0x0008032f
81c8c: 2000a51c .word 0x2000a51c
81c90: 2000a484 .word 0x2000a484
81c94: 2000a570 .word 0x2000a570
00081c98 <vTaskInternalSetTimeOutState>:
taskEXIT_CRITICAL();
}
/*-----------------------------------------------------------*/
void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
{
81c98: b480 push {r7}
81c9a: b083 sub sp, #12
81c9c: af00 add r7, sp, #0
81c9e: 6078 str r0, [r7, #4]
/* For internal use only as it does not use a critical section. */
pxTimeOut->xOverflowCount = xNumOfOverflows;
81ca0: 4b06 ldr r3, [pc, #24] ; (81cbc <vTaskInternalSetTimeOutState+0x24>)
81ca2: 681a ldr r2, [r3, #0]
81ca4: 687b ldr r3, [r7, #4]
81ca6: 601a str r2, [r3, #0]
pxTimeOut->xTimeOnEntering = xTickCount;
81ca8: 4b05 ldr r3, [pc, #20] ; (81cc0 <vTaskInternalSetTimeOutState+0x28>)
81caa: 681a ldr r2, [r3, #0]
81cac: 687b ldr r3, [r7, #4]
81cae: 605a str r2, [r3, #4]
}
81cb0: bf00 nop
81cb2: 370c adds r7, #12
81cb4: 46bd mov sp, r7
81cb6: bc80 pop {r7}
81cb8: 4770 bx lr
81cba: bf00 nop
81cbc: 2000a574 .word 0x2000a574
81cc0: 2000a560 .word 0x2000a560
00081cc4 <xTaskCheckForTimeOut>:
/*-----------------------------------------------------------*/
BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
{
81cc4: b580 push {r7, lr}
81cc6: b088 sub sp, #32
81cc8: af00 add r7, sp, #0
81cca: 6078 str r0, [r7, #4]
81ccc: 6039 str r1, [r7, #0]
BaseType_t xReturn;
configASSERT( pxTimeOut );
81cce: 687b ldr r3, [r7, #4]
81cd0: 2b00 cmp r3, #0
81cd2: d109 bne.n 81ce8 <xTaskCheckForTimeOut+0x24>
81cd4: f04f 03a0 mov.w r3, #160 ; 0xa0
81cd8: f383 8811 msr BASEPRI, r3
81cdc: f3bf 8f6f isb sy
81ce0: f3bf 8f4f dsb sy
81ce4: 613b str r3, [r7, #16]
81ce6: e7fe b.n 81ce6 <xTaskCheckForTimeOut+0x22>
configASSERT( pxTicksToWait );
81ce8: 683b ldr r3, [r7, #0]
81cea: 2b00 cmp r3, #0
81cec: d109 bne.n 81d02 <xTaskCheckForTimeOut+0x3e>
81cee: f04f 03a0 mov.w r3, #160 ; 0xa0
81cf2: f383 8811 msr BASEPRI, r3
81cf6: f3bf 8f6f isb sy
81cfa: f3bf 8f4f dsb sy
81cfe: 60fb str r3, [r7, #12]
81d00: e7fe b.n 81d00 <xTaskCheckForTimeOut+0x3c>
taskENTER_CRITICAL();
81d02: 4b1e ldr r3, [pc, #120] ; (81d7c <xTaskCheckForTimeOut+0xb8>)
81d04: 4798 blx r3
{
/* Minor optimisation. The tick count cannot change in this block. */
const TickType_t xConstTickCount = xTickCount;
81d06: 4b1e ldr r3, [pc, #120] ; (81d80 <xTaskCheckForTimeOut+0xbc>)
81d08: 681b ldr r3, [r3, #0]
81d0a: 61bb str r3, [r7, #24]
const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
81d0c: 687b ldr r3, [r7, #4]
81d0e: 685b ldr r3, [r3, #4]
81d10: 69ba ldr r2, [r7, #24]
81d12: 1ad3 subs r3, r2, r3
81d14: 617b str r3, [r7, #20]
}
else
#endif
#if ( INCLUDE_vTaskSuspend == 1 )
if( *pxTicksToWait == portMAX_DELAY )
81d16: 683b ldr r3, [r7, #0]
81d18: 681b ldr r3, [r3, #0]
81d1a: f1b3 3fff cmp.w r3, #4294967295
81d1e: d102 bne.n 81d26 <xTaskCheckForTimeOut+0x62>
{
/* If INCLUDE_vTaskSuspend is set to 1 and the block time
specified is the maximum block time then the task should block
indefinitely, and therefore never time out. */
xReturn = pdFALSE;
81d20: 2300 movs r3, #0
81d22: 61fb str r3, [r7, #28]
81d24: e023 b.n 81d6e <xTaskCheckForTimeOut+0xaa>
}
else
#endif
if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
81d26: 687b ldr r3, [r7, #4]
81d28: 681a ldr r2, [r3, #0]
81d2a: 4b16 ldr r3, [pc, #88] ; (81d84 <xTaskCheckForTimeOut+0xc0>)
81d2c: 681b ldr r3, [r3, #0]
81d2e: 429a cmp r2, r3
81d30: d007 beq.n 81d42 <xTaskCheckForTimeOut+0x7e>
81d32: 687b ldr r3, [r7, #4]
81d34: 685a ldr r2, [r3, #4]
81d36: 69bb ldr r3, [r7, #24]
81d38: 429a cmp r2, r3
81d3a: d802 bhi.n 81d42 <xTaskCheckForTimeOut+0x7e>
/* The tick count is greater than the time at which
vTaskSetTimeout() was called, but has also overflowed since
vTaskSetTimeOut() was called. It must have wrapped all the way
around and gone past again. This passed since vTaskSetTimeout()
was called. */
xReturn = pdTRUE;
81d3c: 2301 movs r3, #1
81d3e: 61fb str r3, [r7, #28]
81d40: e015 b.n 81d6e <xTaskCheckForTimeOut+0xaa>
}
else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
81d42: 683b ldr r3, [r7, #0]
81d44: 681a ldr r2, [r3, #0]
81d46: 697b ldr r3, [r7, #20]
81d48: 429a cmp r2, r3
81d4a: d90b bls.n 81d64 <xTaskCheckForTimeOut+0xa0>
{
/* Not a genuine timeout. Adjust parameters for time remaining. */
*pxTicksToWait -= xElapsedTime;
81d4c: 683b ldr r3, [r7, #0]
81d4e: 681a ldr r2, [r3, #0]
81d50: 697b ldr r3, [r7, #20]
81d52: 1ad2 subs r2, r2, r3
81d54: 683b ldr r3, [r7, #0]
81d56: 601a str r2, [r3, #0]
vTaskInternalSetTimeOutState( pxTimeOut );
81d58: 6878 ldr r0, [r7, #4]
81d5a: 4b0b ldr r3, [pc, #44] ; (81d88 <xTaskCheckForTimeOut+0xc4>)
81d5c: 4798 blx r3
xReturn = pdFALSE;
81d5e: 2300 movs r3, #0
81d60: 61fb str r3, [r7, #28]
81d62: e004 b.n 81d6e <xTaskCheckForTimeOut+0xaa>
}
else
{
*pxTicksToWait = 0;
81d64: 683b ldr r3, [r7, #0]
81d66: 2200 movs r2, #0
81d68: 601a str r2, [r3, #0]
xReturn = pdTRUE;
81d6a: 2301 movs r3, #1
81d6c: 61fb str r3, [r7, #28]
}
}
taskEXIT_CRITICAL();
81d6e: 4b07 ldr r3, [pc, #28] ; (81d8c <xTaskCheckForTimeOut+0xc8>)
81d70: 4798 blx r3
return xReturn;
81d72: 69fb ldr r3, [r7, #28]
}
81d74: 4618 mov r0, r3
81d76: 3720 adds r7, #32
81d78: 46bd mov sp, r7
81d7a: bd80 pop {r7, pc}
81d7c: 000807e9 .word 0x000807e9
81d80: 2000a560 .word 0x2000a560
81d84: 2000a574 .word 0x2000a574
81d88: 00081c99 .word 0x00081c99
81d8c: 00080845 .word 0x00080845
00081d90 <vTaskMissedYield>:
/*-----------------------------------------------------------*/
void vTaskMissedYield( void )
{
81d90: b480 push {r7}
81d92: af00 add r7, sp, #0
xYieldPending = pdTRUE;
81d94: 4b03 ldr r3, [pc, #12] ; (81da4 <vTaskMissedYield+0x14>)
81d96: 2201 movs r2, #1
81d98: 601a str r2, [r3, #0]
}
81d9a: bf00 nop
81d9c: 46bd mov sp, r7
81d9e: bc80 pop {r7}
81da0: 4770 bx lr
81da2: bf00 nop
81da4: 2000a570 .word 0x2000a570
00081da8 <prvIdleTask>:
*
* void prvIdleTask( void *pvParameters );
*
*/
static portTASK_FUNCTION( prvIdleTask, pvParameters )
{
81da8: b580 push {r7, lr}
81daa: b082 sub sp, #8
81dac: af00 add r7, sp, #0
81dae: 6078 str r0, [r7, #4]
for( ;; )
{
/* See if any tasks have deleted themselves - if so then the idle task
is responsible for freeing the deleted task's TCB and stack. */
prvCheckTasksWaitingTermination();
81db0: 4b08 ldr r3, [pc, #32] ; (81dd4 <prvIdleTask+0x2c>)
81db2: 4798 blx r3
A critical region is not required here as we are just reading from
the list, and an occasional incorrect value will not matter. If
the ready list at the idle priority contains more than one task
then a task other than the idle task is ready to execute. */
if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
81db4: 4b08 ldr r3, [pc, #32] ; (81dd8 <prvIdleTask+0x30>)
81db6: 681b ldr r3, [r3, #0]
81db8: 2b01 cmp r3, #1
81dba: d907 bls.n 81dcc <prvIdleTask+0x24>
{
taskYIELD();
81dbc: 4b07 ldr r3, [pc, #28] ; (81ddc <prvIdleTask+0x34>)
81dbe: f04f 5280 mov.w r2, #268435456 ; 0x10000000
81dc2: 601a str r2, [r3, #0]
81dc4: f3bf 8f4f dsb sy
81dc8: f3bf 8f6f isb sy
/* Call the user defined function from within the idle task. This
allows the application designer to add background functionality
without the overhead of a separate task.
NOTE: vApplicationIdleHook() MUST NOT, UNDER ANY CIRCUMSTANCES,
CALL A FUNCTION THAT MIGHT BLOCK. */
vApplicationIdleHook();
81dcc: 4b04 ldr r3, [pc, #16] ; (81de0 <prvIdleTask+0x38>)
81dce: 4798 blx r3
prvCheckTasksWaitingTermination();
81dd0: e7ee b.n 81db0 <prvIdleTask+0x8>
81dd2: bf00 nop
81dd4: 00081e69 .word 0x00081e69
81dd8: 2000a488 .word 0x2000a488
81ddc: e000ed04 .word 0xe000ed04
81de0: 00080439 .word 0x00080439
00081de4 <prvInitialiseTaskLists>:
#endif /* portUSING_MPU_WRAPPERS */
/*-----------------------------------------------------------*/
static void prvInitialiseTaskLists( void )
{
81de4: b580 push {r7, lr}
81de6: b082 sub sp, #8
81de8: af00 add r7, sp, #0
UBaseType_t uxPriority;
for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
81dea: 2300 movs r3, #0
81dec: 607b str r3, [r7, #4]
81dee: e00c b.n 81e0a <prvInitialiseTaskLists+0x26>
{
vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
81df0: 687a ldr r2, [r7, #4]
81df2: 4613 mov r3, r2
81df4: 009b lsls r3, r3, #2
81df6: 4413 add r3, r2
81df8: 009b lsls r3, r3, #2
81dfa: 4a12 ldr r2, [pc, #72] ; (81e44 <prvInitialiseTaskLists+0x60>)
81dfc: 4413 add r3, r2
81dfe: 4618 mov r0, r3
81e00: 4b11 ldr r3, [pc, #68] ; (81e48 <prvInitialiseTaskLists+0x64>)
81e02: 4798 blx r3
for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
81e04: 687b ldr r3, [r7, #4]
81e06: 3301 adds r3, #1
81e08: 607b str r3, [r7, #4]
81e0a: 687b ldr r3, [r7, #4]
81e0c: 2b04 cmp r3, #4
81e0e: d9ef bls.n 81df0 <prvInitialiseTaskLists+0xc>
}
vListInitialise( &xDelayedTaskList1 );
81e10: 480e ldr r0, [pc, #56] ; (81e4c <prvInitialiseTaskLists+0x68>)
81e12: 4b0d ldr r3, [pc, #52] ; (81e48 <prvInitialiseTaskLists+0x64>)
81e14: 4798 blx r3
vListInitialise( &xDelayedTaskList2 );
81e16: 480e ldr r0, [pc, #56] ; (81e50 <prvInitialiseTaskLists+0x6c>)
81e18: 4b0b ldr r3, [pc, #44] ; (81e48 <prvInitialiseTaskLists+0x64>)
81e1a: 4798 blx r3
vListInitialise( &xPendingReadyList );
81e1c: 480d ldr r0, [pc, #52] ; (81e54 <prvInitialiseTaskLists+0x70>)
81e1e: 4b0a ldr r3, [pc, #40] ; (81e48 <prvInitialiseTaskLists+0x64>)
81e20: 4798 blx r3
#if ( INCLUDE_vTaskDelete == 1 )
{
vListInitialise( &xTasksWaitingTermination );
81e22: 480d ldr r0, [pc, #52] ; (81e58 <prvInitialiseTaskLists+0x74>)
81e24: 4b08 ldr r3, [pc, #32] ; (81e48 <prvInitialiseTaskLists+0x64>)
81e26: 4798 blx r3
}
#endif /* INCLUDE_vTaskDelete */
#if ( INCLUDE_vTaskSuspend == 1 )
{
vListInitialise( &xSuspendedTaskList );
81e28: 480c ldr r0, [pc, #48] ; (81e5c <prvInitialiseTaskLists+0x78>)
81e2a: 4b07 ldr r3, [pc, #28] ; (81e48 <prvInitialiseTaskLists+0x64>)
81e2c: 4798 blx r3
}
#endif /* INCLUDE_vTaskSuspend */
/* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
using list2. */
pxDelayedTaskList = &xDelayedTaskList1;
81e2e: 4b0c ldr r3, [pc, #48] ; (81e60 <prvInitialiseTaskLists+0x7c>)
81e30: 4a06 ldr r2, [pc, #24] ; (81e4c <prvInitialiseTaskLists+0x68>)
81e32: 601a str r2, [r3, #0]
pxOverflowDelayedTaskList = &xDelayedTaskList2;
81e34: 4b0b ldr r3, [pc, #44] ; (81e64 <prvInitialiseTaskLists+0x80>)
81e36: 4a06 ldr r2, [pc, #24] ; (81e50 <prvInitialiseTaskLists+0x6c>)
81e38: 601a str r2, [r3, #0]
}
81e3a: bf00 nop
81e3c: 3708 adds r7, #8
81e3e: 46bd mov sp, r7
81e40: bd80 pop {r7, pc}
81e42: bf00 nop
81e44: 2000a488 .word 0x2000a488
81e48: 000802d9 .word 0x000802d9
81e4c: 2000a4ec .word 0x2000a4ec
81e50: 2000a500 .word 0x2000a500
81e54: 2000a51c .word 0x2000a51c
81e58: 2000a530 .word 0x2000a530
81e5c: 2000a548 .word 0x2000a548
81e60: 2000a514 .word 0x2000a514
81e64: 2000a518 .word 0x2000a518
00081e68 <prvCheckTasksWaitingTermination>:
/*-----------------------------------------------------------*/
static void prvCheckTasksWaitingTermination( void )
{
81e68: b580 push {r7, lr}
81e6a: b082 sub sp, #8
81e6c: af00 add r7, sp, #0
{
TCB_t *pxTCB;
/* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
being called too often in the idle task. */
while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
81e6e: e019 b.n 81ea4 <prvCheckTasksWaitingTermination+0x3c>
{
taskENTER_CRITICAL();
81e70: 4b10 ldr r3, [pc, #64] ; (81eb4 <prvCheckTasksWaitingTermination+0x4c>)
81e72: 4798 blx r3
{
pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xTasksWaitingTermination ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
81e74: 4b10 ldr r3, [pc, #64] ; (81eb8 <prvCheckTasksWaitingTermination+0x50>)
81e76: 68db ldr r3, [r3, #12]
81e78: 68db ldr r3, [r3, #12]
81e7a: 607b str r3, [r7, #4]
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
81e7c: 687b ldr r3, [r7, #4]
81e7e: 3304 adds r3, #4
81e80: 4618 mov r0, r3
81e82: 4b0e ldr r3, [pc, #56] ; (81ebc <prvCheckTasksWaitingTermination+0x54>)
81e84: 4798 blx r3
--uxCurrentNumberOfTasks;
81e86: 4b0e ldr r3, [pc, #56] ; (81ec0 <prvCheckTasksWaitingTermination+0x58>)
81e88: 681b ldr r3, [r3, #0]
81e8a: 3b01 subs r3, #1
81e8c: 4a0c ldr r2, [pc, #48] ; (81ec0 <prvCheckTasksWaitingTermination+0x58>)
81e8e: 6013 str r3, [r2, #0]
--uxDeletedTasksWaitingCleanUp;
81e90: 4b0c ldr r3, [pc, #48] ; (81ec4 <prvCheckTasksWaitingTermination+0x5c>)
81e92: 681b ldr r3, [r3, #0]
81e94: 3b01 subs r3, #1
81e96: 4a0b ldr r2, [pc, #44] ; (81ec4 <prvCheckTasksWaitingTermination+0x5c>)
81e98: 6013 str r3, [r2, #0]
}
taskEXIT_CRITICAL();
81e9a: 4b0b ldr r3, [pc, #44] ; (81ec8 <prvCheckTasksWaitingTermination+0x60>)
81e9c: 4798 blx r3
prvDeleteTCB( pxTCB );
81e9e: 6878 ldr r0, [r7, #4]
81ea0: 4b0a ldr r3, [pc, #40] ; (81ecc <prvCheckTasksWaitingTermination+0x64>)
81ea2: 4798 blx r3
while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
81ea4: 4b07 ldr r3, [pc, #28] ; (81ec4 <prvCheckTasksWaitingTermination+0x5c>)
81ea6: 681b ldr r3, [r3, #0]
81ea8: 2b00 cmp r3, #0
81eaa: d1e1 bne.n 81e70 <prvCheckTasksWaitingTermination+0x8>
}
}
#endif /* INCLUDE_vTaskDelete */
}
81eac: bf00 nop
81eae: 3708 adds r7, #8
81eb0: 46bd mov sp, r7
81eb2: bd80 pop {r7, pc}
81eb4: 000807e9 .word 0x000807e9
81eb8: 2000a530 .word 0x2000a530
81ebc: 000803e5 .word 0x000803e5
81ec0: 2000a55c .word 0x2000a55c
81ec4: 2000a544 .word 0x2000a544
81ec8: 00080845 .word 0x00080845
81ecc: 00081ed1 .word 0x00081ed1
00081ed0 <prvDeleteTCB>:
/*-----------------------------------------------------------*/
#if ( INCLUDE_vTaskDelete == 1 )
static void prvDeleteTCB( TCB_t *pxTCB )
{
81ed0: b580 push {r7, lr}
81ed2: b082 sub sp, #8
81ed4: af00 add r7, sp, #0
81ed6: 6078 str r0, [r7, #4]
#if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 0 ) && ( portUSING_MPU_WRAPPERS == 0 ) )
{
/* The task can only have been allocated dynamically - free both
the stack and TCB. */
vPortFree( pxTCB->pxStack );
81ed8: 687b ldr r3, [r7, #4]
81eda: 6b1b ldr r3, [r3, #48] ; 0x30
81edc: 4618 mov r0, r3
81ede: 4b04 ldr r3, [pc, #16] ; (81ef0 <prvDeleteTCB+0x20>)
81ee0: 4798 blx r3
vPortFree( pxTCB );
81ee2: 6878 ldr r0, [r7, #4]
81ee4: 4b02 ldr r3, [pc, #8] ; (81ef0 <prvDeleteTCB+0x20>)
81ee6: 4798 blx r3
configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
mtCOVERAGE_TEST_MARKER();
}
}
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
}
81ee8: bf00 nop
81eea: 3708 adds r7, #8
81eec: 46bd mov sp, r7
81eee: bd80 pop {r7, pc}
81ef0: 00080291 .word 0x00080291
00081ef4 <prvResetNextTaskUnblockTime>:
#endif /* INCLUDE_vTaskDelete */
/*-----------------------------------------------------------*/
static void prvResetNextTaskUnblockTime( void )
{
81ef4: b480 push {r7}
81ef6: b083 sub sp, #12
81ef8: af00 add r7, sp, #0
TCB_t *pxTCB;
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
81efa: 4b0c ldr r3, [pc, #48] ; (81f2c <prvResetNextTaskUnblockTime+0x38>)
81efc: 681b ldr r3, [r3, #0]
81efe: 681b ldr r3, [r3, #0]
81f00: 2b00 cmp r3, #0
81f02: d104 bne.n 81f0e <prvResetNextTaskUnblockTime+0x1a>
{
/* The new current delayed list is empty. Set xNextTaskUnblockTime to
the maximum possible value so it is extremely unlikely that the
if( xTickCount >= xNextTaskUnblockTime ) test will pass until
there is an item in the delayed list. */
xNextTaskUnblockTime = portMAX_DELAY;
81f04: 4b0a ldr r3, [pc, #40] ; (81f30 <prvResetNextTaskUnblockTime+0x3c>)
81f06: f04f 32ff mov.w r2, #4294967295
81f0a: 601a str r2, [r3, #0]
which the task at the head of the delayed list should be removed
from the Blocked state. */
( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
}
}
81f0c: e008 b.n 81f20 <prvResetNextTaskUnblockTime+0x2c>
( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
81f0e: 4b07 ldr r3, [pc, #28] ; (81f2c <prvResetNextTaskUnblockTime+0x38>)
81f10: 681b ldr r3, [r3, #0]
81f12: 68db ldr r3, [r3, #12]
81f14: 68db ldr r3, [r3, #12]
81f16: 607b str r3, [r7, #4]
xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
81f18: 687b ldr r3, [r7, #4]
81f1a: 685b ldr r3, [r3, #4]
81f1c: 4a04 ldr r2, [pc, #16] ; (81f30 <prvResetNextTaskUnblockTime+0x3c>)
81f1e: 6013 str r3, [r2, #0]
}
81f20: bf00 nop
81f22: 370c adds r7, #12
81f24: 46bd mov sp, r7
81f26: bc80 pop {r7}
81f28: 4770 bx lr
81f2a: bf00 nop
81f2c: 2000a514 .word 0x2000a514
81f30: 2000a57c .word 0x2000a57c
00081f34 <xTaskGetSchedulerState>:
/*-----------------------------------------------------------*/
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
BaseType_t xTaskGetSchedulerState( void )
{
81f34: b480 push {r7}
81f36: b083 sub sp, #12
81f38: af00 add r7, sp, #0
BaseType_t xReturn;
if( xSchedulerRunning == pdFALSE )
81f3a: 4b0b ldr r3, [pc, #44] ; (81f68 <xTaskGetSchedulerState+0x34>)
81f3c: 681b ldr r3, [r3, #0]
81f3e: 2b00 cmp r3, #0
81f40: d102 bne.n 81f48 <xTaskGetSchedulerState+0x14>
{
xReturn = taskSCHEDULER_NOT_STARTED;
81f42: 2301 movs r3, #1
81f44: 607b str r3, [r7, #4]
81f46: e008 b.n 81f5a <xTaskGetSchedulerState+0x26>
}
else
{
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
81f48: 4b08 ldr r3, [pc, #32] ; (81f6c <xTaskGetSchedulerState+0x38>)
81f4a: 681b ldr r3, [r3, #0]
81f4c: 2b00 cmp r3, #0
81f4e: d102 bne.n 81f56 <xTaskGetSchedulerState+0x22>
{
xReturn = taskSCHEDULER_RUNNING;
81f50: 2302 movs r3, #2
81f52: 607b str r3, [r7, #4]
81f54: e001 b.n 81f5a <xTaskGetSchedulerState+0x26>
}
else
{
xReturn = taskSCHEDULER_SUSPENDED;
81f56: 2300 movs r3, #0
81f58: 607b str r3, [r7, #4]
}
}
return xReturn;
81f5a: 687b ldr r3, [r7, #4]
}
81f5c: 4618 mov r0, r3
81f5e: 370c adds r7, #12
81f60: 46bd mov sp, r7
81f62: bc80 pop {r7}
81f64: 4770 bx lr
81f66: bf00 nop
81f68: 2000a568 .word 0x2000a568
81f6c: 2000a584 .word 0x2000a584
00081f70 <xTaskPriorityDisinherit>:
/*-----------------------------------------------------------*/
#if ( configUSE_MUTEXES == 1 )
BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
{
81f70: b580 push {r7, lr}
81f72: b086 sub sp, #24
81f74: af00 add r7, sp, #0
81f76: 6078 str r0, [r7, #4]
TCB_t * const pxTCB = pxMutexHolder;
81f78: 687b ldr r3, [r7, #4]
81f7a: 613b str r3, [r7, #16]
BaseType_t xReturn = pdFALSE;
81f7c: 2300 movs r3, #0
81f7e: 617b str r3, [r7, #20]
if( pxMutexHolder != NULL )
81f80: 687b ldr r3, [r7, #4]
81f82: 2b00 cmp r3, #0
81f84: d06c beq.n 82060 <xTaskPriorityDisinherit+0xf0>
{
/* A task can only have an inherited priority if it holds the mutex.
If the mutex is held by a task then it cannot be given from an
interrupt, and if a mutex is given by the holding task then it must
be the running state task. */
configASSERT( pxTCB == pxCurrentTCB );
81f86: 4b39 ldr r3, [pc, #228] ; (8206c <xTaskPriorityDisinherit+0xfc>)
81f88: 681b ldr r3, [r3, #0]
81f8a: 693a ldr r2, [r7, #16]
81f8c: 429a cmp r2, r3
81f8e: d009 beq.n 81fa4 <xTaskPriorityDisinherit+0x34>
81f90: f04f 03a0 mov.w r3, #160 ; 0xa0
81f94: f383 8811 msr BASEPRI, r3
81f98: f3bf 8f6f isb sy
81f9c: f3bf 8f4f dsb sy
81fa0: 60fb str r3, [r7, #12]
81fa2: e7fe b.n 81fa2 <xTaskPriorityDisinherit+0x32>
configASSERT( pxTCB->uxMutexesHeld );
81fa4: 693b ldr r3, [r7, #16]
81fa6: 6c5b ldr r3, [r3, #68] ; 0x44
81fa8: 2b00 cmp r3, #0
81faa: d109 bne.n 81fc0 <xTaskPriorityDisinherit+0x50>
81fac: f04f 03a0 mov.w r3, #160 ; 0xa0
81fb0: f383 8811 msr BASEPRI, r3
81fb4: f3bf 8f6f isb sy
81fb8: f3bf 8f4f dsb sy
81fbc: 60bb str r3, [r7, #8]
81fbe: e7fe b.n 81fbe <xTaskPriorityDisinherit+0x4e>
( pxTCB->uxMutexesHeld )--;
81fc0: 693b ldr r3, [r7, #16]
81fc2: 6c5b ldr r3, [r3, #68] ; 0x44
81fc4: 1e5a subs r2, r3, #1
81fc6: 693b ldr r3, [r7, #16]
81fc8: 645a str r2, [r3, #68] ; 0x44
/* Has the holder of the mutex inherited the priority of another
task? */
if( pxTCB->uxPriority != pxTCB->uxBasePriority )
81fca: 693b ldr r3, [r7, #16]
81fcc: 6ada ldr r2, [r3, #44] ; 0x2c
81fce: 693b ldr r3, [r7, #16]
81fd0: 6c1b ldr r3, [r3, #64] ; 0x40
81fd2: 429a cmp r2, r3
81fd4: d044 beq.n 82060 <xTaskPriorityDisinherit+0xf0>
{
/* Only disinherit if no other mutexes are held. */
if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
81fd6: 693b ldr r3, [r7, #16]
81fd8: 6c5b ldr r3, [r3, #68] ; 0x44
81fda: 2b00 cmp r3, #0
81fdc: d140 bne.n 82060 <xTaskPriorityDisinherit+0xf0>
/* A task can only have an inherited priority if it holds
the mutex. If the mutex is held by a task then it cannot be
given from an interrupt, and if a mutex is given by the
holding task then it must be the running state task. Remove
the holding task from the ready/delayed list. */
if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
81fde: 693b ldr r3, [r7, #16]
81fe0: 3304 adds r3, #4
81fe2: 4618 mov r0, r3
81fe4: 4b22 ldr r3, [pc, #136] ; (82070 <xTaskPriorityDisinherit+0x100>)
81fe6: 4798 blx r3
81fe8: 4603 mov r3, r0
81fea: 2b00 cmp r3, #0
81fec: d115 bne.n 8201a <xTaskPriorityDisinherit+0xaa>
{
taskRESET_READY_PRIORITY( pxTCB->uxPriority );
81fee: 693b ldr r3, [r7, #16]
81ff0: 6ada ldr r2, [r3, #44] ; 0x2c
81ff2: 4920 ldr r1, [pc, #128] ; (82074 <xTaskPriorityDisinherit+0x104>)
81ff4: 4613 mov r3, r2
81ff6: 009b lsls r3, r3, #2
81ff8: 4413 add r3, r2
81ffa: 009b lsls r3, r3, #2
81ffc: 440b add r3, r1
81ffe: 681b ldr r3, [r3, #0]
82000: 2b00 cmp r3, #0
82002: d10a bne.n 8201a <xTaskPriorityDisinherit+0xaa>
82004: 693b ldr r3, [r7, #16]
82006: 6adb ldr r3, [r3, #44] ; 0x2c
82008: 2201 movs r2, #1
8200a: fa02 f303 lsl.w r3, r2, r3
8200e: 43da mvns r2, r3
82010: 4b19 ldr r3, [pc, #100] ; (82078 <xTaskPriorityDisinherit+0x108>)
82012: 681b ldr r3, [r3, #0]
82014: 4013 ands r3, r2
82016: 4a18 ldr r2, [pc, #96] ; (82078 <xTaskPriorityDisinherit+0x108>)
82018: 6013 str r3, [r2, #0]
}
/* Disinherit the priority before adding the task into the
new ready list. */
traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
pxTCB->uxPriority = pxTCB->uxBasePriority;
8201a: 693b ldr r3, [r7, #16]
8201c: 6c1a ldr r2, [r3, #64] ; 0x40
8201e: 693b ldr r3, [r7, #16]
82020: 62da str r2, [r3, #44] ; 0x2c
/* Reset the event list item value. It cannot be in use for
any other purpose if this task is running, and it must be
running to give back the mutex. */
listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
82022: 693b ldr r3, [r7, #16]
82024: 6adb ldr r3, [r3, #44] ; 0x2c
82026: f1c3 0205 rsb r2, r3, #5
8202a: 693b ldr r3, [r7, #16]
8202c: 619a str r2, [r3, #24]
prvAddTaskToReadyList( pxTCB );
8202e: 693b ldr r3, [r7, #16]
82030: 6adb ldr r3, [r3, #44] ; 0x2c
82032: 2201 movs r2, #1
82034: 409a lsls r2, r3
82036: 4b10 ldr r3, [pc, #64] ; (82078 <xTaskPriorityDisinherit+0x108>)
82038: 681b ldr r3, [r3, #0]
8203a: 4313 orrs r3, r2
8203c: 4a0e ldr r2, [pc, #56] ; (82078 <xTaskPriorityDisinherit+0x108>)
8203e: 6013 str r3, [r2, #0]
82040: 693b ldr r3, [r7, #16]
82042: 6ada ldr r2, [r3, #44] ; 0x2c
82044: 4613 mov r3, r2
82046: 009b lsls r3, r3, #2
82048: 4413 add r3, r2
8204a: 009b lsls r3, r3, #2
8204c: 4a09 ldr r2, [pc, #36] ; (82074 <xTaskPriorityDisinherit+0x104>)
8204e: 441a add r2, r3
82050: 693b ldr r3, [r7, #16]
82052: 3304 adds r3, #4
82054: 4619 mov r1, r3
82056: 4610 mov r0, r2
82058: 4b08 ldr r3, [pc, #32] ; (8207c <xTaskPriorityDisinherit+0x10c>)
8205a: 4798 blx r3
in an order different to that in which they were taken.
If a context switch did not occur when the first mutex was
returned, even if a task was waiting on it, then a context
switch should occur when the last mutex is returned whether
a task is waiting on it or not. */
xReturn = pdTRUE;
8205c: 2301 movs r3, #1
8205e: 617b str r3, [r7, #20]
else
{
mtCOVERAGE_TEST_MARKER();
}
return xReturn;
82060: 697b ldr r3, [r7, #20]
}
82062: 4618 mov r0, r3
82064: 3718 adds r7, #24
82066: 46bd mov sp, r7
82068: bd80 pop {r7, pc}
8206a: bf00 nop
8206c: 2000a484 .word 0x2000a484
82070: 000803e5 .word 0x000803e5
82074: 2000a488 .word 0x2000a488
82078: 2000a564 .word 0x2000a564
8207c: 0008032f .word 0x0008032f
00082080 <prvAddCurrentTaskToDelayedList>:
#endif
/*-----------------------------------------------------------*/
static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
{
82080: b580 push {r7, lr}
82082: b084 sub sp, #16
82084: af00 add r7, sp, #0
82086: 6078 str r0, [r7, #4]
82088: 6039 str r1, [r7, #0]
TickType_t xTimeToWake;
const TickType_t xConstTickCount = xTickCount;
8208a: 4b29 ldr r3, [pc, #164] ; (82130 <prvAddCurrentTaskToDelayedList+0xb0>)
8208c: 681b ldr r3, [r3, #0]
8208e: 60fb str r3, [r7, #12]
}
#endif
/* Remove the task from the ready list before adding it to the blocked list
as the same list item is used for both lists. */
if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
82090: 4b28 ldr r3, [pc, #160] ; (82134 <prvAddCurrentTaskToDelayedList+0xb4>)
82092: 681b ldr r3, [r3, #0]
82094: 3304 adds r3, #4
82096: 4618 mov r0, r3
82098: 4b27 ldr r3, [pc, #156] ; (82138 <prvAddCurrentTaskToDelayedList+0xb8>)
8209a: 4798 blx r3
8209c: 4603 mov r3, r0
8209e: 2b00 cmp r3, #0
820a0: d10b bne.n 820ba <prvAddCurrentTaskToDelayedList+0x3a>
{
/* The current task must be in a ready list, so there is no need to
check, and the port reset macro can be called directly. */
portRESET_READY_PRIORITY( pxCurrentTCB->uxPriority, uxTopReadyPriority ); /*lint !e931 pxCurrentTCB cannot change as it is the calling task. pxCurrentTCB->uxPriority and uxTopReadyPriority cannot change as called with scheduler suspended or in a critical section. */
820a2: 4b24 ldr r3, [pc, #144] ; (82134 <prvAddCurrentTaskToDelayedList+0xb4>)
820a4: 681b ldr r3, [r3, #0]
820a6: 6adb ldr r3, [r3, #44] ; 0x2c
820a8: 2201 movs r2, #1
820aa: fa02 f303 lsl.w r3, r2, r3
820ae: 43da mvns r2, r3
820b0: 4b22 ldr r3, [pc, #136] ; (8213c <prvAddCurrentTaskToDelayedList+0xbc>)
820b2: 681b ldr r3, [r3, #0]
820b4: 4013 ands r3, r2
820b6: 4a21 ldr r2, [pc, #132] ; (8213c <prvAddCurrentTaskToDelayedList+0xbc>)
820b8: 6013 str r3, [r2, #0]
mtCOVERAGE_TEST_MARKER();
}
#if ( INCLUDE_vTaskSuspend == 1 )
{
if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
820ba: 687b ldr r3, [r7, #4]
820bc: f1b3 3fff cmp.w r3, #4294967295
820c0: d10a bne.n 820d8 <prvAddCurrentTaskToDelayedList+0x58>
820c2: 683b ldr r3, [r7, #0]
820c4: 2b00 cmp r3, #0
820c6: d007 beq.n 820d8 <prvAddCurrentTaskToDelayedList+0x58>
{
/* Add the task to the suspended task list instead of a delayed task
list to ensure it is not woken by a timing event. It will block
indefinitely. */
vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
820c8: 4b1a ldr r3, [pc, #104] ; (82134 <prvAddCurrentTaskToDelayedList+0xb4>)
820ca: 681b ldr r3, [r3, #0]
820cc: 3304 adds r3, #4
820ce: 4619 mov r1, r3
820d0: 481b ldr r0, [pc, #108] ; (82140 <prvAddCurrentTaskToDelayedList+0xc0>)
820d2: 4b1c ldr r3, [pc, #112] ; (82144 <prvAddCurrentTaskToDelayedList+0xc4>)
820d4: 4798 blx r3
/* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
( void ) xCanBlockIndefinitely;
}
#endif /* INCLUDE_vTaskSuspend */
}
820d6: e026 b.n 82126 <prvAddCurrentTaskToDelayedList+0xa6>
xTimeToWake = xConstTickCount + xTicksToWait;
820d8: 68fa ldr r2, [r7, #12]
820da: 687b ldr r3, [r7, #4]
820dc: 4413 add r3, r2
820de: 60bb str r3, [r7, #8]
listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
820e0: 4b14 ldr r3, [pc, #80] ; (82134 <prvAddCurrentTaskToDelayedList+0xb4>)
820e2: 681b ldr r3, [r3, #0]
820e4: 68ba ldr r2, [r7, #8]
820e6: 605a str r2, [r3, #4]
if( xTimeToWake < xConstTickCount )
820e8: 68ba ldr r2, [r7, #8]
820ea: 68fb ldr r3, [r7, #12]
820ec: 429a cmp r2, r3
820ee: d209 bcs.n 82104 <prvAddCurrentTaskToDelayedList+0x84>
vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
820f0: 4b15 ldr r3, [pc, #84] ; (82148 <prvAddCurrentTaskToDelayedList+0xc8>)
820f2: 681a ldr r2, [r3, #0]
820f4: 4b0f ldr r3, [pc, #60] ; (82134 <prvAddCurrentTaskToDelayedList+0xb4>)
820f6: 681b ldr r3, [r3, #0]
820f8: 3304 adds r3, #4
820fa: 4619 mov r1, r3
820fc: 4610 mov r0, r2
820fe: 4b13 ldr r3, [pc, #76] ; (8214c <prvAddCurrentTaskToDelayedList+0xcc>)
82100: 4798 blx r3
}
82102: e010 b.n 82126 <prvAddCurrentTaskToDelayedList+0xa6>
vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
82104: 4b12 ldr r3, [pc, #72] ; (82150 <prvAddCurrentTaskToDelayedList+0xd0>)
82106: 681a ldr r2, [r3, #0]
82108: 4b0a ldr r3, [pc, #40] ; (82134 <prvAddCurrentTaskToDelayedList+0xb4>)
8210a: 681b ldr r3, [r3, #0]
8210c: 3304 adds r3, #4
8210e: 4619 mov r1, r3
82110: 4610 mov r0, r2
82112: 4b0e ldr r3, [pc, #56] ; (8214c <prvAddCurrentTaskToDelayedList+0xcc>)
82114: 4798 blx r3
if( xTimeToWake < xNextTaskUnblockTime )
82116: 4b0f ldr r3, [pc, #60] ; (82154 <prvAddCurrentTaskToDelayedList+0xd4>)
82118: 681b ldr r3, [r3, #0]
8211a: 68ba ldr r2, [r7, #8]
8211c: 429a cmp r2, r3
8211e: d202 bcs.n 82126 <prvAddCurrentTaskToDelayedList+0xa6>
xNextTaskUnblockTime = xTimeToWake;
82120: 4a0c ldr r2, [pc, #48] ; (82154 <prvAddCurrentTaskToDelayedList+0xd4>)
82122: 68bb ldr r3, [r7, #8]
82124: 6013 str r3, [r2, #0]
}
82126: bf00 nop
82128: 3710 adds r7, #16
8212a: 46bd mov sp, r7
8212c: bd80 pop {r7, pc}
8212e: bf00 nop
82130: 2000a560 .word 0x2000a560
82134: 2000a484 .word 0x2000a484
82138: 000803e5 .word 0x000803e5
8213c: 2000a564 .word 0x2000a564
82140: 2000a548 .word 0x2000a548
82144: 0008032f .word 0x0008032f
82148: 2000a518 .word 0x2000a518
8214c: 00080375 .word 0x00080375
82150: 2000a514 .word 0x2000a514
82154: 2000a57c .word 0x2000a57c
00082158 <xTimerCreateTimerTask>:
TimerCallbackFunction_t pxCallbackFunction,
Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
/*-----------------------------------------------------------*/
BaseType_t xTimerCreateTimerTask( void )
{
82158: b590 push {r4, r7, lr}
8215a: b085 sub sp, #20
8215c: af02 add r7, sp, #8
BaseType_t xReturn = pdFAIL;
8215e: 2300 movs r3, #0
82160: 607b str r3, [r7, #4]
/* This function is called when the scheduler is started if
configUSE_TIMERS is set to 1. Check that the infrastructure used by the
timer service task has been created/initialised. If timers have already
been created then the initialisation will already have been performed. */
prvCheckForValidListAndQueue();
82162: 4b12 ldr r3, [pc, #72] ; (821ac <xTimerCreateTimerTask+0x54>)
82164: 4798 blx r3
if( xTimerQueue != NULL )
82166: 4b12 ldr r3, [pc, #72] ; (821b0 <xTimerCreateTimerTask+0x58>)
82168: 681b ldr r3, [r3, #0]
8216a: 2b00 cmp r3, #0
8216c: d00b beq.n 82186 <xTimerCreateTimerTask+0x2e>
xReturn = pdPASS;
}
}
#else
{
xReturn = xTaskCreate( prvTimerTask,
8216e: 4b11 ldr r3, [pc, #68] ; (821b4 <xTimerCreateTimerTask+0x5c>)
82170: 9301 str r3, [sp, #4]
82172: 2302 movs r3, #2
82174: 9300 str r3, [sp, #0]
82176: 2300 movs r3, #0
82178: f44f 7282 mov.w r2, #260 ; 0x104
8217c: 490e ldr r1, [pc, #56] ; (821b8 <xTimerCreateTimerTask+0x60>)
8217e: 480f ldr r0, [pc, #60] ; (821bc <xTimerCreateTimerTask+0x64>)
82180: 4c0f ldr r4, [pc, #60] ; (821c0 <xTimerCreateTimerTask+0x68>)
82182: 47a0 blx r4
82184: 6078 str r0, [r7, #4]
else
{
mtCOVERAGE_TEST_MARKER();
}
configASSERT( xReturn );
82186: 687b ldr r3, [r7, #4]
82188: 2b00 cmp r3, #0
8218a: d109 bne.n 821a0 <xTimerCreateTimerTask+0x48>
8218c: f04f 03a0 mov.w r3, #160 ; 0xa0
82190: f383 8811 msr BASEPRI, r3
82194: f3bf 8f6f isb sy
82198: f3bf 8f4f dsb sy
8219c: 603b str r3, [r7, #0]
8219e: e7fe b.n 8219e <xTimerCreateTimerTask+0x46>
return xReturn;
821a0: 687b ldr r3, [r7, #4]
}
821a2: 4618 mov r0, r3
821a4: 370c adds r7, #12
821a6: 46bd mov sp, r7
821a8: bd90 pop {r4, r7, pc}
821aa: bf00 nop
821ac: 00082775 .word 0x00082775
821b0: 2000a5b8 .word 0x2000a5b8
821b4: 2000a5bc .word 0x2000a5bc
821b8: 00082af8 .word 0x00082af8
821bc: 0008230d .word 0x0008230d
821c0: 000813c1 .word 0x000813c1
000821c4 <xTimerGenericCommand>:
}
}
/*-----------------------------------------------------------*/
BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
{
821c4: b590 push {r4, r7, lr}
821c6: b08b sub sp, #44 ; 0x2c
821c8: af00 add r7, sp, #0
821ca: 60f8 str r0, [r7, #12]
821cc: 60b9 str r1, [r7, #8]
821ce: 607a str r2, [r7, #4]
821d0: 603b str r3, [r7, #0]
BaseType_t xReturn = pdFAIL;
821d2: 2300 movs r3, #0
821d4: 627b str r3, [r7, #36] ; 0x24
DaemonTaskMessage_t xMessage;
configASSERT( xTimer );
821d6: 68fb ldr r3, [r7, #12]
821d8: 2b00 cmp r3, #0
821da: d109 bne.n 821f0 <xTimerGenericCommand+0x2c>
821dc: f04f 03a0 mov.w r3, #160 ; 0xa0
821e0: f383 8811 msr BASEPRI, r3
821e4: f3bf 8f6f isb sy
821e8: f3bf 8f4f dsb sy
821ec: 623b str r3, [r7, #32]
821ee: e7fe b.n 821ee <xTimerGenericCommand+0x2a>
/* Send a message to the timer service task to perform a particular action
on a particular timer definition. */
if( xTimerQueue != NULL )
821f0: 4b19 ldr r3, [pc, #100] ; (82258 <xTimerGenericCommand+0x94>)
821f2: 681b ldr r3, [r3, #0]
821f4: 2b00 cmp r3, #0
821f6: d02a beq.n 8224e <xTimerGenericCommand+0x8a>
{
/* Send a command to the timer service task to start the xTimer timer. */
xMessage.xMessageID = xCommandID;
821f8: 68bb ldr r3, [r7, #8]
821fa: 617b str r3, [r7, #20]
xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
821fc: 687b ldr r3, [r7, #4]
821fe: 61bb str r3, [r7, #24]
xMessage.u.xTimerParameters.pxTimer = xTimer;
82200: 68fb ldr r3, [r7, #12]
82202: 61fb str r3, [r7, #28]
if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
82204: 68bb ldr r3, [r7, #8]
82206: 2b05 cmp r3, #5
82208: dc18 bgt.n 8223c <xTimerGenericCommand+0x78>
{
if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
8220a: 4b14 ldr r3, [pc, #80] ; (8225c <xTimerGenericCommand+0x98>)
8220c: 4798 blx r3
8220e: 4603 mov r3, r0
82210: 2b02 cmp r3, #2
82212: d109 bne.n 82228 <xTimerGenericCommand+0x64>
{
xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
82214: 4b10 ldr r3, [pc, #64] ; (82258 <xTimerGenericCommand+0x94>)
82216: 6818 ldr r0, [r3, #0]
82218: f107 0114 add.w r1, r7, #20
8221c: 2300 movs r3, #0
8221e: 6bba ldr r2, [r7, #56] ; 0x38
82220: 4c0f ldr r4, [pc, #60] ; (82260 <xTimerGenericCommand+0x9c>)
82222: 47a0 blx r4
82224: 6278 str r0, [r7, #36] ; 0x24
82226: e012 b.n 8224e <xTimerGenericCommand+0x8a>
}
else
{
xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
82228: 4b0b ldr r3, [pc, #44] ; (82258 <xTimerGenericCommand+0x94>)
8222a: 6818 ldr r0, [r3, #0]
8222c: f107 0114 add.w r1, r7, #20
82230: 2300 movs r3, #0
82232: 2200 movs r2, #0
82234: 4c0a ldr r4, [pc, #40] ; (82260 <xTimerGenericCommand+0x9c>)
82236: 47a0 blx r4
82238: 6278 str r0, [r7, #36] ; 0x24
8223a: e008 b.n 8224e <xTimerGenericCommand+0x8a>
}
}
else
{
xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
8223c: 4b06 ldr r3, [pc, #24] ; (82258 <xTimerGenericCommand+0x94>)
8223e: 6818 ldr r0, [r3, #0]
82240: f107 0114 add.w r1, r7, #20
82244: 2300 movs r3, #0
82246: 683a ldr r2, [r7, #0]
82248: 4c06 ldr r4, [pc, #24] ; (82264 <xTimerGenericCommand+0xa0>)
8224a: 47a0 blx r4
8224c: 6278 str r0, [r7, #36] ; 0x24
else
{
mtCOVERAGE_TEST_MARKER();
}
return xReturn;
8224e: 6a7b ldr r3, [r7, #36] ; 0x24
}
82250: 4618 mov r0, r3
82252: 372c adds r7, #44 ; 0x2c
82254: 46bd mov sp, r7
82256: bd90 pop {r4, r7, pc}
82258: 2000a5b8 .word 0x2000a5b8
8225c: 00081f35 .word 0x00081f35
82260: 00080b71 .word 0x00080b71
82264: 00080d95 .word 0x00080d95
00082268 <prvProcessExpiredTimer>:
return pxTimer->pcTimerName;
}
/*-----------------------------------------------------------*/
static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
{
82268: b590 push {r4, r7, lr}
8226a: b089 sub sp, #36 ; 0x24
8226c: af02 add r7, sp, #8
8226e: 6078 str r0, [r7, #4]
82270: 6039 str r1, [r7, #0]
BaseType_t xResult;
Timer_t * const pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
82272: 4b22 ldr r3, [pc, #136] ; (822fc <prvProcessExpiredTimer+0x94>)
82274: 681b ldr r3, [r3, #0]
82276: 68db ldr r3, [r3, #12]
82278: 68db ldr r3, [r3, #12]
8227a: 617b str r3, [r7, #20]
/* Remove the timer from the list of active timers. A check has already
been performed to ensure the list is not empty. */
( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
8227c: 697b ldr r3, [r7, #20]
8227e: 3304 adds r3, #4
82280: 4618 mov r0, r3
82282: 4b1f ldr r3, [pc, #124] ; (82300 <prvProcessExpiredTimer+0x98>)
82284: 4798 blx r3
traceTIMER_EXPIRED( pxTimer );
/* If the timer is an auto-reload timer then calculate the next
expiry time and re-insert the timer in the list of active timers. */
if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
82286: 697b ldr r3, [r7, #20]
82288: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
8228c: f003 0304 and.w r3, r3, #4
82290: 2b00 cmp r3, #0
82292: d021 beq.n 822d8 <prvProcessExpiredTimer+0x70>
{
/* The timer is inserted into a list using a time relative to anything
other than the current time. It will therefore be inserted into the
correct list relative to the time this task thinks it is now. */
if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
82294: 697b ldr r3, [r7, #20]
82296: 699a ldr r2, [r3, #24]
82298: 687b ldr r3, [r7, #4]
8229a: 18d1 adds r1, r2, r3
8229c: 687b ldr r3, [r7, #4]
8229e: 683a ldr r2, [r7, #0]
822a0: 6978 ldr r0, [r7, #20]
822a2: 4c18 ldr r4, [pc, #96] ; (82304 <prvProcessExpiredTimer+0x9c>)
822a4: 47a0 blx r4
822a6: 4603 mov r3, r0
822a8: 2b00 cmp r3, #0
822aa: d01e beq.n 822ea <prvProcessExpiredTimer+0x82>
{
/* The timer expired before it was added to the active timer
list. Reload it now. */
xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
822ac: 2300 movs r3, #0
822ae: 9300 str r3, [sp, #0]
822b0: 2300 movs r3, #0
822b2: 687a ldr r2, [r7, #4]
822b4: 2100 movs r1, #0
822b6: 6978 ldr r0, [r7, #20]
822b8: 4c13 ldr r4, [pc, #76] ; (82308 <prvProcessExpiredTimer+0xa0>)
822ba: 47a0 blx r4
822bc: 6138 str r0, [r7, #16]
configASSERT( xResult );
822be: 693b ldr r3, [r7, #16]
822c0: 2b00 cmp r3, #0
822c2: d112 bne.n 822ea <prvProcessExpiredTimer+0x82>
822c4: f04f 03a0 mov.w r3, #160 ; 0xa0
822c8: f383 8811 msr BASEPRI, r3
822cc: f3bf 8f6f isb sy
822d0: f3bf 8f4f dsb sy
822d4: 60fb str r3, [r7, #12]
822d6: e7fe b.n 822d6 <prvProcessExpiredTimer+0x6e>
mtCOVERAGE_TEST_MARKER();
}
}
else
{
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
822d8: 697b ldr r3, [r7, #20]
822da: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
822de: f023 0301 bic.w r3, r3, #1
822e2: b2da uxtb r2, r3
822e4: 697b ldr r3, [r7, #20]
822e6: f883 2024 strb.w r2, [r3, #36] ; 0x24
mtCOVERAGE_TEST_MARKER();
}
/* Call the timer callback. */
pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
822ea: 697b ldr r3, [r7, #20]
822ec: 6a1b ldr r3, [r3, #32]
822ee: 6978 ldr r0, [r7, #20]
822f0: 4798 blx r3
}
822f2: bf00 nop
822f4: 371c adds r7, #28
822f6: 46bd mov sp, r7
822f8: bd90 pop {r4, r7, pc}
822fa: bf00 nop
822fc: 2000a5b0 .word 0x2000a5b0
82300: 000803e5 .word 0x000803e5
82304: 00082479 .word 0x00082479
82308: 000821c5 .word 0x000821c5
0008230c <prvTimerTask>:
/*-----------------------------------------------------------*/
static portTASK_FUNCTION( prvTimerTask, pvParameters )
{
8230c: b580 push {r7, lr}
8230e: b084 sub sp, #16
82310: af00 add r7, sp, #0
82312: 6078 str r0, [r7, #4]
for( ;; )
{
/* Query the timers list to see if it contains any timers, and if so,
obtain the time at which the next timer will expire. */
xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
82314: f107 0308 add.w r3, r7, #8
82318: 4618 mov r0, r3
8231a: 4b05 ldr r3, [pc, #20] ; (82330 <prvTimerTask+0x24>)
8231c: 4798 blx r3
8231e: 60f8 str r0, [r7, #12]
/* If a timer has expired, process it. Otherwise, block this task
until either a timer does expire, or a command is received. */
prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
82320: 68bb ldr r3, [r7, #8]
82322: 4619 mov r1, r3
82324: 68f8 ldr r0, [r7, #12]
82326: 4b03 ldr r3, [pc, #12] ; (82334 <prvTimerTask+0x28>)
82328: 4798 blx r3
/* Empty the command queue. */
prvProcessReceivedCommands();
8232a: 4b03 ldr r3, [pc, #12] ; (82338 <prvTimerTask+0x2c>)
8232c: 4798 blx r3
xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
8232e: e7f1 b.n 82314 <prvTimerTask+0x8>
82330: 000823ed .word 0x000823ed
82334: 0008233d .word 0x0008233d
82338: 00082501 .word 0x00082501
0008233c <prvProcessTimerOrBlockTask>:
}
}
/*-----------------------------------------------------------*/
static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
{
8233c: b580 push {r7, lr}
8233e: b084 sub sp, #16
82340: af00 add r7, sp, #0
82342: 6078 str r0, [r7, #4]
82344: 6039 str r1, [r7, #0]
TickType_t xTimeNow;
BaseType_t xTimerListsWereSwitched;
vTaskSuspendAll();
82346: 4b21 ldr r3, [pc, #132] ; (823cc <prvProcessTimerOrBlockTask+0x90>)
82348: 4798 blx r3
/* Obtain the time now to make an assessment as to whether the timer
has expired or not. If obtaining the time causes the lists to switch
then don't process this timer as any timers that remained in the list
when the lists were switched will have been processed within the
prvSampleTimeNow() function. */
xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
8234a: f107 0308 add.w r3, r7, #8
8234e: 4618 mov r0, r3
82350: 4b1f ldr r3, [pc, #124] ; (823d0 <prvProcessTimerOrBlockTask+0x94>)
82352: 4798 blx r3
82354: 60f8 str r0, [r7, #12]
if( xTimerListsWereSwitched == pdFALSE )
82356: 68bb ldr r3, [r7, #8]
82358: 2b00 cmp r3, #0
8235a: d130 bne.n 823be <prvProcessTimerOrBlockTask+0x82>
{
/* The tick count has not overflowed, has the timer expired? */
if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
8235c: 683b ldr r3, [r7, #0]
8235e: 2b00 cmp r3, #0
82360: d10a bne.n 82378 <prvProcessTimerOrBlockTask+0x3c>
82362: 687a ldr r2, [r7, #4]
82364: 68fb ldr r3, [r7, #12]
82366: 429a cmp r2, r3
82368: d806 bhi.n 82378 <prvProcessTimerOrBlockTask+0x3c>
{
( void ) xTaskResumeAll();
8236a: 4b1a ldr r3, [pc, #104] ; (823d4 <prvProcessTimerOrBlockTask+0x98>)
8236c: 4798 blx r3
prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
8236e: 68f9 ldr r1, [r7, #12]
82370: 6878 ldr r0, [r7, #4]
82372: 4b19 ldr r3, [pc, #100] ; (823d8 <prvProcessTimerOrBlockTask+0x9c>)
82374: 4798 blx r3
else
{
( void ) xTaskResumeAll();
}
}
}
82376: e024 b.n 823c2 <prvProcessTimerOrBlockTask+0x86>
if( xListWasEmpty != pdFALSE )
82378: 683b ldr r3, [r7, #0]
8237a: 2b00 cmp r3, #0
8237c: d008 beq.n 82390 <prvProcessTimerOrBlockTask+0x54>
xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
8237e: 4b17 ldr r3, [pc, #92] ; (823dc <prvProcessTimerOrBlockTask+0xa0>)
82380: 681b ldr r3, [r3, #0]
82382: 681b ldr r3, [r3, #0]
82384: 2b00 cmp r3, #0
82386: d101 bne.n 8238c <prvProcessTimerOrBlockTask+0x50>
82388: 2301 movs r3, #1
8238a: e000 b.n 8238e <prvProcessTimerOrBlockTask+0x52>
8238c: 2300 movs r3, #0
8238e: 603b str r3, [r7, #0]
vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
82390: 4b13 ldr r3, [pc, #76] ; (823e0 <prvProcessTimerOrBlockTask+0xa4>)
82392: 6818 ldr r0, [r3, #0]
82394: 687a ldr r2, [r7, #4]
82396: 68fb ldr r3, [r7, #12]
82398: 1ad3 subs r3, r2, r3
8239a: 683a ldr r2, [r7, #0]
8239c: 4619 mov r1, r3
8239e: 4b11 ldr r3, [pc, #68] ; (823e4 <prvProcessTimerOrBlockTask+0xa8>)
823a0: 4798 blx r3
if( xTaskResumeAll() == pdFALSE )
823a2: 4b0c ldr r3, [pc, #48] ; (823d4 <prvProcessTimerOrBlockTask+0x98>)
823a4: 4798 blx r3
823a6: 4603 mov r3, r0
823a8: 2b00 cmp r3, #0
823aa: d10a bne.n 823c2 <prvProcessTimerOrBlockTask+0x86>
portYIELD_WITHIN_API();
823ac: 4b0e ldr r3, [pc, #56] ; (823e8 <prvProcessTimerOrBlockTask+0xac>)
823ae: f04f 5280 mov.w r2, #268435456 ; 0x10000000
823b2: 601a str r2, [r3, #0]
823b4: f3bf 8f4f dsb sy
823b8: f3bf 8f6f isb sy
}
823bc: e001 b.n 823c2 <prvProcessTimerOrBlockTask+0x86>
( void ) xTaskResumeAll();
823be: 4b05 ldr r3, [pc, #20] ; (823d4 <prvProcessTimerOrBlockTask+0x98>)
823c0: 4798 blx r3
}
823c2: bf00 nop
823c4: 3710 adds r7, #16
823c6: 46bd mov sp, r7
823c8: bd80 pop {r7, pc}
823ca: bf00 nop
823cc: 00081705 .word 0x00081705
823d0: 00082431 .word 0x00082431
823d4: 00081721 .word 0x00081721
823d8: 00082269 .word 0x00082269
823dc: 2000a5b4 .word 0x2000a5b4
823e0: 2000a5b8 .word 0x2000a5b8
823e4: 00081349 .word 0x00081349
823e8: e000ed04 .word 0xe000ed04
000823ec <prvGetNextExpireTime>:
/*-----------------------------------------------------------*/
static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
{
823ec: b480 push {r7}
823ee: b085 sub sp, #20
823f0: af00 add r7, sp, #0
823f2: 6078 str r0, [r7, #4]
the timer with the nearest expiry time will expire. If there are no
active timers then just set the next expire time to 0. That will cause
this task to unblock when the tick count overflows, at which point the
timer lists will be switched and the next expiry time can be
re-assessed. */
*pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
823f4: 4b0d ldr r3, [pc, #52] ; (8242c <prvGetNextExpireTime+0x40>)
823f6: 681b ldr r3, [r3, #0]
823f8: 681b ldr r3, [r3, #0]
823fa: 2b00 cmp r3, #0
823fc: d101 bne.n 82402 <prvGetNextExpireTime+0x16>
823fe: 2201 movs r2, #1
82400: e000 b.n 82404 <prvGetNextExpireTime+0x18>
82402: 2200 movs r2, #0
82404: 687b ldr r3, [r7, #4]
82406: 601a str r2, [r3, #0]
if( *pxListWasEmpty == pdFALSE )
82408: 687b ldr r3, [r7, #4]
8240a: 681b ldr r3, [r3, #0]
8240c: 2b00 cmp r3, #0
8240e: d105 bne.n 8241c <prvGetNextExpireTime+0x30>
{
xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
82410: 4b06 ldr r3, [pc, #24] ; (8242c <prvGetNextExpireTime+0x40>)
82412: 681b ldr r3, [r3, #0]
82414: 68db ldr r3, [r3, #12]
82416: 681b ldr r3, [r3, #0]
82418: 60fb str r3, [r7, #12]
8241a: e001 b.n 82420 <prvGetNextExpireTime+0x34>
}
else
{
/* Ensure the task unblocks when the tick count rolls over. */
xNextExpireTime = ( TickType_t ) 0U;
8241c: 2300 movs r3, #0
8241e: 60fb str r3, [r7, #12]
}
return xNextExpireTime;
82420: 68fb ldr r3, [r7, #12]
}
82422: 4618 mov r0, r3
82424: 3714 adds r7, #20
82426: 46bd mov sp, r7
82428: bc80 pop {r7}
8242a: 4770 bx lr
8242c: 2000a5b0 .word 0x2000a5b0
00082430 <prvSampleTimeNow>:
/*-----------------------------------------------------------*/
static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
{
82430: b580 push {r7, lr}
82432: b084 sub sp, #16
82434: af00 add r7, sp, #0
82436: 6078 str r0, [r7, #4]
TickType_t xTimeNow;
PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
xTimeNow = xTaskGetTickCount();
82438: 4b0c ldr r3, [pc, #48] ; (8246c <prvSampleTimeNow+0x3c>)
8243a: 4798 blx r3
8243c: 60f8 str r0, [r7, #12]
if( xTimeNow < xLastTime )
8243e: 4b0c ldr r3, [pc, #48] ; (82470 <prvSampleTimeNow+0x40>)
82440: 681b ldr r3, [r3, #0]
82442: 68fa ldr r2, [r7, #12]
82444: 429a cmp r2, r3
82446: d205 bcs.n 82454 <prvSampleTimeNow+0x24>
{
prvSwitchTimerLists();
82448: 4b0a ldr r3, [pc, #40] ; (82474 <prvSampleTimeNow+0x44>)
8244a: 4798 blx r3
*pxTimerListsWereSwitched = pdTRUE;
8244c: 687b ldr r3, [r7, #4]
8244e: 2201 movs r2, #1
82450: 601a str r2, [r3, #0]
82452: e002 b.n 8245a <prvSampleTimeNow+0x2a>
}
else
{
*pxTimerListsWereSwitched = pdFALSE;
82454: 687b ldr r3, [r7, #4]
82456: 2200 movs r2, #0
82458: 601a str r2, [r3, #0]
}
xLastTime = xTimeNow;
8245a: 4a05 ldr r2, [pc, #20] ; (82470 <prvSampleTimeNow+0x40>)
8245c: 68fb ldr r3, [r7, #12]
8245e: 6013 str r3, [r2, #0]
return xTimeNow;
82460: 68fb ldr r3, [r7, #12]
}
82462: 4618 mov r0, r3
82464: 3710 adds r7, #16
82466: 46bd mov sp, r7
82468: bd80 pop {r7, pc}
8246a: bf00 nop
8246c: 00081871 .word 0x00081871
82470: 2000a5c0 .word 0x2000a5c0
82474: 000826a1 .word 0x000826a1
00082478 <prvInsertTimerInActiveList>:
/*-----------------------------------------------------------*/
static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
{
82478: b580 push {r7, lr}
8247a: b086 sub sp, #24
8247c: af00 add r7, sp, #0
8247e: 60f8 str r0, [r7, #12]
82480: 60b9 str r1, [r7, #8]
82482: 607a str r2, [r7, #4]
82484: 603b str r3, [r7, #0]
BaseType_t xProcessTimerNow = pdFALSE;
82486: 2300 movs r3, #0
82488: 617b str r3, [r7, #20]
listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
8248a: 68fb ldr r3, [r7, #12]
8248c: 68ba ldr r2, [r7, #8]
8248e: 605a str r2, [r3, #4]
listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
82490: 68fb ldr r3, [r7, #12]
82492: 68fa ldr r2, [r7, #12]
82494: 611a str r2, [r3, #16]
if( xNextExpiryTime <= xTimeNow )
82496: 68ba ldr r2, [r7, #8]
82498: 687b ldr r3, [r7, #4]
8249a: 429a cmp r2, r3
8249c: d812 bhi.n 824c4 <prvInsertTimerInActiveList+0x4c>
{
/* Has the expiry time elapsed between the command to start/reset a
timer was issued, and the time the command was processed? */
if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
8249e: 687a ldr r2, [r7, #4]
824a0: 683b ldr r3, [r7, #0]
824a2: 1ad2 subs r2, r2, r3
824a4: 68fb ldr r3, [r7, #12]
824a6: 699b ldr r3, [r3, #24]
824a8: 429a cmp r2, r3
824aa: d302 bcc.n 824b2 <prvInsertTimerInActiveList+0x3a>
{
/* The time between a command being issued and the command being
processed actually exceeds the timers period. */
xProcessTimerNow = pdTRUE;
824ac: 2301 movs r3, #1
824ae: 617b str r3, [r7, #20]
824b0: e01b b.n 824ea <prvInsertTimerInActiveList+0x72>
}
else
{
vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
824b2: 4b10 ldr r3, [pc, #64] ; (824f4 <prvInsertTimerInActiveList+0x7c>)
824b4: 681a ldr r2, [r3, #0]
824b6: 68fb ldr r3, [r7, #12]
824b8: 3304 adds r3, #4
824ba: 4619 mov r1, r3
824bc: 4610 mov r0, r2
824be: 4b0e ldr r3, [pc, #56] ; (824f8 <prvInsertTimerInActiveList+0x80>)
824c0: 4798 blx r3
824c2: e012 b.n 824ea <prvInsertTimerInActiveList+0x72>
}
}
else
{
if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
824c4: 687a ldr r2, [r7, #4]
824c6: 683b ldr r3, [r7, #0]
824c8: 429a cmp r2, r3
824ca: d206 bcs.n 824da <prvInsertTimerInActiveList+0x62>
824cc: 68ba ldr r2, [r7, #8]
824ce: 683b ldr r3, [r7, #0]
824d0: 429a cmp r2, r3
824d2: d302 bcc.n 824da <prvInsertTimerInActiveList+0x62>
{
/* If, since the command was issued, the tick count has overflowed
but the expiry time has not, then the timer must have already passed
its expiry time and should be processed immediately. */
xProcessTimerNow = pdTRUE;
824d4: 2301 movs r3, #1
824d6: 617b str r3, [r7, #20]
824d8: e007 b.n 824ea <prvInsertTimerInActiveList+0x72>
}
else
{
vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
824da: 4b08 ldr r3, [pc, #32] ; (824fc <prvInsertTimerInActiveList+0x84>)
824dc: 681a ldr r2, [r3, #0]
824de: 68fb ldr r3, [r7, #12]
824e0: 3304 adds r3, #4
824e2: 4619 mov r1, r3
824e4: 4610 mov r0, r2
824e6: 4b04 ldr r3, [pc, #16] ; (824f8 <prvInsertTimerInActiveList+0x80>)
824e8: 4798 blx r3
}
}
return xProcessTimerNow;
824ea: 697b ldr r3, [r7, #20]
}
824ec: 4618 mov r0, r3
824ee: 3718 adds r7, #24
824f0: 46bd mov sp, r7
824f2: bd80 pop {r7, pc}
824f4: 2000a5b4 .word 0x2000a5b4
824f8: 00080375 .word 0x00080375
824fc: 2000a5b0 .word 0x2000a5b0
00082500 <prvProcessReceivedCommands>:
/*-----------------------------------------------------------*/
static void prvProcessReceivedCommands( void )
{
82500: b590 push {r4, r7, lr}
82502: b08d sub sp, #52 ; 0x34
82504: af02 add r7, sp, #8
DaemonTaskMessage_t xMessage;
Timer_t *pxTimer;
BaseType_t xTimerListsWereSwitched, xResult;
TickType_t xTimeNow;
while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
82506: e0ac b.n 82662 <prvProcessReceivedCommands+0x162>
}
#endif /* INCLUDE_xTimerPendFunctionCall */
/* Commands that are positive are timer commands rather than pended
function calls. */
if( xMessage.xMessageID >= ( BaseType_t ) 0 )
82508: 68bb ldr r3, [r7, #8]
8250a: 2b00 cmp r3, #0
8250c: f2c0 80a9 blt.w 82662 <prvProcessReceivedCommands+0x162>
{
/* The messages uses the xTimerParameters member to work on a
software timer. */
pxTimer = xMessage.u.xTimerParameters.pxTimer;
82510: 693b ldr r3, [r7, #16]
82512: 627b str r3, [r7, #36] ; 0x24
if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
82514: 6a7b ldr r3, [r7, #36] ; 0x24
82516: 695b ldr r3, [r3, #20]
82518: 2b00 cmp r3, #0
8251a: d004 beq.n 82526 <prvProcessReceivedCommands+0x26>
{
/* The timer is in a list, remove it. */
( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
8251c: 6a7b ldr r3, [r7, #36] ; 0x24
8251e: 3304 adds r3, #4
82520: 4618 mov r0, r3
82522: 4b58 ldr r3, [pc, #352] ; (82684 <prvProcessReceivedCommands+0x184>)
82524: 4798 blx r3
it must be present in the function call. prvSampleTimeNow() must be
called after the message is received from xTimerQueue so there is no
possibility of a higher priority task adding a message to the message
queue with a time that is ahead of the timer daemon task (because it
pre-empted the timer daemon task after the xTimeNow value was set). */
xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
82526: 1d3b adds r3, r7, #4
82528: 4618 mov r0, r3
8252a: 4b57 ldr r3, [pc, #348] ; (82688 <prvProcessReceivedCommands+0x188>)
8252c: 4798 blx r3
8252e: 6238 str r0, [r7, #32]
switch( xMessage.xMessageID )
82530: 68bb ldr r3, [r7, #8]
82532: 2b09 cmp r3, #9
82534: f200 8094 bhi.w 82660 <prvProcessReceivedCommands+0x160>
82538: a201 add r2, pc, #4 ; (adr r2, 82540 <prvProcessReceivedCommands+0x40>)
8253a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
8253e: bf00 nop
82540: 00082569 .word 0x00082569
82544: 00082569 .word 0x00082569
82548: 00082569 .word 0x00082569
8254c: 000825db .word 0x000825db
82550: 000825ef .word 0x000825ef
82554: 00082637 .word 0x00082637
82558: 00082569 .word 0x00082569
8255c: 00082569 .word 0x00082569
82560: 000825db .word 0x000825db
82564: 000825ef .word 0x000825ef
case tmrCOMMAND_START_FROM_ISR :
case tmrCOMMAND_RESET :
case tmrCOMMAND_RESET_FROM_ISR :
case tmrCOMMAND_START_DONT_TRACE :
/* Start or restart a timer. */
pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
82568: 6a7b ldr r3, [r7, #36] ; 0x24
8256a: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
8256e: f043 0301 orr.w r3, r3, #1
82572: b2da uxtb r2, r3
82574: 6a7b ldr r3, [r7, #36] ; 0x24
82576: f883 2024 strb.w r2, [r3, #36] ; 0x24
if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
8257a: 68fa ldr r2, [r7, #12]
8257c: 6a7b ldr r3, [r7, #36] ; 0x24
8257e: 699b ldr r3, [r3, #24]
82580: 18d1 adds r1, r2, r3
82582: 68fb ldr r3, [r7, #12]
82584: 6a3a ldr r2, [r7, #32]
82586: 6a78 ldr r0, [r7, #36] ; 0x24
82588: 4c40 ldr r4, [pc, #256] ; (8268c <prvProcessReceivedCommands+0x18c>)
8258a: 47a0 blx r4
8258c: 4603 mov r3, r0
8258e: 2b00 cmp r3, #0
82590: d067 beq.n 82662 <prvProcessReceivedCommands+0x162>
{
/* The timer expired before it was added to the active
timer list. Process it now. */
pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
82592: 6a7b ldr r3, [r7, #36] ; 0x24
82594: 6a1b ldr r3, [r3, #32]
82596: 6a78 ldr r0, [r7, #36] ; 0x24
82598: 4798 blx r3
traceTIMER_EXPIRED( pxTimer );
if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
8259a: 6a7b ldr r3, [r7, #36] ; 0x24
8259c: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
825a0: f003 0304 and.w r3, r3, #4
825a4: 2b00 cmp r3, #0
825a6: d05c beq.n 82662 <prvProcessReceivedCommands+0x162>
{
xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
825a8: 68fa ldr r2, [r7, #12]
825aa: 6a7b ldr r3, [r7, #36] ; 0x24
825ac: 699b ldr r3, [r3, #24]
825ae: 441a add r2, r3
825b0: 2300 movs r3, #0
825b2: 9300 str r3, [sp, #0]
825b4: 2300 movs r3, #0
825b6: 2100 movs r1, #0
825b8: 6a78 ldr r0, [r7, #36] ; 0x24
825ba: 4c35 ldr r4, [pc, #212] ; (82690 <prvProcessReceivedCommands+0x190>)
825bc: 47a0 blx r4
825be: 61f8 str r0, [r7, #28]
configASSERT( xResult );
825c0: 69fb ldr r3, [r7, #28]
825c2: 2b00 cmp r3, #0
825c4: d14d bne.n 82662 <prvProcessReceivedCommands+0x162>
825c6: f04f 03a0 mov.w r3, #160 ; 0xa0
825ca: f383 8811 msr BASEPRI, r3
825ce: f3bf 8f6f isb sy
825d2: f3bf 8f4f dsb sy
825d6: 61bb str r3, [r7, #24]
825d8: e7fe b.n 825d8 <prvProcessReceivedCommands+0xd8>
break;
case tmrCOMMAND_STOP :
case tmrCOMMAND_STOP_FROM_ISR :
/* The timer has already been removed from the active list. */
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
825da: 6a7b ldr r3, [r7, #36] ; 0x24
825dc: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
825e0: f023 0301 bic.w r3, r3, #1
825e4: b2da uxtb r2, r3
825e6: 6a7b ldr r3, [r7, #36] ; 0x24
825e8: f883 2024 strb.w r2, [r3, #36] ; 0x24
break;
825ec: e039 b.n 82662 <prvProcessReceivedCommands+0x162>
case tmrCOMMAND_CHANGE_PERIOD :
case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
825ee: 6a7b ldr r3, [r7, #36] ; 0x24
825f0: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
825f4: f043 0301 orr.w r3, r3, #1
825f8: b2da uxtb r2, r3
825fa: 6a7b ldr r3, [r7, #36] ; 0x24
825fc: f883 2024 strb.w r2, [r3, #36] ; 0x24
pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
82600: 68fa ldr r2, [r7, #12]
82602: 6a7b ldr r3, [r7, #36] ; 0x24
82604: 619a str r2, [r3, #24]
configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
82606: 6a7b ldr r3, [r7, #36] ; 0x24
82608: 699b ldr r3, [r3, #24]
8260a: 2b00 cmp r3, #0
8260c: d109 bne.n 82622 <prvProcessReceivedCommands+0x122>
8260e: f04f 03a0 mov.w r3, #160 ; 0xa0
82612: f383 8811 msr BASEPRI, r3
82616: f3bf 8f6f isb sy
8261a: f3bf 8f4f dsb sy
8261e: 617b str r3, [r7, #20]
82620: e7fe b.n 82620 <prvProcessReceivedCommands+0x120>
be longer or shorter than the old one. The command time is
therefore set to the current time, and as the period cannot
be zero the next expiry time can only be in the future,
meaning (unlike for the xTimerStart() case above) there is
no fail case that needs to be handled here. */
( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
82622: 6a7b ldr r3, [r7, #36] ; 0x24
82624: 699a ldr r2, [r3, #24]
82626: 6a3b ldr r3, [r7, #32]
82628: 18d1 adds r1, r2, r3
8262a: 6a3b ldr r3, [r7, #32]
8262c: 6a3a ldr r2, [r7, #32]
8262e: 6a78 ldr r0, [r7, #36] ; 0x24
82630: 4c16 ldr r4, [pc, #88] ; (8268c <prvProcessReceivedCommands+0x18c>)
82632: 47a0 blx r4
break;
82634: e015 b.n 82662 <prvProcessReceivedCommands+0x162>
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
{
/* The timer has already been removed from the active list,
just free up the memory if the memory was dynamically
allocated. */
if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
82636: 6a7b ldr r3, [r7, #36] ; 0x24
82638: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
8263c: f003 0302 and.w r3, r3, #2
82640: 2b00 cmp r3, #0
82642: d103 bne.n 8264c <prvProcessReceivedCommands+0x14c>
{
vPortFree( pxTimer );
82644: 6a78 ldr r0, [r7, #36] ; 0x24
82646: 4b13 ldr r3, [pc, #76] ; (82694 <prvProcessReceivedCommands+0x194>)
82648: 4798 blx r3
8264a: e00a b.n 82662 <prvProcessReceivedCommands+0x162>
}
else
{
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
8264c: 6a7b ldr r3, [r7, #36] ; 0x24
8264e: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
82652: f023 0301 bic.w r3, r3, #1
82656: b2da uxtb r2, r3
82658: 6a7b ldr r3, [r7, #36] ; 0x24
8265a: f883 2024 strb.w r2, [r3, #36] ; 0x24
no need to free the memory - just mark the timer as
"not active". */
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
}
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
break;
8265e: e000 b.n 82662 <prvProcessReceivedCommands+0x162>
default :
/* Don't expect to get here. */
break;
82660: bf00 nop
while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
82662: 4b0d ldr r3, [pc, #52] ; (82698 <prvProcessReceivedCommands+0x198>)
82664: 681b ldr r3, [r3, #0]
82666: f107 0108 add.w r1, r7, #8
8266a: 2200 movs r2, #0
8266c: 4618 mov r0, r3
8266e: 4b0b ldr r3, [pc, #44] ; (8269c <prvProcessReceivedCommands+0x19c>)
82670: 4798 blx r3
82672: 4603 mov r3, r0
82674: 2b00 cmp r3, #0
82676: f47f af47 bne.w 82508 <prvProcessReceivedCommands+0x8>
}
}
}
}
8267a: bf00 nop
8267c: 372c adds r7, #44 ; 0x2c
8267e: 46bd mov sp, r7
82680: bd90 pop {r4, r7, pc}
82682: bf00 nop
82684: 000803e5 .word 0x000803e5
82688: 00082431 .word 0x00082431
8268c: 00082479 .word 0x00082479
82690: 000821c5 .word 0x000821c5
82694: 00080291 .word 0x00080291
82698: 2000a5b8 .word 0x2000a5b8
8269c: 00080ed1 .word 0x00080ed1
000826a0 <prvSwitchTimerLists>:
/*-----------------------------------------------------------*/
static void prvSwitchTimerLists( void )
{
826a0: b590 push {r4, r7, lr}
826a2: b089 sub sp, #36 ; 0x24
826a4: af02 add r7, sp, #8
/* The tick count has overflowed. The timer lists must be switched.
If there are any timers still referenced from the current timer list
then they must have expired and should be processed before the lists
are switched. */
while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
826a6: e047 b.n 82738 <prvSwitchTimerLists+0x98>
{
xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
826a8: 4b2d ldr r3, [pc, #180] ; (82760 <prvSwitchTimerLists+0xc0>)
826aa: 681b ldr r3, [r3, #0]
826ac: 68db ldr r3, [r3, #12]
826ae: 681b ldr r3, [r3, #0]
826b0: 617b str r3, [r7, #20]
/* Remove the timer from the list. */
pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
826b2: 4b2b ldr r3, [pc, #172] ; (82760 <prvSwitchTimerLists+0xc0>)
826b4: 681b ldr r3, [r3, #0]
826b6: 68db ldr r3, [r3, #12]
826b8: 68db ldr r3, [r3, #12]
826ba: 613b str r3, [r7, #16]
( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
826bc: 693b ldr r3, [r7, #16]
826be: 3304 adds r3, #4
826c0: 4618 mov r0, r3
826c2: 4b28 ldr r3, [pc, #160] ; (82764 <prvSwitchTimerLists+0xc4>)
826c4: 4798 blx r3
traceTIMER_EXPIRED( pxTimer );
/* Execute its callback, then send a command to restart the timer if
it is an auto-reload timer. It cannot be restarted here as the lists
have not yet been switched. */
pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
826c6: 693b ldr r3, [r7, #16]
826c8: 6a1b ldr r3, [r3, #32]
826ca: 6938 ldr r0, [r7, #16]
826cc: 4798 blx r3
if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
826ce: 693b ldr r3, [r7, #16]
826d0: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
826d4: f003 0304 and.w r3, r3, #4
826d8: 2b00 cmp r3, #0
826da: d02d beq.n 82738 <prvSwitchTimerLists+0x98>
the timer going into the same timer list then it has already expired
and the timer should be re-inserted into the current list so it is
processed again within this loop. Otherwise a command should be sent
to restart the timer to ensure it is only inserted into a list after
the lists have been swapped. */
xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
826dc: 693b ldr r3, [r7, #16]
826de: 699a ldr r2, [r3, #24]
826e0: 697b ldr r3, [r7, #20]
826e2: 4413 add r3, r2
826e4: 60fb str r3, [r7, #12]
if( xReloadTime > xNextExpireTime )
826e6: 68fa ldr r2, [r7, #12]
826e8: 697b ldr r3, [r7, #20]
826ea: 429a cmp r2, r3
826ec: d90e bls.n 8270c <prvSwitchTimerLists+0x6c>
{
listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
826ee: 693b ldr r3, [r7, #16]
826f0: 68fa ldr r2, [r7, #12]
826f2: 605a str r2, [r3, #4]
listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
826f4: 693b ldr r3, [r7, #16]
826f6: 693a ldr r2, [r7, #16]
826f8: 611a str r2, [r3, #16]
vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
826fa: 4b19 ldr r3, [pc, #100] ; (82760 <prvSwitchTimerLists+0xc0>)
826fc: 681a ldr r2, [r3, #0]
826fe: 693b ldr r3, [r7, #16]
82700: 3304 adds r3, #4
82702: 4619 mov r1, r3
82704: 4610 mov r0, r2
82706: 4b18 ldr r3, [pc, #96] ; (82768 <prvSwitchTimerLists+0xc8>)
82708: 4798 blx r3
8270a: e015 b.n 82738 <prvSwitchTimerLists+0x98>
}
else
{
xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
8270c: 2300 movs r3, #0
8270e: 9300 str r3, [sp, #0]
82710: 2300 movs r3, #0
82712: 697a ldr r2, [r7, #20]
82714: 2100 movs r1, #0
82716: 6938 ldr r0, [r7, #16]
82718: 4c14 ldr r4, [pc, #80] ; (8276c <prvSwitchTimerLists+0xcc>)
8271a: 47a0 blx r4
8271c: 60b8 str r0, [r7, #8]
configASSERT( xResult );
8271e: 68bb ldr r3, [r7, #8]
82720: 2b00 cmp r3, #0
82722: d109 bne.n 82738 <prvSwitchTimerLists+0x98>
82724: f04f 03a0 mov.w r3, #160 ; 0xa0
82728: f383 8811 msr BASEPRI, r3
8272c: f3bf 8f6f isb sy
82730: f3bf 8f4f dsb sy
82734: 603b str r3, [r7, #0]
82736: e7fe b.n 82736 <prvSwitchTimerLists+0x96>
while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
82738: 4b09 ldr r3, [pc, #36] ; (82760 <prvSwitchTimerLists+0xc0>)
8273a: 681b ldr r3, [r3, #0]
8273c: 681b ldr r3, [r3, #0]
8273e: 2b00 cmp r3, #0
82740: d1b2 bne.n 826a8 <prvSwitchTimerLists+0x8>
{
mtCOVERAGE_TEST_MARKER();
}
}
pxTemp = pxCurrentTimerList;
82742: 4b07 ldr r3, [pc, #28] ; (82760 <prvSwitchTimerLists+0xc0>)
82744: 681b ldr r3, [r3, #0]
82746: 607b str r3, [r7, #4]
pxCurrentTimerList = pxOverflowTimerList;
82748: 4b09 ldr r3, [pc, #36] ; (82770 <prvSwitchTimerLists+0xd0>)
8274a: 681b ldr r3, [r3, #0]
8274c: 4a04 ldr r2, [pc, #16] ; (82760 <prvSwitchTimerLists+0xc0>)
8274e: 6013 str r3, [r2, #0]
pxOverflowTimerList = pxTemp;
82750: 4a07 ldr r2, [pc, #28] ; (82770 <prvSwitchTimerLists+0xd0>)
82752: 687b ldr r3, [r7, #4]
82754: 6013 str r3, [r2, #0]
}
82756: bf00 nop
82758: 371c adds r7, #28
8275a: 46bd mov sp, r7
8275c: bd90 pop {r4, r7, pc}
8275e: bf00 nop
82760: 2000a5b0 .word 0x2000a5b0
82764: 000803e5 .word 0x000803e5
82768: 00080375 .word 0x00080375
8276c: 000821c5 .word 0x000821c5
82770: 2000a5b4 .word 0x2000a5b4
00082774 <prvCheckForValidListAndQueue>:
/*-----------------------------------------------------------*/
static void prvCheckForValidListAndQueue( void )
{
82774: b580 push {r7, lr}
82776: af00 add r7, sp, #0
/* Check that the list from which active timers are referenced, and the
queue used to communicate with the timer service, have been
initialised. */
taskENTER_CRITICAL();
82778: 4b0e ldr r3, [pc, #56] ; (827b4 <prvCheckForValidListAndQueue+0x40>)
8277a: 4798 blx r3
{
if( xTimerQueue == NULL )
8277c: 4b0e ldr r3, [pc, #56] ; (827b8 <prvCheckForValidListAndQueue+0x44>)
8277e: 681b ldr r3, [r3, #0]
82780: 2b00 cmp r3, #0
82782: d113 bne.n 827ac <prvCheckForValidListAndQueue+0x38>
{
vListInitialise( &xActiveTimerList1 );
82784: 480d ldr r0, [pc, #52] ; (827bc <prvCheckForValidListAndQueue+0x48>)
82786: 4b0e ldr r3, [pc, #56] ; (827c0 <prvCheckForValidListAndQueue+0x4c>)
82788: 4798 blx r3
vListInitialise( &xActiveTimerList2 );
8278a: 480e ldr r0, [pc, #56] ; (827c4 <prvCheckForValidListAndQueue+0x50>)
8278c: 4b0c ldr r3, [pc, #48] ; (827c0 <prvCheckForValidListAndQueue+0x4c>)
8278e: 4798 blx r3
pxCurrentTimerList = &xActiveTimerList1;
82790: 4b0d ldr r3, [pc, #52] ; (827c8 <prvCheckForValidListAndQueue+0x54>)
82792: 4a0a ldr r2, [pc, #40] ; (827bc <prvCheckForValidListAndQueue+0x48>)
82794: 601a str r2, [r3, #0]
pxOverflowTimerList = &xActiveTimerList2;
82796: 4b0d ldr r3, [pc, #52] ; (827cc <prvCheckForValidListAndQueue+0x58>)
82798: 4a0a ldr r2, [pc, #40] ; (827c4 <prvCheckForValidListAndQueue+0x50>)
8279a: 601a str r2, [r3, #0]
xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
}
#else
{
xTimerQueue = xQueueCreate( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, sizeof( DaemonTaskMessage_t ) );
8279c: 2200 movs r2, #0
8279e: 210c movs r1, #12
827a0: 2005 movs r0, #5
827a2: 4b0b ldr r3, [pc, #44] ; (827d0 <prvCheckForValidListAndQueue+0x5c>)
827a4: 4798 blx r3
827a6: 4602 mov r2, r0
827a8: 4b03 ldr r3, [pc, #12] ; (827b8 <prvCheckForValidListAndQueue+0x44>)
827aa: 601a str r2, [r3, #0]
else
{
mtCOVERAGE_TEST_MARKER();
}
}
taskEXIT_CRITICAL();
827ac: 4b09 ldr r3, [pc, #36] ; (827d4 <prvCheckForValidListAndQueue+0x60>)
827ae: 4798 blx r3
}
827b0: bf00 nop
827b2: bd80 pop {r7, pc}
827b4: 000807e9 .word 0x000807e9
827b8: 2000a5b8 .word 0x2000a5b8
827bc: 2000a588 .word 0x2000a588
827c0: 000802d9 .word 0x000802d9
827c4: 2000a59c .word 0x2000a59c
827c8: 2000a5b0 .word 0x2000a5b0
827cc: 2000a5b4 .word 0x2000a5b4
827d0: 00080ab9 .word 0x00080ab9
827d4: 00080845 .word 0x00080845
000827d8 <__libc_init_array>:
827d8: b570 push {r4, r5, r6, lr}
827da: 4e0f ldr r6, [pc, #60] ; (82818 <__libc_init_array+0x40>)
827dc: 4d0f ldr r5, [pc, #60] ; (8281c <__libc_init_array+0x44>)
827de: 1b76 subs r6, r6, r5
827e0: 10b6 asrs r6, r6, #2
827e2: bf18 it ne
827e4: 2400 movne r4, #0
827e6: d005 beq.n 827f4 <__libc_init_array+0x1c>
827e8: 3401 adds r4, #1
827ea: f855 3b04 ldr.w r3, [r5], #4
827ee: 4798 blx r3
827f0: 42a6 cmp r6, r4
827f2: d1f9 bne.n 827e8 <__libc_init_array+0x10>
827f4: 4e0a ldr r6, [pc, #40] ; (82820 <__libc_init_array+0x48>)
827f6: 4d0b ldr r5, [pc, #44] ; (82824 <__libc_init_array+0x4c>)
827f8: f000 f984 bl 82b04 <_init>
827fc: 1b76 subs r6, r6, r5
827fe: 10b6 asrs r6, r6, #2
82800: bf18 it ne
82802: 2400 movne r4, #0
82804: d006 beq.n 82814 <__libc_init_array+0x3c>
82806: 3401 adds r4, #1
82808: f855 3b04 ldr.w r3, [r5], #4
8280c: 4798 blx r3
8280e: 42a6 cmp r6, r4
82810: d1f9 bne.n 82806 <__libc_init_array+0x2e>
82812: bd70 pop {r4, r5, r6, pc}
82814: bd70 pop {r4, r5, r6, pc}
82816: bf00 nop
82818: 00082b10 .word 0x00082b10
8281c: 00082b10 .word 0x00082b10
82820: 00082b18 .word 0x00082b18
82824: 00082b10 .word 0x00082b10
00082828 <memcpy>:
82828: 4684 mov ip, r0
8282a: ea41 0300 orr.w r3, r1, r0
8282e: f013 0303 ands.w r3, r3, #3
82832: d149 bne.n 828c8 <memcpy+0xa0>
82834: 3a40 subs r2, #64 ; 0x40
82836: d323 bcc.n 82880 <memcpy+0x58>
82838: 680b ldr r3, [r1, #0]
8283a: 6003 str r3, [r0, #0]
8283c: 684b ldr r3, [r1, #4]
8283e: 6043 str r3, [r0, #4]
82840: 688b ldr r3, [r1, #8]
82842: 6083 str r3, [r0, #8]
82844: 68cb ldr r3, [r1, #12]
82846: 60c3 str r3, [r0, #12]
82848: 690b ldr r3, [r1, #16]
8284a: 6103 str r3, [r0, #16]
8284c: 694b ldr r3, [r1, #20]
8284e: 6143 str r3, [r0, #20]
82850: 698b ldr r3, [r1, #24]
82852: 6183 str r3, [r0, #24]
82854: 69cb ldr r3, [r1, #28]
82856: 61c3 str r3, [r0, #28]
82858: 6a0b ldr r3, [r1, #32]
8285a: 6203 str r3, [r0, #32]
8285c: 6a4b ldr r3, [r1, #36] ; 0x24
8285e: 6243 str r3, [r0, #36] ; 0x24
82860: 6a8b ldr r3, [r1, #40] ; 0x28
82862: 6283 str r3, [r0, #40] ; 0x28
82864: 6acb ldr r3, [r1, #44] ; 0x2c
82866: 62c3 str r3, [r0, #44] ; 0x2c
82868: 6b0b ldr r3, [r1, #48] ; 0x30
8286a: 6303 str r3, [r0, #48] ; 0x30
8286c: 6b4b ldr r3, [r1, #52] ; 0x34
8286e: 6343 str r3, [r0, #52] ; 0x34
82870: 6b8b ldr r3, [r1, #56] ; 0x38
82872: 6383 str r3, [r0, #56] ; 0x38
82874: 6bcb ldr r3, [r1, #60] ; 0x3c
82876: 63c3 str r3, [r0, #60] ; 0x3c
82878: 3040 adds r0, #64 ; 0x40
8287a: 3140 adds r1, #64 ; 0x40
8287c: 3a40 subs r2, #64 ; 0x40
8287e: d2db bcs.n 82838 <memcpy+0x10>
82880: 3230 adds r2, #48 ; 0x30
82882: d30b bcc.n 8289c <memcpy+0x74>
82884: 680b ldr r3, [r1, #0]
82886: 6003 str r3, [r0, #0]
82888: 684b ldr r3, [r1, #4]
8288a: 6043 str r3, [r0, #4]
8288c: 688b ldr r3, [r1, #8]
8288e: 6083 str r3, [r0, #8]
82890: 68cb ldr r3, [r1, #12]
82892: 60c3 str r3, [r0, #12]
82894: 3010 adds r0, #16
82896: 3110 adds r1, #16
82898: 3a10 subs r2, #16
8289a: d2f3 bcs.n 82884 <memcpy+0x5c>
8289c: 320c adds r2, #12
8289e: d305 bcc.n 828ac <memcpy+0x84>
828a0: f851 3b04 ldr.w r3, [r1], #4
828a4: f840 3b04 str.w r3, [r0], #4
828a8: 3a04 subs r2, #4
828aa: d2f9 bcs.n 828a0 <memcpy+0x78>
828ac: 3204 adds r2, #4
828ae: d008 beq.n 828c2 <memcpy+0x9a>
828b0: 07d2 lsls r2, r2, #31
828b2: bf1c itt ne
828b4: f811 3b01 ldrbne.w r3, [r1], #1
828b8: f800 3b01 strbne.w r3, [r0], #1
828bc: d301 bcc.n 828c2 <memcpy+0x9a>
828be: 880b ldrh r3, [r1, #0]
828c0: 8003 strh r3, [r0, #0]
828c2: 4660 mov r0, ip
828c4: 4770 bx lr
828c6: bf00 nop
828c8: 2a08 cmp r2, #8
828ca: d313 bcc.n 828f4 <memcpy+0xcc>
828cc: 078b lsls r3, r1, #30
828ce: d0b1 beq.n 82834 <memcpy+0xc>
828d0: f010 0303 ands.w r3, r0, #3
828d4: d0ae beq.n 82834 <memcpy+0xc>
828d6: f1c3 0304 rsb r3, r3, #4
828da: 1ad2 subs r2, r2, r3
828dc: 07db lsls r3, r3, #31
828de: bf1c itt ne
828e0: f811 3b01 ldrbne.w r3, [r1], #1
828e4: f800 3b01 strbne.w r3, [r0], #1
828e8: d3a4 bcc.n 82834 <memcpy+0xc>
828ea: f831 3b02 ldrh.w r3, [r1], #2
828ee: f820 3b02 strh.w r3, [r0], #2
828f2: e79f b.n 82834 <memcpy+0xc>
828f4: 3a04 subs r2, #4
828f6: d3d9 bcc.n 828ac <memcpy+0x84>
828f8: 3a01 subs r2, #1
828fa: f811 3b01 ldrb.w r3, [r1], #1
828fe: f800 3b01 strb.w r3, [r0], #1
82902: d2f9 bcs.n 828f8 <memcpy+0xd0>
82904: 780b ldrb r3, [r1, #0]
82906: 7003 strb r3, [r0, #0]
82908: 784b ldrb r3, [r1, #1]
8290a: 7043 strb r3, [r0, #1]
8290c: 788b ldrb r3, [r1, #2]
8290e: 7083 strb r3, [r0, #2]
82910: 4660 mov r0, ip
82912: 4770 bx lr
00082914 <memset>:
82914: b470 push {r4, r5, r6}
82916: 0786 lsls r6, r0, #30
82918: d046 beq.n 829a8 <memset+0x94>
8291a: 1e54 subs r4, r2, #1
8291c: 2a00 cmp r2, #0
8291e: d041 beq.n 829a4 <memset+0x90>
82920: b2ca uxtb r2, r1
82922: 4603 mov r3, r0
82924: e002 b.n 8292c <memset+0x18>
82926: f114 34ff adds.w r4, r4, #4294967295
8292a: d33b bcc.n 829a4 <memset+0x90>
8292c: f803 2b01 strb.w r2, [r3], #1
82930: 079d lsls r5, r3, #30
82932: d1f8 bne.n 82926 <memset+0x12>
82934: 2c03 cmp r4, #3
82936: d92e bls.n 82996 <memset+0x82>
82938: b2cd uxtb r5, r1
8293a: ea45 2505 orr.w r5, r5, r5, lsl #8
8293e: 2c0f cmp r4, #15
82940: ea45 4505 orr.w r5, r5, r5, lsl #16
82944: d919 bls.n 8297a <memset+0x66>
82946: 4626 mov r6, r4
82948: f103 0210 add.w r2, r3, #16
8294c: 3e10 subs r6, #16
8294e: 2e0f cmp r6, #15
82950: f842 5c10 str.w r5, [r2, #-16]
82954: f842 5c0c str.w r5, [r2, #-12]
82958: f842 5c08 str.w r5, [r2, #-8]
8295c: f842 5c04 str.w r5, [r2, #-4]
82960: f102 0210 add.w r2, r2, #16
82964: d8f2 bhi.n 8294c <memset+0x38>
82966: f1a4 0210 sub.w r2, r4, #16
8296a: f022 020f bic.w r2, r2, #15
8296e: f004 040f and.w r4, r4, #15
82972: 3210 adds r2, #16
82974: 2c03 cmp r4, #3
82976: 4413 add r3, r2
82978: d90d bls.n 82996 <memset+0x82>
8297a: 461e mov r6, r3
8297c: 4622 mov r2, r4
8297e: 3a04 subs r2, #4
82980: 2a03 cmp r2, #3
82982: f846 5b04 str.w r5, [r6], #4
82986: d8fa bhi.n 8297e <memset+0x6a>
82988: 1f22 subs r2, r4, #4
8298a: f022 0203 bic.w r2, r2, #3
8298e: 3204 adds r2, #4
82990: 4413 add r3, r2
82992: f004 0403 and.w r4, r4, #3
82996: b12c cbz r4, 829a4 <memset+0x90>
82998: b2c9 uxtb r1, r1
8299a: 441c add r4, r3
8299c: f803 1b01 strb.w r1, [r3], #1
829a0: 429c cmp r4, r3
829a2: d1fb bne.n 8299c <memset+0x88>
829a4: bc70 pop {r4, r5, r6}
829a6: 4770 bx lr
829a8: 4614 mov r4, r2
829aa: 4603 mov r3, r0
829ac: e7c2 b.n 82934 <memset+0x20>
829ae: bf00 nop
000829b0 <register_fini>:
829b0: 4b02 ldr r3, [pc, #8] ; (829bc <register_fini+0xc>)
829b2: b113 cbz r3, 829ba <register_fini+0xa>
829b4: 4802 ldr r0, [pc, #8] ; (829c0 <register_fini+0x10>)
829b6: f000 b805 b.w 829c4 <atexit>
829ba: 4770 bx lr
829bc: 00000000 .word 0x00000000
829c0: 000829d1 .word 0x000829d1
000829c4 <atexit>:
829c4: 2300 movs r3, #0
829c6: 4601 mov r1, r0
829c8: 461a mov r2, r3
829ca: 4618 mov r0, r3
829cc: f000 b81e b.w 82a0c <__register_exitproc>
000829d0 <__libc_fini_array>:
829d0: b538 push {r3, r4, r5, lr}
829d2: 4c0a ldr r4, [pc, #40] ; (829fc <__libc_fini_array+0x2c>)
829d4: 4d0a ldr r5, [pc, #40] ; (82a00 <__libc_fini_array+0x30>)
829d6: 1b64 subs r4, r4, r5
829d8: 10a4 asrs r4, r4, #2
829da: d00a beq.n 829f2 <__libc_fini_array+0x22>
829dc: f104 4380 add.w r3, r4, #1073741824 ; 0x40000000
829e0: 3b01 subs r3, #1
829e2: eb05 0583 add.w r5, r5, r3, lsl #2
829e6: 3c01 subs r4, #1
829e8: f855 3904 ldr.w r3, [r5], #-4
829ec: 4798 blx r3
829ee: 2c00 cmp r4, #0
829f0: d1f9 bne.n 829e6 <__libc_fini_array+0x16>
829f2: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
829f6: f000 b88f b.w 82b18 <_fini>
829fa: bf00 nop
829fc: 00082b28 .word 0x00082b28
82a00: 00082b24 .word 0x00082b24
00082a04 <__retarget_lock_acquire_recursive>:
82a04: 4770 bx lr
82a06: bf00 nop
00082a08 <__retarget_lock_release_recursive>:
82a08: 4770 bx lr
82a0a: bf00 nop
00082a0c <__register_exitproc>:
82a0c: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
82a10: 4d2c ldr r5, [pc, #176] ; (82ac4 <__register_exitproc+0xb8>)
82a12: 4606 mov r6, r0
82a14: 6828 ldr r0, [r5, #0]
82a16: 4698 mov r8, r3
82a18: 460f mov r7, r1
82a1a: 4691 mov r9, r2
82a1c: f7ff fff2 bl 82a04 <__retarget_lock_acquire_recursive>
82a20: 4b29 ldr r3, [pc, #164] ; (82ac8 <__register_exitproc+0xbc>)
82a22: 681c ldr r4, [r3, #0]
82a24: f8d4 3148 ldr.w r3, [r4, #328] ; 0x148
82a28: 2b00 cmp r3, #0
82a2a: d03e beq.n 82aaa <__register_exitproc+0x9e>
82a2c: 685a ldr r2, [r3, #4]
82a2e: 2a1f cmp r2, #31
82a30: dc1c bgt.n 82a6c <__register_exitproc+0x60>
82a32: f102 0e01 add.w lr, r2, #1
82a36: b176 cbz r6, 82a56 <__register_exitproc+0x4a>
82a38: 2101 movs r1, #1
82a3a: eb03 0482 add.w r4, r3, r2, lsl #2
82a3e: f8c4 9088 str.w r9, [r4, #136] ; 0x88
82a42: f8d3 0188 ldr.w r0, [r3, #392] ; 0x188
82a46: 4091 lsls r1, r2
82a48: 4308 orrs r0, r1
82a4a: 2e02 cmp r6, #2
82a4c: f8c3 0188 str.w r0, [r3, #392] ; 0x188
82a50: f8c4 8108 str.w r8, [r4, #264] ; 0x108
82a54: d023 beq.n 82a9e <__register_exitproc+0x92>
82a56: 3202 adds r2, #2
82a58: f8c3 e004 str.w lr, [r3, #4]
82a5c: 6828 ldr r0, [r5, #0]
82a5e: f843 7022 str.w r7, [r3, r2, lsl #2]
82a62: f7ff ffd1 bl 82a08 <__retarget_lock_release_recursive>
82a66: 2000 movs r0, #0
82a68: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
82a6c: 4b17 ldr r3, [pc, #92] ; (82acc <__register_exitproc+0xc0>)
82a6e: b30b cbz r3, 82ab4 <__register_exitproc+0xa8>
82a70: f44f 70c8 mov.w r0, #400 ; 0x190
82a74: f3af 8000 nop.w
82a78: 4603 mov r3, r0
82a7a: b1d8 cbz r0, 82ab4 <__register_exitproc+0xa8>
82a7c: 2000 movs r0, #0
82a7e: f8d4 1148 ldr.w r1, [r4, #328] ; 0x148
82a82: f04f 0e01 mov.w lr, #1
82a86: 6058 str r0, [r3, #4]
82a88: 6019 str r1, [r3, #0]
82a8a: 4602 mov r2, r0
82a8c: f8c4 3148 str.w r3, [r4, #328] ; 0x148
82a90: f8c3 0188 str.w r0, [r3, #392] ; 0x188
82a94: f8c3 018c str.w r0, [r3, #396] ; 0x18c
82a98: 2e00 cmp r6, #0
82a9a: d0dc beq.n 82a56 <__register_exitproc+0x4a>
82a9c: e7cc b.n 82a38 <__register_exitproc+0x2c>
82a9e: f8d3 018c ldr.w r0, [r3, #396] ; 0x18c
82aa2: 4301 orrs r1, r0
82aa4: f8c3 118c str.w r1, [r3, #396] ; 0x18c
82aa8: e7d5 b.n 82a56 <__register_exitproc+0x4a>
82aaa: f504 73a6 add.w r3, r4, #332 ; 0x14c
82aae: f8c4 3148 str.w r3, [r4, #328] ; 0x148
82ab2: e7bb b.n 82a2c <__register_exitproc+0x20>
82ab4: 6828 ldr r0, [r5, #0]
82ab6: f7ff ffa7 bl 82a08 <__retarget_lock_release_recursive>
82aba: f04f 30ff mov.w r0, #4294967295
82abe: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
82ac2: bf00 nop
82ac4: 20000430 .word 0x20000430
82ac8: 00082b00 .word 0x00082b00
82acc: 00000000 .word 0x00000000
00082ad0 <xStructsToSend>:
82ad0: 01c80064 646e6553 00317265 646e6553 d...Sender1.Send
82ae0: 00327265 65636552 72657669 00000000 er2.Receiver....
82af0: 454c4449 00000000 20726d54 00637653 IDLE....Tmr Svc.
00082b00 <_global_impure_ptr>:
82b00: 20000008 ...
00082b04 <_init>:
82b04: b5f8 push {r3, r4, r5, r6, r7, lr}
82b06: bf00 nop
82b08: bcf8 pop {r3, r4, r5, r6, r7}
82b0a: bc08 pop {r3}
82b0c: 469e mov lr, r3
82b0e: 4770 bx lr
00082b10 <__init_array_start>:
82b10: 000829b1 .word 0x000829b1
00082b14 <__frame_dummy_init_array_entry>:
82b14: 00080119 ....
00082b18 <_fini>:
82b18: b5f8 push {r3, r4, r5, r6, r7, lr}
82b1a: bf00 nop
82b1c: bcf8 pop {r3, r4, r5, r6, r7}
82b1e: bc08 pop {r3}
82b20: 469e mov lr, r3
82b22: 4770 bx lr
00082b24 <__fini_array_start>:
82b24: 000800f5 .word 0x000800f5