Skip to content

Move firmware management config to platform types#52

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

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
Collaborator

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

@mzella-ll

Copy link
Copy Markdown
Collaborator Author

This change has been integrated in #59. I am therefore closing it.

@mzella-ll mzella-ll closed this Jun 2, 2026
@manojnacsl manojnacsl added the renesas Renesas Electronics Corporation | renesas.com label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

renesas Renesas Electronics Corporation | renesas.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move firmware management configuration to platform-specific OSAL types

2 participants