File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,8 +103,10 @@ namespace klib::core::lpc178x::io {
103103 *
104104 */
105105 struct dynamic_memory {
106- // flag if we are using 32 bit external address mapping
107- bool bit32;
106+ // flag if we are using 32 bit external bus address mapping.
107+ // this selects the AM[1] address mapping scheme and is
108+ // independent of the actual data bus width
109+ bool bit32_address_mapping;
108110
109111 // column row mapping
110112 column_row_mapping mapping;
@@ -510,7 +512,7 @@ namespace klib::core::lpc178x::io {
510512 const uint32_t config = (
511513 (memory.low_power_sdram << 3 ) | (static_cast <uint32_t >(memory.width ) << 7 ) |
512514 (static_cast <uint32_t >(memory.size ) << 9 ) | (static_cast <uint32_t >(memory.mapping ) << 12 ) |
513- (memory.bit32 << 14 )
515+ (memory.bit32_address_mapping << 14 )
514516 );
515517
516518 // set the memory configuration (with the buffer disabled)
You can’t perform that action at this time.
0 commit comments