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.USBDongle/Applications/BLE/BLE_MeshLightingDemo/STM32_WPAN/app/PWM_handlers.c')
-rw-r--r--Projects/P-NUCLEO-WB55.USBDongle/Applications/BLE/BLE_MeshLightingDemo/STM32_WPAN/app/PWM_handlers.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Projects/P-NUCLEO-WB55.USBDongle/Applications/BLE/BLE_MeshLightingDemo/STM32_WPAN/app/PWM_handlers.c b/Projects/P-NUCLEO-WB55.USBDongle/Applications/BLE/BLE_MeshLightingDemo/STM32_WPAN/app/PWM_handlers.c
index faa56a950..698bdced8 100644
--- a/Projects/P-NUCLEO-WB55.USBDongle/Applications/BLE/BLE_MeshLightingDemo/STM32_WPAN/app/PWM_handlers.c
+++ b/Projects/P-NUCLEO-WB55.USBDongle/Applications/BLE/BLE_MeshLightingDemo/STM32_WPAN/app/PWM_handlers.c
@@ -32,7 +32,7 @@
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
-* Initial BlueNRG-Mesh is built over Motorola’s Mesh over Bluetooth Low Energy
+* Initial BLE-Mesh is built over Motorola’s Mesh over Bluetooth Low Energy
* (MoBLE) technology. The present solution is developed and maintained for both
* Mesh library and Applications solely by STMicroelectronics.
*
@@ -41,6 +41,7 @@
/* Includes ------------------------------------------------------------------*/
#include "hal_common.h"
+#include "app_conf.h"
#include "PWM_handlers.h"
#include "mesh_cfg_usr.h"
@@ -190,6 +191,7 @@ void Ton_sorting(void)
*/
void Modify_PWM(uint8_t PWM_ID, uint16_t duty_cycle)
{
+#if ( CFG_LPM_SUPPORTED == 0)
GPIO_InitTypeDef GPIO_InitStructure1 = {0};
if (PWM_ID == 0) /* PD14 */
@@ -245,7 +247,7 @@ void Modify_PWM(uint8_t PWM_ID, uint16_t duty_cycle)
else
{
}
-
+
DUTY = duty_cycle;
switch (PWM_ID)
{
@@ -278,6 +280,7 @@ void Modify_PWM(uint8_t PWM_ID, uint16_t duty_cycle)
}
break;
}
+#endif
}
/**