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/compile_clock.c

#include <stdbool.h>
#include "stm32h7xx.h"
static inline void register_set(volatile uint32_t *r, uint32_t value, uint32_t mask) {
  *r = (*r & ~mask) | value;
}
static inline void register_set_bits(volatile uint32_t *r, uint32_t bits) { *r |= bits; }
#include "predecessor-patch/board/stm32h7/clock.h"
/* This is a translation-unit compile check of the patched startup code. */
bool pcbgolf_package_selects_direct_smps(void) { return get_package_smps_type() == PACKAGE_WITH_SMPS; }