-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add weact blackpill support #3211
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for the WeAct Studio BlackPill AT32F403ACGx board to the TinyUSB library, porting the board configuration from a previous pull request (#2839).
- Adds new board configuration files for the WeAct BlackPill
- Refactors button handling to support board-specific pull resistor configurations
- Updates existing AT_START_F403A board configuration to use the new button abstraction
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
hw/bsp/at32f403a_407/family.c | Updates button initialization and reading to use board-specific constants |
hw/bsp/at32f403a_407/boards/at_start_f403a/board.h | Adds button pull resistor configuration and updates active state |
hw/bsp/at32f403a_407/boards/at32f403a_weact_blackpill/board.mk | Makefile configuration for WeAct BlackPill board |
hw/bsp/at32f403a_407/boards/at32f403a_weact_blackpill/board.h | Header file defining pins, GPIO settings, and hardware configuration |
hw/bsp/at32f403a_407/boards/at32f403a_weact_blackpill/board.cmake | CMake configuration for WeAct BlackPill board |
@@ -50,7 +50,8 @@ | |||
// Button | |||
#define BUTTON_PORT GPIOA | |||
#define BUTTON_PIN GPIO_PINS_0 | |||
#define BUTTON_STATE_ACTIVE 0 | |||
#define BUTTON_PULL GPIO_PULL_DOWN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't have the board to test, not sure if it works, best guess based on: https://github.com/RT-Thread-Studio/sdk-bsp-at32f403a-at-start/blob/main/documents/AT_START_F403A_V1.2_SCH.pdf
370dff3
to
f39882e
Compare
f39882e
to
24e596b
Compare
Describe the PR
Port the board from #2839 to upstream
Additional context
https://github.com/WeActStudio/WeActStudio.BlackPill