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.
33 lines
689 B
33 lines
689 B
3 years ago
|
/* SYS_WKUP */
|
||
|
#if defined(PWR_WAKEUP_PIN1) && defined(HAL_PWR_MODULE_ENABLED) && !defined(HAL_PWR_MODULE_ONLY)
|
||
|
#error PA0 is used by thermal sensor, disable low power wake with -DHAL_PWR_MODULE_ONLY
|
||
|
SYS_WKUP1 = PA_0,
|
||
|
#endif
|
||
|
#ifdef PWR_WAKEUP_PIN2
|
||
|
SYS_WKUP2 = NC,
|
||
|
#endif
|
||
|
#ifdef PWR_WAKEUP_PIN3
|
||
|
SYS_WKUP3 = NC,
|
||
|
#endif
|
||
|
#ifdef PWR_WAKEUP_PIN4
|
||
|
SYS_WKUP4 = NC,
|
||
|
#endif
|
||
|
#ifdef PWR_WAKEUP_PIN5
|
||
|
SYS_WKUP5 = NC,
|
||
|
#endif
|
||
|
#ifdef PWR_WAKEUP_PIN6
|
||
|
SYS_WKUP6 = NC,
|
||
|
#endif
|
||
|
#ifdef PWR_WAKEUP_PIN7
|
||
|
SYS_WKUP7 = NC,
|
||
|
#endif
|
||
|
#ifdef PWR_WAKEUP_PIN8
|
||
|
SYS_WKUP8 = NC,
|
||
|
#endif
|
||
|
/* USB */
|
||
|
#ifdef USBCON
|
||
|
#warning USB feature is not required with a CH340 chip
|
||
|
USB_DM = PA_11,
|
||
|
USB_DP = PA_12,
|
||
|
#endif
|