Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions osal/efr32_wisun/osal_platform_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions osal/freertos/osal_platform_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion osal/linux/osal_platform_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 0 additions & 9 deletions osal/osal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down