Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,6 @@ int prvFleetProvisioningTask( void * pvParameters )
{
LogError( ( "Failed to generate Key and Certificate Signing Request." ) );
}

xPkcs11CloseSession( xP11Session );
}

/**** Connect to AWS IoT Core with provisioning claim credentials *****/
Expand Down Expand Up @@ -825,6 +823,8 @@ int prvFleetProvisioningTask( void * pvParameters )

/**** Retry in case of failure ****************************************/

xPkcs11CloseSession( xP11Session );

/* Increment the demo run count. */
ulDemoRunCount++;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,6 @@ bool xPkcs11CloseSession( CK_SESSION_HANDLE xP11Session )
xResult = xFunctionList->C_CloseSession( xP11Session );
}

if( xResult == CKR_OK )
{
xResult = xFunctionList->C_Finalize( NULL );
}

return( xResult == CKR_OK );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ s32 XSdPs_Change_ClkFreq(XSdPs *InstancePtr, u32 SelFreq)
XSDPS_CLK_CTRL_OFFSET);
while((ReadReg & XSDPS_CC_INT_CLK_STABLE_MASK) == 0U) {
ReadReg = XSdPs_ReadReg16(InstancePtr->Config.BaseAddress,
XSDPS_CLK_CTRL_OFFSET);;
XSDPS_CLK_CTRL_OFFSET);
}

