diff options
Diffstat (limited to 'Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/user_if.h')
-rw-r--r-- | Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/user_if.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/user_if.h b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/user_if.h new file mode 100644 index 000000000..47889703c --- /dev/null +++ b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/user_if.h @@ -0,0 +1,39 @@ +/** + ****************************************************************************** +* @file user_if.h +* @author BLE Mesh Team +* @brief Header file for User interface file + ****************************************************************************** + * @attention + * + * Copyright (c) STMicroelectronics</center></h2> +(-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. + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef _USER_INTERFACE_H_ +#define _USER_INTERFACE_H_ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32wbxx_hal.h" +#include "stm32wbxx_hal_conf.h" +#include "ble_clock.h" + +#define BUTTON_PRESSED GPIO_PIN_RESET + +/* Exported typedefs ---------------------------------------------*/ +typedef GPIO_PinState BUTTON_STATE; +typedef void (* IO_RECEIVE_DATA_USER_CALLBACK_TYPE) (uint8_t * rx_data, uint16_t data_size); + +/* Exported Functions Prototypes ---------------------------------------------*/ + +#endif /* _USER_INTERFACE_H_ */ + + |