14-23
CHIP-SELECT UNIT
Assumptions:
REMAPCFG register has Expanded I/O space access enabled (ESE bit set).
*/
void Init_CSU(void)
{
_SetEXRegWord(UCSADL, 0x700); /* Configure the upper chip select */
_SetEXRegWord(UCSADH, 0x0);
_SetEXRegWord(UCSMSKL, 0xFC01);
_SetEXRegWord(UCSMSKH, 0x7);
_SetEXRegWord(CS4ADL, 0x300); /* Configure chip select 4 */
_SetEXRegWord(CS4ADH, 0x8);
_SetEXRegWord(CS4MSKL, 0xF801);
_SetEXRegWord(CS4MSKH, 0x7);
}