rusEFI
The most advanced open source ECU
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 #else
15 // CCM memory is 64k
16 #define CCM_OPTIONAL __attribute__((section(".ram4")))
17 #define SDRAM_OPTIONAL __attribute__((section(".ram7")))
18 #define NO_CACHE // F4 has no cache, do nothing
19 #endif