Skip to content

Commit 90f5642

Browse files
HoZHelerwango
authored andcommitted
lib: stm32wb0: Call appropriate Zephyr function for using TRNG peripheral
BLEPLAT_RngGetRandom16 and BLEPLAT_RngGetRandom32 are moved to hci_stm32wb0.c driver on the Zephyr side, with some modifications to use ST entropy driver on Zephyr. Modify README to include the new changes. Signed-off-by: Ali Hozhabri <[email protected]>
1 parent e51136c commit 90f5642

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

lib/stm32wb0/BLE_TransparentMode/STM32_BLE/Target/bleplat.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,6 @@ int32_t BLEPLAT_AesCMACEncryptFinish(BLEPLAT_AESCMACctxTypeDef *pAESCMACctx,
118118
}
119119
#endif /* (BLESTACK_CONTROLLER_ONLY == 0) */
120120

121-
void BLEPLAT_RngGetRandom16(uint16_t* num)
122-
{
123-
HW_RNG_GetRandom16(num);
124-
}
125-
126-
void BLEPLAT_RngGetRandom32(uint32_t* num)
127-
{
128-
HW_RNG_GetRandom32(num);
129-
}
130-
131121
uint8_t BLEPLAT_DBmToPALevel(int8_t TX_dBm)
132122
{
133123
return RADIO_DBmToPALevel(TX_dBm);

lib/stm32wb0/README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,7 @@ Patch List:
127127
Impacted file: app_conf.h
128128
- Exclude HAL_UART_MspInit and HAL_UART_MspDeInit from compilation:
129129
Impacted file: stm32wb0x_hal_msp.c
130+
- Removed BLEPLAT_RngGetRandom16 and BLEPLAT_RngGetRandom32 functions:
131+
Impacted file: bleplat.c
130132
- dos2unix applied
131133
- trailing white spaces removed

0 commit comments

Comments
 (0)