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/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/cube_hal.h')
-rw-r--r--Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/cube_hal.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/cube_hal.h b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/cube_hal.h
new file mode 100644
index 000000000..3ab0f207f
--- /dev/null
+++ b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/cube_hal.h
@@ -0,0 +1,46 @@
+/**
+ ******************************************************************************
+ * @file cube_hal.h
+ * @author AMS VMA RF Application team
+ * @brief
+ ******************************************************************************
+ * @attention
+ *
+ * Copyright (c) 2019-2021 STMicroelectronics.
+ * All rights reserved.
+ *
+ * This software is licensed under terms that can be found in the LICENSE file
+ * in the root directory of this software component.
+ * If no LICENSE file comes with this software, it is provided AS-IS.
+ *
+ ******************************************************************************
+ */
+
+#ifndef _CUBE_HAL_H_
+#define _CUBE_HAL_H_
+
+/* Includes ------------------------------------------------------------------*/
+
+#include "stm32wbxx_hal.h"
+#include "stm32wbxx_hal_conf.h"
+
+#define B1_Pin GPIO_PIN_13
+#define B1_GPIO_Port GPIOC
+#define USART_TX_Pin GPIO_PIN_2
+#define USART_TX_GPIO_Port GPIOA
+#define USART_RX_Pin GPIO_PIN_3
+#define USART_RX_GPIO_Port GPIOA
+#define LD2_Pin GPIO_PIN_5
+#define LD2_GPIO_Port GPIOA
+
+#define UART_TX_TIMEOUT 5
+
+#define Uart_Irq_Handler USART2_IRQHandler
+
+
+void SystemClock_Config(void);
+void Init_Device(void);
+void MX_USART2_UART_Init(void);
+
+
+#endif /* _CUBE_HAL_H_ */