|
18 | 18 | ****************************************************************************** |
19 | 19 | */ |
20 | 20 |
|
21 | | -#include "Arduino.h" |
22 | 21 | #include "low_power.h" |
23 | 22 | #include "stm32yyxx_ll_cortex.h" |
24 | 23 | #include "stm32yyxx_ll_pwr.h" |
@@ -202,7 +201,7 @@ void LowPower_init() |
202 | 201 | * @param mode: pin mode (edge or state). The configuration have to be compatible. |
203 | 202 | * @retval None |
204 | 203 | */ |
205 | | -void LowPower_EnableWakeUpPin(uint32_t pin, uint32_t mode) |
| 204 | +void LowPower_EnableWakeUpPin(pin_size_t pin, PinStatus mode) |
206 | 205 | { |
207 | 206 | PinName p = digitalPinToPinName(pin); |
208 | 207 | #if defined(PWR_WAKEUP_SELECT_0) || defined(PWR_WAKEUP1_SOURCE_SELECTION_0) |
@@ -975,10 +974,10 @@ void LowPower_shutdown(bool isRTC) |
975 | 974 | * with which low power mode the UART is compatible. |
976 | 975 | * Warning This function will change UART clock source to HSI |
977 | 976 | * @param serial: pointer to serial |
978 | | - * @param FuncPtr: pointer to callback |
| 977 | + * @param callback: pointer to callback |
979 | 978 | * @retval None |
980 | 979 | */ |
981 | | -void LowPower_EnableWakeUpUart(serial_t *serial, void (*FuncPtr)(void)) |
| 980 | +void LowPower_EnableWakeUpUart(serial_t *serial, voidFuncPtr callback) |
982 | 981 | { |
983 | 982 | #if defined(UART_WKUP_SUPPORT) |
984 | 983 | #ifdef IS_UART_WAKEUP_SELECTION |
@@ -1009,7 +1008,7 @@ void LowPower_EnableWakeUpUart(serial_t *serial, void (*FuncPtr)(void)) |
1009 | 1008 | UNUSED(serial); |
1010 | 1009 | #endif |
1011 | 1010 | /* Save callback */ |
1012 | | - WakeUpUartCb = FuncPtr; |
| 1011 | + WakeUpUartCb = callback; |
1013 | 1012 | } |
1014 | 1013 |
|
1015 | 1014 | /** |
|
0 commit comments