//------------------------------------------------------------------------------ /// Changes the mapping of the chip so that the remap area mirrors the /// internal RAM. //------------------------------------------------------------------------------ void BOARD_RemapRam() { if (BOARD_GetRemap() != BOARD_RAM) { WRITE(AT91C_BASE_MATRIX, MATRIX_MRCR, (AT91C_MATRIX_RCB0_ARM7TDMI | AT91C_MATRIX_RCB1_PDC)); } }
/* Function: BOARD_RemapFlash Changes the mapping of the chip so that the remap area mirrors the internal flash. */ void BOARD_RemapFlash( void ) { if (BOARD_GetRemap() != BOARD_FLASH) { AT91C_BASE_MC->MC_RCR = AT91C_MC_RCB; } }
//------------------------------------------------------------------------------ /// Changes the mapping of the chip so that the remap area mirrors the /// internal ROM or the EBI CS0. //------------------------------------------------------------------------------ void BOARD_RemapRom() { if (BOARD_GetRemap() != BOARD_ROM) { WRITE(AT91C_BASE_MATRIX, MATRIX_MRCR, 0); } }
/* Function: BOARD_RemapRam Changes the mapping of the chip so that the remap area mirrors the internal RAM. */ void BOARD_RemapRam( void ) { if (BOARD_GetRemap() != BOARD_RAM) { AT91C_BASE_MC->MC_RCR = AT91C_MC_RCB; } }
//------------------------------------------------------------------------------ /// Changes the mapping of the chip so that the remap area mirrors the /// internal RAM. //------------------------------------------------------------------------------ void BOARD_RemapRam() { if (BOARD_GetRemap() != BOARD_RAM) { WRITE(AT91C_BASE_MATRIX, MATRIX_MCFG, (AT91C_MATRIX_RCA926I | AT91C_MATRIX_RCA926D)); } }