0hmX/pcbgolf-routing-checkpoint-20261012
A PCBGolf assembly combining a modeled PCB with copper/component bodies and seven native connector housings.
- Version
- 0.0.3
- License
- unset
- Stars
- 0
firmware-support/direct-smps.patch
--- a/board/stm32h7/clock.h
+++ b/board/stm32h7/clock.h
@@ -28,6 +28,9 @@
// TODO: find a better way to distinguish between H725 (using SMPS) and H723 (lacking SMPS)
// The package will do for now, since we have only used TFBGA100 for H723
static PackageSMPSType get_package_smps_type(void) {
+#ifdef PCBGOLF_H725100
+ return PACKAGE_WITH_SMPS; // H725VGT6 direct-SMPS board: applies to bootstub and app.
+#else
PackageSMPSType ret;
RCC->APB4ENR |= RCC_APB4ENR_SYSCFGEN; // make sure SYSCFG clock is enabled. does seem to read fine without too though
@@ -45,6 +48,7 @@
ret = PACKAGE_UNKNOWN;
}
return ret;
+#endif
}
void clock_init(void) {