Skip to content

GD32: Use templated fast_write_pin_wrapper to handle all value types #27806

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

Merged
merged 1 commit into from
Apr 20, 2025

Conversation

bmourit
Copy link
Contributor

@bmourit bmourit commented Apr 18, 2025

Description

This changes the fast_write_pin_wrapper function to a template, allowing it to handle all values safely.

Requirements

GD32 Board

Benefits

Avoids issues with macros and external libraries passing non-bool values by ensuring any type convertible to bool is supported through this template.

Configurations

N/A

Related Issues

N/A

…s safely.

Avoids issues with macros and external libraries passing non-bool values by
ensuring any type convertible to bool is supported through a template.
@thinkyhead thinkyhead added T: HAL & APIs Topic related to the HAL and internal APIs. A: GD32 PR: Coding Standards labels Apr 20, 2025
@thinkyhead thinkyhead merged commit b23f86f into MarlinFirmware:bugfix-2.1.x Apr 20, 2025
66 checks passed
@bmourit bmourit deleted the fastio_wrapper branch April 24, 2025 16:47
EvilGremlin pushed a commit to EvilGremlin/Marlin that referenced this pull request May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: GD32 PR: Coding Standards T: HAL & APIs Topic related to the HAL and internal APIs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants