|
|
默认情况下,BLE SDK 的代码已经处理了相关配置。
如果需要进一步确认,可以检查初始化过程中是否调用了gpio_init函数。相关的引脚配置代码如下:
- #ifndef PULL_WAKEUP_SRC_PA7
- #define PULL_WAKEUP_SRC_PA7 PM_PIN_PULLUP_1M //sws pullup
- #endif
- #ifndef PA7_FUNC
- #define PA7_FUNC AS_SWIRE
- #endif
- #ifndef PA7_INPUT_ENABLE
- #define PA7_INPUT_ENABLE 1 //SWS
- #endif
Copy code |
|
|
|
|
|
|
|
|