enable dtcm (#856)
This commit is contained in:
parent
e790dadfe5
commit
e044ddf974
|
@ -17,9 +17,8 @@
|
||||||
|
|
||||||
// Warning! This is a test config!
|
// Warning! This is a test config!
|
||||||
|
|
||||||
// todo: reconfigure RAM sections for STM32F7
|
|
||||||
#undef EFI_USE_CCM
|
#undef EFI_USE_CCM
|
||||||
#define EFI_USE_CCM FALSE
|
#define EFI_USE_CCM TRUE
|
||||||
|
|
||||||
#undef EFI_POTENTIOMETER
|
#undef EFI_POTENTIOMETER
|
||||||
#define EFI_POTENTIOMETER FALSE
|
#define EFI_POTENTIOMETER FALSE
|
||||||
|
|
|
@ -80,13 +80,13 @@ typedef unsigned int time_t;
|
||||||
/**
|
/**
|
||||||
* rusEfi is placing some of data structures into CCM memory simply
|
* rusEfi is placing some of data structures into CCM memory simply
|
||||||
* in order to use that memory - no magic about which RAM is faster etc.
|
* in order to use that memory - no magic about which RAM is faster etc.
|
||||||
|
* That said, CCM/TCM could be faster as there will be less bus contention
|
||||||
|
* with DMA.
|
||||||
*
|
*
|
||||||
* Please note that DMA does not work with CCM memory
|
* Please note that DMA does not work with CCM memory
|
||||||
*/
|
*/
|
||||||
#if defined(STM32F7XX)
|
#if defined(STM32F7XX)
|
||||||
#undef EFI_USE_CCM
|
#define CCM_RAM ".ram3"
|
||||||
// todo: DTCM == CCM on STM32F7?
|
|
||||||
//#define CCM_RAM ".ram3"
|
|
||||||
#else /* defined(STM32F4XX) */
|
#else /* defined(STM32F4XX) */
|
||||||
#define CCM_RAM ".ram4"
|
#define CCM_RAM ".ram4"
|
||||||
#endif /* defined(STM32F4XX) */
|
#endif /* defined(STM32F4XX) */
|
||||||
|
|
Loading…
Reference in New Issue