Skip to content

Add weact blackpill support#3211

Merged
hathach merged 3 commits intohathach:masterfrom
rhgndf:at32f403a_weact_blackpill
Sep 3, 2025
Merged

Add weact blackpill support#3211
hathach merged 3 commits intohathach:masterfrom
rhgndf:at32f403a_weact_blackpill

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 AI review requested due to automatic review settings August 10, 2025 05:24
Copy link
Contributor

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

#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
Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look good, thank you

@hathach hathach merged commit 5a50159 into hathach:master Sep 3, 2025
108 of 109 checks passed
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.

3 participants