Skip to content

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rhgndf
Copy link
Contributor

@rhgndf rhgndf commented Aug 10, 2025

Describe the PR
Port the board from #2839 to upstream

Additional context
https://github.com/WeActStudio/WeActStudio.BlackPill

@Copilot Copilot AI review requested due to automatic review settings August 10, 2025 05:24
Copy link
Contributor

@Copilot Copilot AI left a 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
Copy link
Contributor Author

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

@rhgndf rhgndf force-pushed the at32f403a_weact_blackpill branch 3 times, most recently from 370dff3 to f39882e Compare August 10, 2025 05:37
@rhgndf rhgndf force-pushed the at32f403a_weact_blackpill branch from f39882e to 24e596b Compare August 10, 2025 05:38
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

Successfully merging this pull request may close these issues.

1 participant