Skip to content

Commit d2303da

Browse files
zfieldsfpistm
authored andcommitted
Fix conditional compilation for Stop mode for U5
The U5 HAL uses the similarly named `LL_PWR_STOP2_MODE`, as opposed to the standard `LL_PWR_MODE_STOP2`. Signed-off-by: Zachary J. Fields <zachary_fields@yahoo.com>
1 parent 29e2aba commit d2303da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/low_power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ void LowPower_stop(serial_t *obj)
815815
#endif
816816
/* Enter Stop mode */
817817
#if defined(UART_WKUP_SUPPORT) && (defined(PWR_CPUCR_RETDS_CD) || \
818-
defined(LL_PWR_MODE_STOP2))
818+
defined(LL_PWR_MODE_STOP2) || defined(LL_PWR_STOP2_MODE))
819819
if ((WakeUpUart == NULL)
820820
|| (WakeUpUart->Instance == (USART_TypeDef *)LPUART1_BASE)
821821
#ifdef LPUART2_BASE

0 commit comments

Comments
 (0)