40
40
uint8_t SHCI_C2_FUS_GetState ( SHCI_FUS_GetState_ErrorCode_t * p_error_code )
41
41
{
42
42
/**
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
44
44
*/
45
- uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE ];
45
+ uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE + 1 ];
46
46
TL_EvtPacket_t * p_rsp ;
47
47
48
48
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 )
63
63
SHCI_CmdStatus_t SHCI_C2_FUS_FwUpgrade ( uint32_t fw_src_add , uint32_t fw_dest_add )
64
64
{
65
65
/**
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
67
67
* Buffer is large enough to hold command complete without payload
68
68
*/
69
69
uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE ];
@@ -153,9 +153,9 @@ SHCI_CmdStatus_t SHCI_C2_FUS_LockAuthKey( void )
153
153
SHCI_CmdStatus_t SHCI_C2_FUS_StoreUsrKey ( SHCI_C2_FUS_StoreUsrKey_Cmd_Param_t * pParam , uint8_t * p_key_index )
154
154
{
155
155
/**
156
- * Buffer is large enough to hold command complete without payload
156
+ * Buffer is large enough to hold command complete with payload
157
157
*/
158
- uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE ];
158
+ uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE + 1 ];
159
159
TL_EvtPacket_t * p_rsp ;
160
160
uint8_t local_payload_len ;
161
161
@@ -431,9 +431,9 @@ SHCI_CmdStatus_t SHCI_C2_CONCURRENT_SetMode( SHCI_C2_CONCURRENT_Mode_Param_t Mod
431
431
SHCI_CmdStatus_t SHCI_C2_CONCURRENT_GetNextBleEvtTime ( SHCI_C2_CONCURRENT_GetNextBleEvtTime_Param_t * pParam )
432
432
{
433
433
/**
434
- * Buffer is large enough to hold command complete without payload
434
+ * Buffer is large enough to hold command complete with payload
435
435
*/
436
- uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE ];
436
+ uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE + 4 ];
437
437
TL_EvtPacket_t * p_rsp ;
438
438
439
439
p_rsp = (TL_EvtPacket_t * )local_buffer ;
@@ -566,7 +566,7 @@ SHCI_CmdStatus_t SHCI_C2_Reinit( void )
566
566
SHCI_CmdStatus_t SHCI_C2_ExtpaConfig (uint32_t gpio_port , uint16_t gpio_pin_number , uint8_t gpio_polarity , uint8_t gpio_status )
567
567
{
568
568
/**
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
570
570
* Buffer is large enough to hold command complete without payload
571
571
*/
572
572
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
590
590
SHCI_CmdStatus_t SHCI_C2_SetFlashActivityControl (SHCI_C2_SET_FLASH_ACTIVITY_CONTROL_Source_t Source )
591
591
{
592
592
/**
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
594
594
* Buffer is large enough to hold command complete without payload
595
595
*/
596
596
uint8_t local_buffer [TL_BLEEVT_CC_BUFFER_SIZE ];
0 commit comments