rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
global_port.h
Go to the documentation of this file.
1/**
2 * rusEfi is placing some of data structures into CCM memory simply
3 * in order to use that memory - no magic about which RAM is faster etc.
4 * That said, CCM/TCM could be faster as there will be less bus contention
5 * with DMA.
6 *
7 * Please note that DMA does not work with CCM memory
8 */
9
10#if defined(AT32F4XX)
11#define CCM_OPTIONAL
12#define SDRAM_OPTIONAL
13#define NO_CACHE
14#define BKUP_RAM_NOINIT
15#else
16// CCM memory is 64k
17#define CCM_OPTIONAL __attribute__((section(".ram4")))
18#define SDRAM_OPTIONAL __attribute__((section(".ram7")))
19#define NO_CACHE // F4 has no cache, do nothing
20#define BKUP_RAM_NOINIT __attribute__((section(".bkup_ram_noinit")))
21#define MCU_HAS_CCM_RAM TRUE
22#endif