Skip to content

v0.1.2

Choose a tag to compare

@ka5j ka5j released this 27 Aug 04:21
· 299 commits to main since this release
dca12cf

Register-layer completeness fixes, a real NVIC/vector-table cross-check,
the drivers/ error-status contract, per-peripheral Doxygen grouping, and
this changelog.

Added

  • drivers/inc/driver_status.h: the DriverStatus_e error-status contract
    required by every driver function that can fail, per CONTRIBUTING.md's
    error-handling contract - a small, closed set of failure categories,
    DRIVER_MUST_CHECK-marked, with a non-zero DRIVER_STATUS_OK and an
    explicit DRIVER_STATUS_UNINITIALIZED sentinel so an unassigned status
    can't silently read as success under this project's -O0 build.
  • tools/check_vector_table.awk, run as part of make test: a real
    cross-check between core/inc/nvic_reg.h's IRQn_e enum and
    startup/startup_stm32f446re.s's vector table, replacing a test that only
    asserted the enum against its own values and could not catch the two
    files drifting apart.
  • Per-peripheral Doxygen subgroups (mpu_registers, nvic_registers,
    scb_registers, fpu_registers, systick_registers, gpio_registers,
    rcc_registers, uart_registers, exti_registers, flash_registers,
    iwdg_registers, pwr_registers, syscfg_registers, wwdg_registers),
    nested under core_peripherals/device_peripherals instead of every
    register header joining one flat parent group. scb_reg.h's two
    architecturally distinct blocks (SCB, FPU) now render as separate groups.
  • -Werror=unused-result in the Makefile's CFLAGS and host test compile
    line: promotes an ignored DRIVER_MUST_CHECK return from a warning to a
    build failure on both arm-none-eabi-gcc and the host cc.

Fixed

  • core/inc/scb_reg.h: added the missing FPU lazy-stacking fault bits to
    SCB_CFSR (MLSPERR, bit 5; LSPERR, bit 13) - Cortex-M4F-specific
    CFSR extensions the header omitted, relevant to any future HardFault
    handler or PendSV context switch.
  • core/inc/mpu_reg.h: added the missing MPU_RASR_AP_PRIV_RW_UNPRIV_RO
    (AP=0x2) encoding, one of six legitimate MPU access-permission values -
    the one needed to make kernel-owned data read-only to task code.
  • CI: Arm GNU Toolchain, cppcheck, and clang-format are now pinned to exact
    versions (15.2.rel1, 2.13.0-2ubuntu3, 1:18.0-59~exp2) instead of
    floating apt packages, so an archive update can only fail the build
    loudly rather than silently changing what CI enforces.

Changed

  • device/inc/flash_reg.h, device/inc/rcc_reg.h: documented previously
    unstated scope decisions (which real register fields each header
    intentionally omits, and why), matching the pattern already used in
    uart_reg.h/exti_reg.h/syscfg_reg.h.
  • CONTRIBUTING.md: documents the two-level Doxygen grouping convention
    (parent layer group, per-peripheral subgroup, multi-block-per-file
    splitting) for future register headers.
  • README.md, docs/VERSIONING.md, docs/mainpage.md, docs/ARCHITECTURE.md:
    corrected status text that still described drivers/ as entirely empty
    scaffolding after driver_status.h landed, and updated docs/mainpage.md's
    description of the Doxygen Topics page to match the per-peripheral
    subgroup structure above.

Removed

  • .github/dependabot.yml: Dependabot is disabled for this repository.
    SECURITY.md's claim that no automated tooling watches the Actions SHA
    pins is now accurate as a result.