Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

119 lines
3.4 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32l1xx_hal_pwr_ex.h
  4. * @author MCD Application Team
  5. * @brief Header file of PWR HAL Extension module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __STM32L1xx_HAL_PWR_EX_H
  21. #define __STM32L1xx_HAL_PWR_EX_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "stm32l1xx_hal_def.h"
  27. /** @addtogroup STM32L1xx_HAL_Driver
  28. * @{
  29. */
  30. /** @addtogroup PWREx
  31. * @{
  32. */
  33. /* Exported types ------------------------------------------------------------*/
  34. /* Exported constants --------------------------------------------------------*/
  35. /** @defgroup PWREx_Exported_Constants PWREx Exported Constants
  36. * @{
  37. */
  38. /** @defgroup PWREx_WakeUp_Pins PWREx Wakeup Pins
  39. * @{
  40. */
  41. #if defined (STM32L151xCA) || defined (STM32L151xD) || defined (STM32L152xCA) || defined (STM32L152xD) || defined (STM32L162xCA) || defined (STM32L162xD) || defined (STM32L151xE) || defined (STM32L151xDX) || defined (STM32L152xE) || defined (STM32L152xDX) || defined (STM32L162xE) || defined (STM32L162xDX) || defined (STM32L151xB) || defined (STM32L151xBA) || defined (STM32L151xC) || defined (STM32L152xB) || defined (STM32L152xBA) || defined (STM32L152xC) || defined (STM32L162xC)
  42. #define PWR_WAKEUP_PIN1 PWR_CSR_EWUP1
  43. #define PWR_WAKEUP_PIN2 PWR_CSR_EWUP2
  44. #define PWR_WAKEUP_PIN3 PWR_CSR_EWUP3
  45. #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \
  46. ((PIN) == PWR_WAKEUP_PIN2) || \
  47. ((PIN) == PWR_WAKEUP_PIN3))
  48. #else
  49. #define PWR_WAKEUP_PIN1 PWR_CSR_EWUP1
  50. #define PWR_WAKEUP_PIN2 PWR_CSR_EWUP2
  51. #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \
  52. ((PIN) == PWR_WAKEUP_PIN2))
  53. #endif
  54. /**
  55. * @}
  56. */
  57. /**
  58. * @}
  59. */
  60. /* Exported macro ------------------------------------------------------------*/
  61. /* Exported functions --------------------------------------------------------*/
  62. /** @defgroup PWREx_Exported_Functions PWREx Exported Functions
  63. * @{
  64. */
  65. /** @addtogroup PWREx_Exported_Functions_Group1
  66. * @{
  67. */
  68. /* Peripheral Control methods ************************************************/
  69. uint32_t HAL_PWREx_GetVoltageRange(void);
  70. void HAL_PWREx_EnableFastWakeUp(void);
  71. void HAL_PWREx_DisableFastWakeUp(void);
  72. void HAL_PWREx_EnableUltraLowPower(void);
  73. void HAL_PWREx_DisableUltraLowPower(void);
  74. void HAL_PWREx_EnableLowPowerRunMode(void);
  75. HAL_StatusTypeDef HAL_PWREx_DisableLowPowerRunMode(void);
  76. /**
  77. * @}
  78. */
  79. /**
  80. * @}
  81. */
  82. /**
  83. * @}
  84. */
  85. /**
  86. * @}
  87. */
  88. #ifdef __cplusplus
  89. }
  90. #endif
  91. #endif /* __STM32L1xx_HAL_PWR_EX_H */
  92. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/