/* Enable SD clock */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,11 +591,11 @@ void lcdd_draw_string_with_bgcolor(uint32_t x, uint32_t y,

while (*p_string) {
if (*p_string == '\n') {
y += height + char_space;;
y += height + char_space;
x = xorg;
} else {
lcdd_draw_char_with_bgcolor(x, y, *p_string, fontColor, bgColor);
x += width + char_space;;
x += width + char_space;
}
p_string++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ ALT_STATUS_CODE alt_dma_program_DMAMOV(ALT_DMA_PROGRAM_t * pgm,
uint8_t * buffer = pgm->program + pgm->buffer_start + pgm->code_size;

// Assemble DMAMOV
buffer[0] = 0xbc;;
buffer[0] = 0xbc;
buffer[1] = rd_mask;
buffer[2] = (uint8_t)((val >> 0) & 0xff);
buffer[3] = (uint8_t)((val >> 8) & 0xff);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ s32 XSdPs_Change_ClkFreq(XSdPs *InstancePtr, u32 SelFreq)
XSDPS_CLK_CTRL_OFFSET);
while((ReadReg & XSDPS_CC_INT_CLK_STABLE_MASK) == 0U) {
ReadReg = XSdPs_ReadReg16(InstancePtr->Config.BaseAddress,
XSDPS_CLK_CTRL_OFFSET);;
XSDPS_CLK_CTRL_OFFSET);
}

/* Enable SD clock */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ __IAR_FT uint16_t __iar_uint16_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val)
{
*(__packed uint16_t*)(ptr) = val;;
*(__packed uint16_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT16_WRITE(PTR,VAL) __iar_uint16_write(PTR,VAL)
Expand All @@ -204,7 +204,7 @@ __IAR_FT uint32_t __iar_uint32_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint32_write(void const *ptr, uint32_t val)
{
*(__packed uint32_t*)(ptr) = val;;
*(__packed uint32_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT32_WRITE(PTR,VAL) __iar_uint32_write(PTR,VAL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ __IAR_FT uint16_t __iar_uint16_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val)
{
*(__packed uint16_t*)(ptr) = val;;
*(__packed uint16_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT16_WRITE(PTR,VAL) __iar_uint16_write(PTR,VAL)
Expand All @@ -204,7 +204,7 @@ __IAR_FT uint32_t __iar_uint32_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint32_write(void const *ptr, uint32_t val)
{
*(__packed uint32_t*)(ptr) = val;;
*(__packed uint32_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT32_WRITE(PTR,VAL) __iar_uint32_write(PTR,VAL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
*
* while(1) {
* ret = I2S_writeReclaim(handle, &pDesc);
* pDesc->bufPtr = &hello;;
* pDesc->bufPtr = &hello;
* pDesc->bufSize = sizeof(hello);
* ret = I2S_writeIssue(handle, pDesc);
* }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,5 +244,5 @@ uint32_t Afe_SendData( AfeDma *pAfed, AfeCmd *pCommand)
if (XDMAD_StartTransfer( pAfed->pXdmad, afeDmaRxChannel ))
return AFE_ERROR_LOCK;

return AFE_OK;;
return AFE_OK;
}
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ void AFEC_SetAnalogOffset( Afec *pAFE, uint32_t dwChannel,uint32_t aoffset )
{
assert( dwChannel < 12 ) ;
pAFE->AFEC_CSELR = dwChannel;
pAFE->AFEC_COCR = (aoffset & AFEC_COCR_AOFF_Msk);;
pAFE->AFEC_COCR = (aoffset & AFEC_COCR_AOFF_Msk);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,5 @@ uint32_t Dac_SendData( DacDma *pDacd, DacCmd *pCommand)
/* Start DMA TX */
if (XDMAD_StartTransfer( pDacd->pXdmad, dacDmaTxChannel ))
return DAC_ERROR_LOCK;
return DAC_OK;;
return DAC_OK;
}
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static uint8_t _Afe_configureLinkList(Afec *pAfeHw, void *pXdmad, AfeCmd *pComma
xdmadRxCfg.mbr_ubc = XDMA_UBC_NVIEW_NDV0 |
XDMA_UBC_NDE_FETCH_EN|
XDMA_UBC_NDEN_UPDATED |
pCommand->RxSize;;
pCommand->RxSize;
xdmadRxCfg.mbr_da = (uint32_t)pCommand->pRxBuff;
xdmadRxCfg.mbr_sa = (uint32_t)&(pAfeHw->AFEC_LCDR);
xdmadRxCfg.mbr_cfg = XDMAC_CC_TYPE_PER_TRAN |
Expand Down Expand Up @@ -253,5 +253,5 @@ uint32_t Afe_SendData( AfeDma *pAfed, AfeCmd *pCommand)
if (XDMAD_StartTransfer( pAfed->pXdmad, afeDmaRxChannel ))
return AFE_ERROR_LOCK;

return AFE_OK;;
return AFE_OK;
}
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ void AFEC_SetAnalogOffset( Afec *pAFE, uint32_t dwChannel,uint32_t aoffset )
{
assert( dwChannel < 12 ) ;
pAFE->AFEC_CSELR = dwChannel;
pAFE->AFEC_COCR = (aoffset & AFEC_COCR_AOFF_Msk);;
pAFE->AFEC_COCR = (aoffset & AFEC_COCR_AOFF_Msk);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ uint32_t Dac_SendData( DacDma *pDacd, DacCmd *pCommand)
/* Start DMA TX */
if (XDMAD_StartTransfer( pDacd->pXdmad, dacDmaTxChannel ))
return DAC_ERROR_LOCK;
return DAC_OK;;
return DAC_OK;
}


Expand Down
4 changes: 2 additions & 2 deletions FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC/CMSIS/cmsis_iccarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ __IAR_FT uint16_t __iar_uint16_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val)
{
*(__packed uint16_t*)(ptr) = val;;
*(__packed uint16_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT16_WRITE(PTR,VAL) __iar_uint16_write(PTR,VAL)
Expand All @@ -214,7 +214,7 @@ __IAR_FT uint32_t __iar_uint32_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint32_write(void const *ptr, uint32_t val)
{
*(__packed uint32_t*)(ptr) = val;;
*(__packed uint32_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT32_WRITE(PTR,VAL) __iar_uint32_write(PTR,VAL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ __IAR_FT uint16_t __iar_uint16_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val)
{
*(__packed uint16_t*)(ptr) = val;;
*(__packed uint16_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT16_WRITE(PTR,VAL) __iar_uint16_write(PTR,VAL)
Expand All @@ -209,7 +209,7 @@ __IAR_FT uint32_t __iar_uint32_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint32_write(void const *ptr, uint32_t val)
{
*(__packed uint32_t*)(ptr) = val;;
*(__packed uint32_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT32_WRITE(PTR,VAL) __iar_uint32_write(PTR,VAL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ __IAR_FT uint16_t __iar_uint16_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val)
{
*(__packed uint16_t*)(ptr) = val;;
*(__packed uint16_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT16_WRITE(PTR,VAL) __iar_uint16_write(PTR,VAL)
Expand All @@ -216,7 +216,7 @@ __IAR_FT uint32_t __iar_uint32_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint32_write(void const *ptr, uint32_t val)
{
*(__packed uint32_t*)(ptr) = val;;
*(__packed uint32_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT32_WRITE(PTR,VAL) __iar_uint32_write(PTR,VAL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ __IAR_FT uint16_t __iar_uint16_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val)
{
*(__packed uint16_t*)(ptr) = val;;
*(__packed uint16_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT16_WRITE(PTR,VAL) __iar_uint16_write(PTR,VAL)
Expand All @@ -204,7 +204,7 @@ __IAR_FT uint32_t __iar_uint32_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint32_write(void const *ptr, uint32_t val)
{
*(__packed uint32_t*)(ptr) = val;;
*(__packed uint32_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT32_WRITE(PTR,VAL) __iar_uint32_write(PTR,VAL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ __IAR_FT uint16_t __iar_uint16_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val)
{
*(__packed uint16_t*)(ptr) = val;;
*(__packed uint16_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT16_WRITE(PTR,VAL) __iar_uint16_write(PTR,VAL)
Expand All @@ -204,7 +204,7 @@ __IAR_FT uint32_t __iar_uint32_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint32_write(void const *ptr, uint32_t val)
{
*(__packed uint32_t*)(ptr) = val;;
*(__packed uint32_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT32_WRITE(PTR,VAL) __iar_uint32_write(PTR,VAL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ HAL_StatusTypeDef HAL_CRYP_UnRegisterCallback(CRYP_HandleTypeDef *hcryp, HAL_CRY
else
{
/* Update the error code */
hcryp->ErrorCode |= HAL_CRYP_ERROR_INVALID_CALLBACK;;
hcryp->ErrorCode |= HAL_CRYP_ERROR_INVALID_CALLBACK;
/* Return error status */
status = HAL_ERROR;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ HAL_StatusTypeDef HAL_ETHEx_GetTxVLANConfig(ETH_HandleTypeDef *heth, uint32_t VL
pVlanConfig->VLANTagControl = READ_BIT(heth->Instance->MACVIR, (ETH_MACVIR_VLP | ETH_MACVIR_VLC));
}

return HAL_OK;;
return HAL_OK;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ __IAR_FT uint16_t __iar_uint16_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val)
{
*(__packed uint16_t*)(ptr) = val;;
*(__packed uint16_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT16_WRITE(PTR,VAL) __iar_uint16_write(PTR,VAL)
Expand All @@ -204,7 +204,7 @@ __IAR_FT uint32_t __iar_uint32_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint32_write(void const *ptr, uint32_t val)
{
*(__packed uint32_t*)(ptr) = val;;
*(__packed uint32_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT32_WRITE(PTR,VAL) __iar_uint32_write(PTR,VAL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ static void FLASH_OB_GetPCROP(uint32_t * PCROPConfig, uint32_t * PCROPStartAddr,
*PCROPStartAddr = (reg_value << 4) + FLASH_BASE;

reg_value = (READ_REG(FLASH->PCROP2ER) & FLASH_PCROP2ER_PCROP2_END);
*PCROPEndAddr = (reg_value << 4) + FLASH_BASE + 0xFU;;
*PCROPEndAddr = (reg_value << 4) + FLASH_BASE + 0xFU;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ s32 XSdPs_Change_ClkFreq(XSdPs *InstancePtr, u32 SelFreq)
XSDPS_CLK_CTRL_OFFSET);
while((ReadReg & XSDPS_CC_INT_CLK_STABLE_MASK) == 0U) {
ReadReg = XSdPs_ReadReg16(InstancePtr->Config.BaseAddress,
XSDPS_CLK_CTRL_OFFSET);;
XSDPS_CLK_CTRL_OFFSET);
}

/* Enable SD clock */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ uint8_t EVENT_GetIRQPriority(IRQn_Type IRQn)

bool SystemInISR(void)
{
return ((EVENT_UNIT->INTPTENACTIVE) != 0);;
return ((EVENT_UNIT->INTPTENACTIVE) != 0);
}

void EVENT_SystemReset(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ void EVENT_SetIRQPriority(IRQn_Type IRQn, uint8_t intPriority)

bool SystemInISR(void)
{
return ((EVENT_UNIT->INTPTENACTIVE) != 0);;
return ((EVENT_UNIT->INTPTENACTIVE) != 0);
}

void EVENT_SystemReset(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ __IAR_FT uint16_t __iar_uint16_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint16_write(void const *ptr, uint16_t val)
{
*(__packed uint16_t*)(ptr) = val;;
*(__packed uint16_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT16_WRITE(PTR,VAL) __iar_uint16_write(PTR,VAL)
Expand All @@ -214,7 +214,7 @@ __IAR_FT uint32_t __iar_uint32_read(void const *ptr)
#pragma language=extended
__IAR_FT void __iar_uint32_write(void const *ptr, uint32_t val)
{
*(__packed uint32_t*)(ptr) = val;;
*(__packed uint32_t*)(ptr) = val;
}
#pragma language=restore
#define __UNALIGNED_UINT32_WRITE(PTR,VAL) __iar_uint32_write(PTR,VAL)
Expand Down
Loading