Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

虚拟串口例程项目中的 inc\usb_conf.h中宏定义定义错误 #2

Open
lixnif opened this issue Jun 25, 2024 · 0 comments
Open

Comments

@lixnif
Copy link

lixnif commented Jun 25, 2024

69 #define OTG_PIN_SOF_GPIO                 GPIOA
70 #define OTG_PIN_SOF_GPIO_CLOCK           CRM_GPIOB_PERIPH_CLOCK
71 #define OTG_PIN_SOF                      GPIO_PINS_8

应该为:

69 #define OTG_PIN_SOF_GPIO                 GPIOA
70 #define OTG_PIN_SOF_GPIO_CLOCK           **CRM_GPIOA_PERIPH_CLOCK**
71 #define OTG_PIN_SOF                      GPIO_PINS_8

但由于其他引脚也使用了GPIOA时钟,因此程序实际没有被影响。

https://github.com/ArteryTek/AT32F415_Firmware_Library/blob/master/project/at_start_f415/examples/usb_device/virtual_comport/inc/usb_conf.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant