mirror of
https://github.com/ruppert/fmini-1.git
synced 2026-12-05 12:24:36 +01:00
The SMK-37 target from github.com/genkigenki/Felucca branch smk37 (commit b67312c on Felucca 1.6.1, = hugelton/Felucca#237; the fm1-to-smk37 kit's Felucca layer), applied to FMini-1, whose firmware/hal and firmware/loader are Felucca 1.6.1's: - BOARD=smk37 / MODEL=pro|elite|mke (tools/build.py, build.sh), the SMK flash map with its protected ranges (fm1_flash_map.h), the update path and its size checks (ota.c, ldr_core.c), the SMK input HAL, LCD and pad LEDs, the owner tag of the store, installers and tests. - Conflicts resolved for FMini-1: packages fmini-1-fm1-<version>.fwsc and fmini-1-smk37[-elite|-mke]-<version>.fwsc; FL_JEDEC_OK keeps the UC25HQ80 (0xB36014) on the FM-1 and accepts it on the SMK too; the official V16 length stays FM-1 only; the sample slots stay gone (FMini-1 has no SAMPLE engine: the layer's eng_sample.c and editor sample hunks are not taken); main.c keeps FMini-1's UI_* hooks with the SMK calls around them. - The FM-1 build is byte-identical to 2.5.0 (app, package and loader hashes). The SMK build does not link yet: FMini-1's preset objects need places in the SMK store, and fmini_app.c's LED code is FM-1 sized. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
23 lines
1.1 KiB
C
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))
|
|
|
|
/* Target board: 0 = FM-1 (default), 1 = SMK-37 Pro (same AC791N, SPL and update loader; different
|
|
* panel wiring). build.py sets it from BOARD=smk37. */
|
|
#ifndef BOARD_SMK37
|
|
#define BOARD_SMK37 0
|
|
#endif
|
|
/* SMK_MODEL: the model name the SMK build reports (its identity, its update loader's): the SMK-37 Pro,
|
|
* SMK-37 Elite and MKE-P37 are the same keyboard under three names, and the stock updater only takes a
|
|
* unit's own factory package. build.py sets it from MODEL=elite / mke. */
|
|
#if BOARD_SMK37 && !defined(SMK_MODEL)
|
|
#define SMK_MODEL "SMK-37 Pro"
|
|
#endif
|