Skip to content

Commit 70812b4

Browse files
committed
chore: clean up and adapt STM32Cube_FW sources for STM32duino
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 2d60f45 commit 70812b4

13 files changed

+87
-1003
lines changed

src/utility/STM32Cube_FW/app_conf_default.h

+23-419
Large diffs are not rendered by default.

src/utility/STM32Cube_FW/ble_bufsize.h

+7
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@
7575
((pw) + MAX(BLE_MEM_BLOCK_X_MTU(mtu, n_link), \
7676
BLE_MBLOCKS_SECURE_CONNECTIONS))
7777

78+
/*
79+
* BLE_DEFAULT_MBLOCKS_COUNT: default memory blocks count
80+
*/
81+
#define BLE_DEFAULT_MBLOCKS_COUNT(n_link) \
82+
BLE_MBLOCKS_CALC(BLE_DEFAULT_PREP_WRITE_LIST_SIZE, \
83+
BLE_DEFAULT_MAX_ATT_MTU, n_link)
84+
7885
/*
7986
* BLE_FIXED_BUFFER_SIZE_BYTES:
8087
* A part of the RAM, is dynamically allocated by initializing all the pointers

src/utility/STM32Cube_FW/hw.h

+9-19
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,21 @@ extern "C" {
2626
#endif
2727

2828
/* Includes ------------------------------------------------------------------*/
29+
#include "stm32_def.h"
30+
#include "stm32wbxx_ll_bus.h"
31+
#include "stm32wbxx_ll_exti.h"
32+
#include "stm32wbxx_ll_system.h"
33+
#include "stm32wbxx_ll_rcc.h"
34+
#include "stm32wbxx_ll_ipcc.h"
35+
#include "stm32wbxx_ll_cortex.h"
36+
#include "stm32wbxx_ll_utils.h"
37+
#include "stm32wbxx_ll_pwr.h"
2938

3039
/******************************************************************************
3140
* HW IPCC
3241
******************************************************************************/
3342
void HW_IPCC_Enable( void );
3443
void HW_IPCC_Init( void );
35-
void HW_IPCC_Rx_Handler( void );
36-
void HW_IPCC_Tx_Handler( void );
3744

3845
void HW_IPCC_BLE_Init( void );
3946
void HW_IPCC_BLE_SendCmd( void );
@@ -80,23 +87,6 @@ extern "C" {
8087
void HW_IPCC_TRACES_Init( void );
8188
void HW_IPCC_TRACES_EvtNot( void );
8289

83-
void HW_IPCC_MAC_802_15_4_Init( void );
84-
void HW_IPCC_MAC_802_15_4_SendCmd( void );
85-
void HW_IPCC_MAC_802_15_4_SendAck( void );
86-
void HW_IPCC_MAC_802_15_4_CmdEvtNot( void );
87-
void HW_IPCC_MAC_802_15_4_EvtNot( void );
88-
89-
void HW_IPCC_ZIGBEE_Init( void );
90-
91-
void HW_IPCC_ZIGBEE_SendM4RequestToM0(void); /* M4 Request to M0 */
92-
void HW_IPCC_ZIGBEE_RecvAppliAckFromM0(void); /* Request ACK from M0 */
93-
94-
void HW_IPCC_ZIGBEE_RecvM0NotifyToM4(void); /* M0 Notify to M4 */
95-
void HW_IPCC_ZIGBEE_SendM4AckToM0Notify(void); /* Notify ACK from M4 */
96-
void HW_IPCC_ZIGBEE_RecvM0RequestToM4(void); /* M0 Request to M4 */
97-
void HW_IPCC_ZIGBEE_SendM4AckToM0Request(void); /* Request ACK from M4 */
98-
99-
10090
#ifdef __cplusplus
10191
}
10292
#endif

0 commit comments

Comments
 (0)