Skip to content

Commit 13c883e

Browse files
committed
lpc1788 changed name bit32 to bit32_address_mapping to prevent confusion with the data bus width
1 parent 995d09f commit 13c883e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

targets/core/nxp/lpc178x/emc.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)