View: 2643|Reply: 2

[BLE SDK] PA7 SWS

[Copy link]

20

Threads

22

Replies

254

Credits

Credits
254
Posted on 2025-8-13 11:10:00 | Show all posts |Reading mode From 广东
Information
Notes:   建议参照本版块置顶帖内容输入必要信息
Chip model: 8258
SDK & version: dongle
本帖最后由 wx_5172673661 于 2025-8-13 11:34 编辑

请问这个需要怎么配置呢?gpio_set_func配置AS_SWIRE正确吗?
   b50c1f65426f7641972dc5d0508fd595.png

image.png

5

Threads

95

Replies

334

Credits

Credits
334
Posted on 2025-8-13 11:27:21 | Show all posts From 上海
默认情况下,BLE SDK 的代码已经处理了相关配置。
如果需要进一步确认,可以检查初始化过程中是否调用了gpio_init函数。相关的引脚配置代码如下:

  1. #ifndef PULL_WAKEUP_SRC_PA7
  2. #define PULL_WAKEUP_SRC_PA7                PM_PIN_PULLUP_1M        //sws pullup
  3. #endif

  4. #ifndef PA7_FUNC
  5. #define PA7_FUNC        AS_SWIRE
  6. #endif

  7. #ifndef PA7_INPUT_ENABLE
  8. #define PA7_INPUT_ENABLE        1        //SWS
  9. #endif
Copy code

20

Threads

22

Replies

254

Credits

Credits
254
 Author| Posted on 2025-8-13 12:04:59 | Show all posts From 广东
感谢

Credit rules for this forum

inThis forumPostBack to top