4040uint8_t SHCI_C2_FUS_GetState ( SHCI_FUS_GetState_ErrorCode_t * p_error_code )
4141{
4242 /**
43- * A command status event + payload has the same size than the expected command complete
43+ * Buffer is large enough to hold command complete with payload
4444 */
45- uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE ];
45+ uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE + 1 ];
4646 TL_EvtPacket_t * p_rsp ;
4747
4848 p_rsp = (TL_EvtPacket_t * )local_buffer ;
@@ -63,7 +63,7 @@ uint8_t SHCI_C2_FUS_GetState( SHCI_FUS_GetState_ErrorCode_t *p_error_code )
6363SHCI_CmdStatus_t SHCI_C2_FUS_FwUpgrade ( uint32_t fw_src_add , uint32_t fw_dest_add )
6464{
6565 /**
66- * TL_BLEEVT_CS_BUFFER_SIZE is 15 bytes so it is large enough to hold the 8 bytes of command parameters
66+ * TL_BLEEVT_CC_BUFFER_SIZE is 16 bytes so it is large enough to hold the 8 bytes of command parameters
6767 * Buffer is large enough to hold command complete without payload
6868 */
6969 uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE ];
@@ -153,9 +153,9 @@ SHCI_CmdStatus_t SHCI_C2_FUS_LockAuthKey( void )
153153SHCI_CmdStatus_t SHCI_C2_FUS_StoreUsrKey ( SHCI_C2_FUS_StoreUsrKey_Cmd_Param_t * pParam , uint8_t * p_key_index )
154154{
155155 /**
156- * Buffer is large enough to hold command complete without payload
156+ * Buffer is large enough to hold command complete with payload
157157 */
158- uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE ];
158+ uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE + 1 ];
159159 TL_EvtPacket_t * p_rsp ;
160160 uint8_t local_payload_len ;
161161
@@ -431,9 +431,9 @@ SHCI_CmdStatus_t SHCI_C2_CONCURRENT_SetMode( SHCI_C2_CONCURRENT_Mode_Param_t Mod
431431SHCI_CmdStatus_t SHCI_C2_CONCURRENT_GetNextBleEvtTime ( SHCI_C2_CONCURRENT_GetNextBleEvtTime_Param_t * pParam )
432432{
433433 /**
434- * Buffer is large enough to hold command complete without payload
434+ * Buffer is large enough to hold command complete with payload
435435 */
436- uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE ];
436+ uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE + 4 ];
437437 TL_EvtPacket_t * p_rsp ;
438438
439439 p_rsp = (TL_EvtPacket_t * )local_buffer ;
@@ -566,7 +566,7 @@ SHCI_CmdStatus_t SHCI_C2_Reinit( void )
566566SHCI_CmdStatus_t SHCI_C2_ExtpaConfig (uint32_t gpio_port , uint16_t gpio_pin_number , uint8_t gpio_polarity , uint8_t gpio_status )
567567{
568568 /**
569- * TL_BLEEVT_CS_BUFFER_SIZE is 15 bytes so it is large enough to hold the 8 bytes of command parameters
569+ * TL_BLEEVT_CC_BUFFER_SIZE is 16 bytes so it is large enough to hold the 8 bytes of command parameters
570570 * Buffer is large enough to hold command complete without payload
571571 */
572572 uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE ];
@@ -590,7 +590,7 @@ SHCI_CmdStatus_t SHCI_C2_ExtpaConfig(uint32_t gpio_port, uint16_t gpio_pin_numbe
590590SHCI_CmdStatus_t SHCI_C2_SetFlashActivityControl (SHCI_C2_SET_FLASH_ACTIVITY_CONTROL_Source_t Source )
591591{
592592 /**
593- * TL_BLEEVT_CS_BUFFER_SIZE is 15 bytes so it is large enough to hold the 1 byte of command parameter
593+ * TL_BLEEVT_CC_BUFFER_SIZE is 16 bytes so it is large enough to hold the 1 byte of command parameter
594594 * Buffer is large enough to hold command complete without payload
595595 */
596596 uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE ];
0 commit comments