Skip to content

Move firmware management config to platform types#52

Open
mzella-ll wants to merge 1 commit into
CiscoDevNet:mainfrom
mzella-ll:refactor/platform-specific-fw-mgmt-config
Open

Move firmware management config to platform types#52
mzella-ll wants to merge 1 commit into
CiscoDevNet:mainfrom
mzella-ll:refactor/platform-specific-fw-mgmt-config

Conversation

@mzella-ll
Copy link
Copy Markdown

Summary

This PR moves firmware management configuration values from the generic osal/osal.h header to the platform-specific osal_platform_types.h headers.

Changes

  • Remove firmware management slot configuration from osal/osal.h.
  • Add the configuration to:
    • osal/efr32_wisun/osal_platform_types.h
    • osal/freertos/osal_platform_types.h
    • osal/linux/osal_platform_types.h
  • Preserve the existing platform-specific slot image sizes:
    • EFR32 Wi-SUN: 512 * 1024
    • FreeRTOS: 30 * 1024
    • Linux: 30 * 1024

Motivation

The firmware management slot configuration is platform-dependent. Keeping these values in the generic OSAL header requires platform-specific conditional logic in osal.h.

Moving the configuration to the platform-specific OSAL type headers keeps the generic OSAL interface cleaner and places platform-dependent values closer to the corresponding platform implementation.

Expected behavior

This is a refactoring change. The effective configuration values are preserved, so runtime behavior should remain unchanged.

Related issue

Fixes #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move firmware management configuration to platform-specific OSAL types

1 participant