Files
JIANT/firmware/hal/fm1_cc.h
T
Claude 95721756c7 SMK-37: board flag and identity (BOARD_SMK37, build.py --board smk37 --model pro|elite)
fm1_cc.h: BOARD_SMK37 (default 0) and SMK_MODEL. build.py: --board / --model (or
$BOARD / $MODEL); the SMK build adds -DBOARD_SMK37=1 -DSMK_MODEL=..., goes to
build/smk37-MODEL/felucca-smk37-MODEL.fwsc and carries the identity 'SMK-37 Pro_900' /
'SMK-37 Elite_900' (release: _9XY). felucca.c: FELUCCA_UART 0 on the SMK (PH8 is a
matrix row), #error otherwise. loader.c: 'ota-' SMK_MODEL '_900'. ota.c: the parm
identity 'ota-' SMK_MODEL '_016'. usb.c: product 'JIANT SMK-37' / 'JIANT SMK Update'.
The FM-1 build gets no new flag and is byte-identical (felucca.bin, ota.bin, .fwsc).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
2026-11-20 20:55:01 +00:00

23 lines
1.1 KiB
C

/* SPDX-License-Identifier: GPL-3.0-only
* Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments */
/* FM1_INLINE: register helpers that must inline into their caller, so the
* SFR access sequence (and its timing, in ISRs and IRQ-off sections) is the
* one written at the call site; -Os would otherwise out-line a helper with
* several callers. RAM-resident code (.ram_text) may only use these, never
* a called helper (build.py checks .ram_text for calls). */
#pragma once
#define FM1_INLINE static inline __attribute__((always_inline))
/* (JIANT, after Melodee's BOARD_SMK37) the target board: 0 the M-VAVE FM-1 (the default; its build gets no new flag
* and stays byte-identical), 1 the M-VAVE SMK-37 Pro / Elite (same AC791N; tools/build.py --board smk37 sets
* -DBOARD_SMK37=1, docs/SMK37.md). Every SMK difference is behind #if BOARD_SMK37. */
#ifndef BOARD_SMK37
#define BOARD_SMK37 0
#endif
#if BOARD_SMK37
#ifndef SMK_MODEL
#define SMK_MODEL "SMK-37 Pro" /* build.py --model elite: -DSMK_MODEL="SMK-37 Elite" */
#endif
#endif