This example illustrates how to configure the EMI. { u8 data; ... // Initialize the EMI bank 1: enable, 2 wait states, 16-bit wide external
EMI_Config(1, EMI_ENABLE | EMI_WAITSTATE(2) | EMI_SIZE_16); // Write data to the external memory *(u32*)0x62000000 = 0x12345678; // write 12345678 in bank 1 // Read data from the external memory data = *(u8*)0x62000008; // read from bank 1 ... }