Commit dce407f 1 parent 733a771 commit dce407f Copy full SHA for dce407f
File tree 2 files changed +13
-1
lines changed
build-system/erbui/generators/daisy
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 14
14
#include " erb/module_fnc.h"
15
15
16
16
#include " erb/def.h"
17
+ #include " erb/config.h"
17
18
18
19
erb_DISABLE_WARNINGS_DAISY
19
20
#include " daisy.h"
@@ -71,8 +72,8 @@ int main ()
71
72
72
73
system .Init (config);
73
74
75
+ #if (erb_SDRAM_USE_FLAG)
74
76
// Init SDRAM
75
-
76
77
// When using the bootloader priori to v6, SDRAM has been already configured
77
78
78
79
if (
@@ -86,6 +87,7 @@ int main ()
86
87
SdramHandle sdram;
87
88
sdram.Init ();
88
89
}
90
+ #endif
89
91
90
92
// -------------------------------------------------------------------------
91
93
Original file line number Diff line number Diff line change 17
17
18
18
/*\\\ CONFIG \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
19
19
20
+ // 'erb_SDRAM_USE_FLAG' activates the use of SDRAM. If a module doesn't
21
+ // actually use SDRAM, turning this flag off allows to save costs when
22
+ // the daisy board can be ordered without the SDRAM chip.
23
+ // If not defined, it will activate the SDRAM.
24
+
25
+ #if !defined (erb_SDRAM_USE_FLAG )
26
+ #define erb_SDRAM_USE_FLAG true
27
+ #endif
28
+
29
+
20
30
// 'erb_SDRAM_MEM_POOL_SIZE' represents the maximum amount of memory that can
21
31
// be used for all combined usages of 'SdramPtr' for an entire module.
22
32
// If not defined, it will take the entire Daisy SDRAM memory, so 64MB.
You can’t perform that action at this time.
0 commit comments