Jieli-Tech / fw-AC63_BT_SDK

Firmware for Generic Bluetooth SDK(AC63 series), Support AC631N/AC635N/AC636N/AC637N/AC632N, compatible with AC69 series without audio support.
Apache License 2.0
167 stars 97 forks source link

AC6329C的11脚可以作为普通GPIO使用吗 #135

Closed alittleray closed 2 years ago

alittleray commented 2 years ago

芯片:AC6329C

描述:想把AC6329C的11脚USB0DM作为普通GPIO使用,是不是不可以。

ac6329c USB0DM

JL-MinXian commented 2 years ago

可以的,用封装好的gpio接口配置,gpio.h; 示例 //用io反转推灯

define TCFG_PWMLED_PIN IO_PORT_DP

define KEYF_LED_ON() gpio_direction_output(TCFG_PWMLED_PIN, 1)

define KEYF_LED_OFF() gpio_direction_output(TCFG_PWMLED_PIN, 0)

define KEYF_LED_INIT() {gpio_set_dieh(TCFG_PWMLED_PIN, 0);gpio_set_die(TCFG_PWMLED_PIN, 1);gpio_set_pull_down(TCFG_PWMLED_PIN, 0);gpio_set_pull_up(TCFG_PWMLED_PIN, 0);} //

alittleray commented 2 years ago

我试试