Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/LLD_BLE/LLD_BLE_Pressbutton/STM32_WPAN/App/app_lld_ble.c')
-rw-r--r--Projects/P-NUCLEO-WB55.Nucleo/Applications/LLD_BLE/LLD_BLE_Pressbutton/STM32_WPAN/App/app_lld_ble.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/LLD_BLE/LLD_BLE_Pressbutton/STM32_WPAN/App/app_lld_ble.c b/Projects/P-NUCLEO-WB55.Nucleo/Applications/LLD_BLE/LLD_BLE_Pressbutton/STM32_WPAN/App/app_lld_ble.c
index 217e2b726..4ed9f4996 100644
--- a/Projects/P-NUCLEO-WB55.Nucleo/Applications/LLD_BLE/LLD_BLE_Pressbutton/STM32_WPAN/App/app_lld_ble.c
+++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/LLD_BLE/LLD_BLE_Pressbutton/STM32_WPAN/App/app_lld_ble.c
@@ -170,7 +170,7 @@ extern uint8_t *txBuffer_Ptr;
uint8_t *rxBuffer_Ptr[8];
uint32_t *rxStatus_Ptr[8];
uint32_t *rxTimeStamp_Ptr[8];
-int *rxRSSI_Ptr[8];
+int32_t *rxRSSI_Ptr[8];
PLACE_IN_SECTION("MB_MEM1") ALIGN(4) static TL_LLD_BLE_Config_t LldBleConfigBuffer;
PLACE_IN_SECTION("MB_MEM2") ALIGN(4) static TL_CmdPacket_t LldBleM0CmdPacket;
@@ -541,11 +541,13 @@ static void CheckWirelessFirmwareInfo(void)
void APP_LLD_BLE_Init_UART_CLI(void)
{
#if (CFG_HW_USART1_ENABLED == 1)
+ #if (CFG_FULL_LOW_POWER == 0)
MX_USART1_UART_Init();
/* Put the UART device in reception mode and wait for interrupt */
if (HW_UART_Receive_IT(CFG_CLI_UART, &rxBuffer_Tab[rxBuffer_wrPtr], 1, uartRxCpltCallback) != hw_uart_ok)
APP_DBG((char *)"!! HAL_UART_Receive_IT error on M4 in APP_LLD_BLE_Init_UART_CLI !!");
+ #endif
#endif
}
@@ -1016,7 +1018,7 @@ static void m0CmdStopRequired(uint32_t stopRequired)
switch (stopRequired) {
case 0:
// flush IPC and trace before sleeping. Let time to M0 to set RF in sleep and to be in STOP if needed
- us_delay(delayBeforeSleepOnM4);
+ HAL_Delay(delayBeforeSleepOnM4);
// Stop UART and its GPIOs to reduce power consumption
APP_LLD_BLE_DeInit_UART_CLI();
@@ -1039,7 +1041,9 @@ static void m0CmdStopRequired(uint32_t stopRequired)
// Restart UART before to go out of critical area to not have to send trace from M0 before to restart it
APP_LLD_BLE_Init_UART_CLI();
#if (CFG_HW_LPUART1_ENABLED == 1)
+ #if(CFG_DEBUG_TRACE != 0)
MX_LPUART1_UART_Init();
+ #endif
#endif
// trial for no IT (ex RF) at low speed
@@ -1050,7 +1054,7 @@ static void m0CmdStopRequired(uint32_t stopRequired)
case 1:
// flush IPC and trace before sleeping. Let time to M0 to set RF in sleep and to be in STOP if needed
- us_delay(delayBeforeSleepOnM4);
+ HAL_Delay(delayBeforeSleepOnM4);
// Stop UART and its GPIOs to reduce power consumption
APP_LLD_BLE_DeInit_UART_CLI();
@@ -1073,7 +1077,9 @@ static void m0CmdStopRequired(uint32_t stopRequired)
// Restart UART before to go out of critical area to not have to send trace from M0 before to restart it
APP_LLD_BLE_Init_UART_CLI();
#if (CFG_HW_LPUART1_ENABLED == 1)
+ #if(CFG_DEBUG_TRACE != 0)
MX_LPUART1_UART_Init();
+ #endif
#endif
// trial for no IT (ex RF) at low speed
@@ -1084,7 +1090,7 @@ static void m0CmdStopRequired(uint32_t stopRequired)
case 2:
// flush IPC and trace before sleeping. Let time to M0 to set RF in sleep and to be in STOP if needed
- us_delay(delayBeforeSleepOnM4);
+ HAL_Delay(delayBeforeSleepOnM4);
// Stop UART and its GPIOs to reduce power consumption
APP_LLD_BLE_DeInit_UART_CLI();
@@ -1107,7 +1113,9 @@ static void m0CmdStopRequired(uint32_t stopRequired)
// Restart UART before to go out of critical area to not have to send trace from M0 before to restart it
APP_LLD_BLE_Init_UART_CLI();
#if (CFG_HW_LPUART1_ENABLED == 1)
+ #if(CFG_DEBUG_TRACE != 0)
MX_LPUART1_UART_Init();
+ #endif
#endif
// trial for no IT (ex RF) at low speed
@@ -1118,7 +1126,7 @@ static void m0CmdStopRequired(uint32_t stopRequired)
case 3:
// flush IPC and trace before sleeping. Let time to M0 to set RF in sleep and to be in STOP if needed
- us_delay(delayBeforeSleepOnM4);
+ HAL_Delay(delayBeforeSleepOnM4);
// Stop UART and its GPIOs to reduce power consumption
APP_LLD_BLE_DeInit_UART_CLI();
@@ -1133,7 +1141,9 @@ static void m0CmdStopRequired(uint32_t stopRequired)
// Restart UART before to go out of critical area to not have to send trace from M0 before to restart it
APP_LLD_BLE_Init_UART_CLI();
#if (CFG_HW_LPUART1_ENABLED == 1)
+ #if(CFG_DEBUG_TRACE != 0)
MX_LPUART1_UART_Init();
+ #endif
#endif
// trial for no IT (ex RF) at low speed
@@ -1429,16 +1439,6 @@ uint8_t APP_LLD_BLE_SendCmdM0(uint8_t currentCmd , uint32_t* currentPt)
}
-/**
- * @brief As the default systick is not used, declare here, at least, an empty function to
- * over-write the default one as it declared as WEAK in HAL.
- */
-void HAL_Delay(__IO uint32_t Delay)
-{
- us_delay(Delay*1000);
- return;
-}
-
/* USER CODE BEGIN FD */
/* Appli common functions */
void Appli_ProcessMode(void)
@@ -1832,4 +1832,4 @@ uint32_t Debug_Stop_timer(void)
}
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ \ No newline at end of file
+/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/