MCU_VARIANT = D6

CFLAGS += \
  -DSYSCLK_FREQ_144MHz_HSI=144000000 \
  -DCH32_FLASH_ENHANCE_READ_MODE=1 \
  -DCFG_EXAMPLE_MSC_DUAL_READONLY \

# 32KB zero-wait, 224KB total flash
LDFLAGS += \
  -Wl,--defsym=__FLASH_SIZE=224K \
  -Wl,--defsym=__RAM_SIZE=10K \
