Skip to content

Commit

Permalink
Improvements on BlockStorage declarations (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Jun 6, 2018
1 parent eaaeff7 commit d228cce
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 40 deletions.
11 changes: 3 additions & 8 deletions CMSIS-OS/ChibiOS/GHI_FEZ_CERB40_NF/common/Device_BlockStorage.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,9 @@ const BlockRegionInfo BlockRegions[] =

const DeviceBlockInfo Device_BlockInfo =
{
{
false, // BOOL Removable;
true, // BOOL SupportsXIP;
false, // BOOL WriteProtected;
false // BOOL SupportsCopyBack
},
(MediaAttribute_SupportsXIP),
ARRAYSIZE_CONST_EXPR(BlockRegions), // UINT32 NumRegions;
BlockRegions, // const BlockRegionInfo* pRegions;
(BlockRegionInfo*)BlockRegions, // const BlockRegionInfo* pRegions;
};

MEMORY_MAPPED_NOR_BLOCK_CONFIG Device_BlockStorageConfig =
Expand All @@ -71,7 +66,7 @@ MEMORY_MAPPED_NOR_BLOCK_CONFIG Device_BlockStorageConfig =
false, // BOOL ActiveState;
},

&Device_BlockInfo, // BlockDeviceinfo
(DeviceBlockInfo*)&Device_BlockInfo, // BlockDeviceinfo
},

{ // CPU_MEMORY_CONFIG
Expand Down
11 changes: 3 additions & 8 deletions CMSIS-OS/ChibiOS/I2M_ELECTRON_NF/common/Device_BlockStorage.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,9 @@ const BlockRegionInfo BlockRegions[] =

const DeviceBlockInfo Device_BlockInfo =
{
{
false, // BOOL Removable;
true, // BOOL SupportsXIP;
false, // BOOL WriteProtected;
false // BOOL SupportsCopyBack
},
(MediaAttribute_SupportsXIP),
ARRAYSIZE_CONST_EXPR(BlockRegions), // UINT32 NumRegions;
BlockRegions, // const BlockRegionInfo* pRegions;
(BlockRegionInfo*)BlockRegions, // const BlockRegionInfo* pRegions;
};

MEMORY_MAPPED_NOR_BLOCK_CONFIG Device_BlockStorageConfig =
Expand All @@ -71,7 +66,7 @@ MEMORY_MAPPED_NOR_BLOCK_CONFIG Device_BlockStorageConfig =
false, // BOOL ActiveState;
},

&Device_BlockInfo, // BlockDeviceinfo
(DeviceBlockInfo*)&Device_BlockInfo, // BlockDeviceinfo
},

{ // CPU_MEMORY_CONFIG
Expand Down
11 changes: 3 additions & 8 deletions CMSIS-OS/ChibiOS/I2M_OXYGEN_NF/common/Device_BlockStorage.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,9 @@ const BlockRegionInfo BlockRegions[] =

const DeviceBlockInfo Device_BlockInfo =
{
{
false, // BOOL Removable;
true, // BOOL SupportsXIP;
false, // BOOL WriteProtected;
false // BOOL SupportsCopyBack
},
(MediaAttribute_SupportsXIP),
ARRAYSIZE_CONST_EXPR(BlockRegions), // UINT32 NumRegions;
BlockRegions, // const BlockRegionInfo* pRegions;
(BlockRegionInfo*)BlockRegions, // const BlockRegionInfo* pRegions;
};

MEMORY_MAPPED_NOR_BLOCK_CONFIG Device_BlockStorageConfig =
Expand All @@ -71,7 +66,7 @@ MEMORY_MAPPED_NOR_BLOCK_CONFIG Device_BlockStorageConfig =
false, // BOOL ActiveState;
},

&Device_BlockInfo, // BlockDeviceinfo
(DeviceBlockInfo*)&Device_BlockInfo, // BlockDeviceinfo
},

{ // CPU_MEMORY_CONFIG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,9 @@ const BlockRegionInfo BlockRegions[] =

const DeviceBlockInfo Device_BlockInfo =
{
{
false, // BOOL Removable;
true, // BOOL SupportsXIP;
false, // BOOL WriteProtected;
false // BOOL SupportsCopyBack
},
(MediaAttribute_SupportsXIP),
ARRAYSIZE_CONST_EXPR(BlockRegions), // UINT32 NumRegions;
BlockRegions, // const BlockRegionInfo* pRegions;
(BlockRegionInfo*)BlockRegions, // const BlockRegionInfo* pRegions;
};

MEMORY_MAPPED_NOR_BLOCK_CONFIG Device_BlockStorageConfig =
Expand All @@ -71,7 +66,7 @@ MEMORY_MAPPED_NOR_BLOCK_CONFIG Device_BlockStorageConfig =
false, // BOOL ActiveState;
},

&Device_BlockInfo, // BlockDeviceinfo
(DeviceBlockInfo*)&Device_BlockInfo, // BlockDeviceinfo
},

{ // CPU_MEMORY_CONFIG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,9 @@ const BlockRegionInfo BlockRegions[] =

const DeviceBlockInfo Device_BlockInfo =
{
{
false, // BOOL Removable;
true, // BOOL SupportsXIP;
false, // BOOL WriteProtected;
false // BOOL SupportsCopyBack
},
(MediaAttribute_SupportsXIP),
ARRAYSIZE_CONST_EXPR(BlockRegions), // UINT32 NumRegions;
BlockRegions, // const BlockRegionInfo* pRegions;
(BlockRegionInfo*)BlockRegions, // const BlockRegionInfo* pRegions;
};

MEMORY_MAPPED_NOR_BLOCK_CONFIG Device_BlockStorageConfig =
Expand All @@ -71,7 +66,7 @@ MEMORY_MAPPED_NOR_BLOCK_CONFIG Device_BlockStorageConfig =
false, // BOOL ActiveState;
},

&Device_BlockInfo, // BlockDeviceinfo
(DeviceBlockInfo*)&Device_BlockInfo, // BlockDeviceinfo
},

{ // CPU_MEMORY_CONFIG
Expand Down

0 comments on commit d228cce

Please sign in to comment.