File tree Expand file tree Collapse file tree 4 files changed +441
-8
lines changed Expand file tree Collapse file tree 4 files changed +441
-8
lines changed Original file line number Diff line number Diff line change 1
1
/* *
2
2
******************************************************************************
3
3
* @file STM32LowPower.cpp
4
- * @author WI6LABS
5
- * @version V1.0.0
6
- * @date 11-December-2017
4
+ * @author Frederic Pillon
7
5
* @brief Provides a STM32 Low Power interface with Arduino
8
6
*
9
7
******************************************************************************
10
8
* @attention
11
9
*
12
- * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
10
+ * <h2><center>© COPYRIGHT(c) 2020 STMicroelectronics</center></h2>
13
11
*
14
12
* Redistribution and use in source and binary forms, with or without modification,
15
13
* are permitted provided that the following conditions are met:
Original file line number Diff line number Diff line change 1
1
/* *
2
2
******************************************************************************
3
3
* @file STM32LowPower.h
4
- * @author WI6LABS
5
- * @version V1.0.0
6
- * @date 11-December-2017
4
+ * @author Frederic Pillon
7
5
* @brief Provides a STM32 Low Power interface with Arduino
8
6
*
9
7
******************************************************************************
10
8
* @attention
11
9
*
12
- * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
10
+ * <h2><center>© COPYRIGHT(c) 2020 STMicroelectronics</center></h2>
13
11
*
14
12
* Redistribution and use in source and binary forms, with or without modification,
15
13
* are permitted provided that the following conditions are met:
41
39
42
40
#include < Arduino.h>
43
41
42
+ #if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION > 0x01090000)
43
+ #include " low_power.h"
44
+ #endif
45
+
44
46
// Check if PWR HAL enable in variants/board_name/stm32yzxx_hal_conf.h
45
47
#ifndef HAL_PWR_MODULE_ENABLED
46
48
#error "PWR configuration is missing. Check flag HAL_PWR_MODULE_ENABLED in variants/board_name/stm32yzxx_hal_conf.h"
You can’t perform that action at this time.
0 commit comments