diff --git a/osal/efr32_wisun/osal_platform_types.h b/osal/efr32_wisun/osal_platform_types.h index 66ba588..444cc0f 100644 --- a/osal/efr32_wisun/osal_platform_types.h +++ b/osal/efr32_wisun/osal_platform_types.h @@ -56,4 +56,9 @@ typedef int osal_sd_set_t; #define GECKO_BTL_UPLOAD_SLOT_ID 0 #define GECKO_BTL_BACKUP_SLOT_ID 1 +// Firmware Management Configuration +#define CSMP_FWMGMT_ACTIVE_SLOTS 3 // 0-RUN, 1-UPLOAD, 2-BACKUP +#define CSMP_FWMGMT_SLOTIMG_SIZE (512*1024) // 512 Kb +#define CSMP_FWMGMT_BLKMAP_CNT (32) + #endif diff --git a/osal/freertos/osal_platform_types.h b/osal/freertos/osal_platform_types.h index 597a709..b109b33 100644 --- a/osal/freertos/osal_platform_types.h +++ b/osal/freertos/osal_platform_types.h @@ -54,4 +54,9 @@ typedef fd_set osal_sd_set_t; #define OSAL_AF_INET6 AF_INET6 #define OSAL_SOCK_DGRAM SOCK_DGRAM +// Firmware Management Configuration +#define CSMP_FWMGMT_ACTIVE_SLOTS 3 // 0-RUN, 1-UPLOAD, 2-BACKUP +#define CSMP_FWMGMT_SLOTIMG_SIZE (30*1024) // 30 Kb +#define CSMP_FWMGMT_BLKMAP_CNT (32) + #endif diff --git a/osal/linux/osal_platform_types.h b/osal/linux/osal_platform_types.h index 359aa9f..09da7ac 100644 --- a/osal/linux/osal_platform_types.h +++ b/osal/linux/osal_platform_types.h @@ -55,6 +55,9 @@ typedef fd_set osal_sd_set_t; #define OSAL_AF_INET6 AF_INET6 #define OSAL_SOCK_DGRAM SOCK_DGRAM - +// Firmware Management Configuration +#define CSMP_FWMGMT_ACTIVE_SLOTS 3 // 0-RUN, 1-UPLOAD, 2-BACKUP +#define CSMP_FWMGMT_SLOTIMG_SIZE (30*1024) // 30 Kb +#define CSMP_FWMGMT_BLKMAP_CNT (32) #endif diff --git a/osal/osal.h b/osal/osal.h index 15f35cc..9138155 100644 --- a/osal/osal.h +++ b/osal/osal.h @@ -35,15 +35,6 @@ #define HWID_SIZE 32 #define BLOCK_SIZE 1024 -// IMAGE SLOT INFO -#define CSMP_FWMGMT_ACTIVE_SLOTS 3 // 0-RUN, 1-UPLOAD, 2-BACKUP -#if defined(OSAL_EFR32_WISUN) -#define CSMP_FWMGMT_SLOTIMG_SIZE (512*1024) // 512 Kb -#else -#define CSMP_FWMGMT_SLOTIMG_SIZE (30*1024) // 30 Kb -#endif -#define CSMP_FWMGMT_BLKMAP_CNT (32) - #define CSMP_IMAGE_HDR_SIZE 256 #define REBOOT_DELAY 5